< prev index next >

src/hotspot/share/gc/parallel/psParallelCompact.cpp

Print this page
rev 60422 : [mq]: 8248401-ayang-review

@@ -1042,12 +1042,10 @@
 
   // Update heap occupancy information which is used as input to the soft ref
   // clearing policy at the next gc.
   Universe::update_heap_info_at_gc();
 
-  Universe::heap()->next_whole_heap_examined();
-
   bool young_gen_empty = eden_empty && from_space->is_empty() &&
     to_space->is_empty();
 
   PSCardTable* ct = heap->card_table();
   MemRegion old_mr = heap->old_gen()->reserved();

@@ -1068,10 +1066,13 @@
 #endif
 
   if (ZapUnusedHeapArea) {
     heap->gen_mangle_unused_area();
   }
+
+  // Signal that we have completed a visit to all live objects.
+  Universe::heap()->record_whole_heap_examined_timestamp();
 }
 
 HeapWord*
 PSParallelCompact::compute_dense_prefix_via_density(const SpaceId id,
                                                     bool maximum_compaction)
< prev index next >