< prev index next >

src/share/vm/gc_implementation/g1/concurrentMark.cpp

Print this page
rev 6906 : 8065227: Report allocation context stats at end of cleanup
Summary: Moved allocation context update from remark to the cleanup phase.
Reviewed-by:

@@ -2173,10 +2173,11 @@
   MetaspaceGC::compute_new_size();
 
   // We reclaimed old regions so we should calculate the sizes to make
   // sure we update the old gen/space data.
   g1h->g1mm()->update_sizes();
+  g1h->allocation_context_stats().update_after_mark();
 
   g1h->trace_heap_after_concurrent_cycle();
 }
 
 void ConcurrentMark::completeCleanup() {

@@ -3344,11 +3345,10 @@
            "sanity check");
     _g1h->reset_heap_region_claim_values();
   } else {
     g1_par_agg_task.work(0);
   }
-  _g1h->allocation_context_stats().update_at_remark();
 }
 
 // Clear the per-worker arrays used to store the per-region counting data
 void ConcurrentMark::clear_all_count_data() {
   // Clear the global card bitmap - it will be filled during
< prev index next >