< prev index next >

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

Print this page
rev 60421 : [mq]: 8248401-stefank-review

@@ -1042,10 +1042,12 @@
 
   // 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();

@@ -1066,12 +1068,10 @@
 #endif
 
   if (ZapUnusedHeapArea) {
     heap->gen_mangle_unused_area();
   }
-
-  Universe::heap()->next_whole_heap_examined();
 }
 
 HeapWord*
 PSParallelCompact::compute_dense_prefix_via_density(const SpaceId id,
                                                     bool maximum_compaction)
< prev index next >