equal
deleted
inserted
replaced
23 */ |
23 */ |
24 |
24 |
25 #include "precompiled.hpp" |
25 #include "precompiled.hpp" |
26 #include "gc/g1/g1Allocator.inline.hpp" |
26 #include "gc/g1/g1Allocator.inline.hpp" |
27 #include "gc/g1/g1CollectedHeap.inline.hpp" |
27 #include "gc/g1/g1CollectedHeap.inline.hpp" |
|
28 #include "gc/g1/g1CollectionSet.hpp" |
28 #include "gc/g1/g1OopClosures.inline.hpp" |
29 #include "gc/g1/g1OopClosures.inline.hpp" |
29 #include "gc/g1/g1ParScanThreadState.inline.hpp" |
30 #include "gc/g1/g1ParScanThreadState.inline.hpp" |
30 #include "gc/g1/g1RootClosures.hpp" |
31 #include "gc/g1/g1RootClosures.hpp" |
31 #include "gc/g1/g1StringDedup.hpp" |
32 #include "gc/g1/g1StringDedup.hpp" |
32 #include "gc/shared/taskqueue.inline.hpp" |
33 #include "gc/shared/taskqueue.inline.hpp" |
78 _dcq.flush(); |
79 _dcq.flush(); |
79 // Update allocation statistics. |
80 // Update allocation statistics. |
80 _plab_allocator->flush_and_retire_stats(); |
81 _plab_allocator->flush_and_retire_stats(); |
81 _g1h->g1_policy()->record_age_table(&_age_table); |
82 _g1h->g1_policy()->record_age_table(&_age_table); |
82 |
83 |
83 uint length = _g1h->g1_policy()->young_cset_region_length(); |
84 uint length = _g1h->collection_set()->young_region_length(); |
84 for (uint region_index = 0; region_index < length; region_index++) { |
85 for (uint region_index = 0; region_index < length; region_index++) { |
85 surviving_young_words[region_index] += _surviving_young_words[region_index]; |
86 surviving_young_words[region_index] += _surviving_young_words[region_index]; |
86 } |
87 } |
87 } |
88 } |
88 |
89 |