Mercurial > hg > truffle
changeset 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 | b840813adfcc |
children | aa2442f89230 |
files | src/share/vm/gc_implementation/g1/concurrentMark.cpp src/share/vm/gc_implementation/g1/g1AllocationContext.hpp |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
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
--- 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; } };