OpenJDK / bsd-port / jdk9 / hotspot
changeset 7479:d5486ac4e114
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 | Thu, 27 Nov 2014 11:09:55 +0100 |
parents | 438ea069d427 |
children | c883161f2a38 |
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 Thu Nov 27 14:52:01 2014 +0400 +++ b/src/share/vm/gc_implementation/g1/concurrentMark.cpp Thu Nov 27 11:09:55 2014 +0100 @@ -2123,6 +2123,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(); } @@ -3243,7 +3244,6 @@ _g1h->set_par_threads(n_workers); _g1h->workers()->run_task(&g1_par_agg_task); _g1h->set_par_threads(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 Thu Nov 27 14:52:01 2014 +0400 +++ b/src/share/vm/gc_implementation/g1/g1AllocationContext.hpp Thu Nov 27 11:09:55 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; } };