--- old/src/share/vm/gc/g1/g1MarkSweep.cpp 2017-08-03 16:11:36.921642096 -0700 +++ new/src/share/vm/gc/g1/g1MarkSweep.cpp 2017-08-03 16:11:36.821642100 -0700 @@ -149,13 +149,16 @@ assert(rp == g1h->ref_processor_stw(), "Sanity"); rp->setup_policy(clear_all_softrefs); + ReferenceProcessorPhaseTimes pt(gc_timer(), rp->num_q()); + const ReferenceProcessorStats& stats = rp->process_discovered_references(&GenMarkSweep::is_alive, &GenMarkSweep::keep_alive, &GenMarkSweep::follow_stack_closure, NULL, - gc_timer()); + &pt); gc_tracer()->report_gc_reference_stats(stats); + pt.print_all_references(); } // This is the point where the entire marking should have completed.