57 if (retained_region != NULL && |
57 if (retained_region != NULL && |
58 !retained_region->in_collection_set() && |
58 !retained_region->in_collection_set() && |
59 !(retained_region->top() == retained_region->end()) && |
59 !(retained_region->top() == retained_region->end()) && |
60 !retained_region->is_empty() && |
60 !retained_region->is_empty() && |
61 !retained_region->isHumongous()) { |
61 !retained_region->isHumongous()) { |
62 retained_region->record_top_and_timestamp(); |
62 retained_region->record_timestamp(); |
63 // The retained region was added to the old region set when it was |
63 // The retained region was added to the old region set when it was |
64 // retired. We have to remove it now, since we don't allow regions |
64 // retired. We have to remove it now, since we don't allow regions |
65 // we allocate to in the region sets. We'll re-add it later, when |
65 // we allocate to in the region sets. We'll re-add it later, when |
66 // it's retired again. |
66 // it's retired again. |
67 _g1h->_old_set.remove(retained_region); |
67 _g1h->_old_set.remove(retained_region); |
92 // _retained_old_gc_alloc_region. If we don't |
92 // _retained_old_gc_alloc_region. If we don't |
93 // _retained_old_gc_alloc_region will become NULL. This is what we |
93 // _retained_old_gc_alloc_region will become NULL. This is what we |
94 // want either way so no reason to check explicitly for either |
94 // want either way so no reason to check explicitly for either |
95 // condition. |
95 // condition. |
96 _retained_old_gc_alloc_region = old_gc_alloc_region(context)->release(); |
96 _retained_old_gc_alloc_region = old_gc_alloc_region(context)->release(); |
|
97 if (_retained_old_gc_alloc_region != NULL) { |
|
98 _retained_old_gc_alloc_region->record_retained_region(); |
|
99 } |
97 |
100 |
98 if (ResizePLAB) { |
101 if (ResizePLAB) { |
99 _g1h->_survivor_plab_stats.adjust_desired_plab_sz(no_of_gc_workers); |
102 _g1h->_survivor_plab_stats.adjust_desired_plab_sz(no_of_gc_workers); |
100 _g1h->_old_plab_stats.adjust_desired_plab_sz(no_of_gc_workers); |
103 _g1h->_old_plab_stats.adjust_desired_plab_sz(no_of_gc_workers); |
101 } |
104 } |