comparison 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
comparison
equal deleted inserted replaced
20655:b840813adfcc 20656:8d27d6113625
2173 MetaspaceGC::compute_new_size(); 2173 MetaspaceGC::compute_new_size();
2174 2174
2175 // We reclaimed old regions so we should calculate the sizes to make 2175 // We reclaimed old regions so we should calculate the sizes to make
2176 // sure we update the old gen/space data. 2176 // sure we update the old gen/space data.
2177 g1h->g1mm()->update_sizes(); 2177 g1h->g1mm()->update_sizes();
2178 g1h->allocation_context_stats().update_after_mark();
2178 2179
2179 g1h->trace_heap_after_concurrent_cycle(); 2180 g1h->trace_heap_after_concurrent_cycle();
2180 } 2181 }
2181 2182
2182 void ConcurrentMark::completeCleanup() { 2183 void ConcurrentMark::completeCleanup() {
3344 "sanity check"); 3345 "sanity check");
3345 _g1h->reset_heap_region_claim_values(); 3346 _g1h->reset_heap_region_claim_values();
3346 } else { 3347 } else {
3347 g1_par_agg_task.work(0); 3348 g1_par_agg_task.work(0);
3348 } 3349 }
3349 _g1h->allocation_context_stats().update_at_remark();
3350 } 3350 }
3351 3351
3352 // Clear the per-worker arrays used to store the per-region counting data 3352 // Clear the per-worker arrays used to store the per-region counting data
3353 void ConcurrentMark::clear_all_count_data() { 3353 void ConcurrentMark::clear_all_count_data() {
3354 // Clear the global card bitmap - it will be filled during 3354 // Clear the global card bitmap - it will be filled during