# HG changeset patch # User sjohanss # Date 1416562290 -3600 # Node ID 8d27d6113625d8d4f2fdefaca5f59b94e7922f17 # Parent b840813adfcc5a7a4e7b7f165bdd611a4fbec1fb 8065227: Report allocation context stats at end of cleanup Summary: Moved allocation context update from remark to the cleanup phase. Reviewed-by: mgerdin, jmasa diff -r b840813adfcc -r 8d27d6113625 src/share/vm/gc_implementation/g1/concurrentMark.cpp --- 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 diff -r b840813adfcc -r 8d27d6113625 src/share/vm/gc_implementation/g1/g1AllocationContext.hpp --- a/src/share/vm/gc_implementation/g1/g1AllocationContext.hpp Fri Nov 21 12:08:37 2014 +0100 +++ b/src/share/vm/gc_implementation/g1/g1AllocationContext.hpp Fri Nov 21 10:31:30 2014 +0100 @@ -45,7 +45,7 @@ public: inline void clear() { } inline void update(bool full_gc) { } - inline void update_at_remark() { } + inline void update_after_mark() { } inline bool available() { return false; } };