diff src/share/vm/gc_implementation/g1/concurrentMark.cpp @ 20656:8d27d6113625

8065227: Report allocation context stats at end of cleanup Summary: Moved allocation context update from remark to the cleanup phase. Reviewed-by: mgerdin, jmasa
author sjohanss
date Fri, 21 Nov 2014 10:31:30 +0100
parents b12a2a9b05ca
children 7848fc12602b
line wrap: on
line diff
--- a/src/share/vm/gc_implementation/g1/concurrentMark.cpp	Fri Nov 21 12:08:37 2014 +0100
+++ b/src/share/vm/gc_implementation/g1/concurrentMark.cpp	Fri Nov 21 10:31:30 2014 +0100
@@ -2175,6 +2175,7 @@
   // 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();
 }
@@ -3346,7 +3347,6 @@
   } 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