< prev index next >
src/hotspot/share/gc/shenandoah/shenandoahControlThread.cpp
Print this page
rev 60421 : [mq]: 8248401-stefank-review
@@ -233,10 +233,13 @@
// Notify Universe about new heap usage. This has implications for
// global soft refs policy, and we better report it every time heap
// usage goes down.
Universe::update_heap_info_at_gc();
+
+ // Signal that we have completed a visit to all live objects.
+ Universe::heap()->next_whole_heap_examined();
}
// Disable forced counters update, and update counters one more time
// to capture the state at the end of GC session.
handle_force_counters_update();
@@ -273,12 +276,10 @@
heap->phase_timings()->flush_cycle_to_global();
// Print Metaspace change following GC (if logging is enabled).
MetaspaceUtils::print_metaspace_change(meta_sizes);
- heap->next_whole_heap_examined();
-
// GC is over, we are at idle now
if (ShenandoahPacing) {
heap->pacer()->setup_for_idle();
}
} else {
< prev index next >