equal
deleted
inserted
replaced
136 #endif // ASSERT |
136 #endif // ASSERT |
137 if (log_is_enabled(Trace, gc, liveness)) { |
137 if (log_is_enabled(Trace, gc, liveness)) { |
138 G1PrintRegionLivenessInfoClosure cl("Post-Sorting"); |
138 G1PrintRegionLivenessInfoClosure cl("Post-Sorting"); |
139 for (uint i = 0; i < _end; ++i) { |
139 for (uint i = 0; i < _end; ++i) { |
140 HeapRegion* r = regions_at(i); |
140 HeapRegion* r = regions_at(i); |
141 cl.doHeapRegion(r); |
141 cl.do_heap_region(r); |
142 } |
142 } |
143 } |
143 } |
144 verify(); |
144 verify(); |
145 } |
145 } |
146 |
146 |
218 ParKnownGarbageHRClosure(CollectionSetChooser* hrSorted, |
218 ParKnownGarbageHRClosure(CollectionSetChooser* hrSorted, |
219 uint chunk_size) : |
219 uint chunk_size) : |
220 _g1h(G1CollectedHeap::heap()), |
220 _g1h(G1CollectedHeap::heap()), |
221 _cset_updater(hrSorted, true /* parallel */, chunk_size) { } |
221 _cset_updater(hrSorted, true /* parallel */, chunk_size) { } |
222 |
222 |
223 bool doHeapRegion(HeapRegion* r) { |
223 bool do_heap_region(HeapRegion* r) { |
224 // Do we have any marking information for this region? |
224 // Do we have any marking information for this region? |
225 if (r->is_marked()) { |
225 if (r->is_marked()) { |
226 // We will skip any region that's currently used as an old GC |
226 // We will skip any region that's currently used as an old GC |
227 // alloc region (we should not consider those for collection |
227 // alloc region (we should not consider those for collection |
228 // before we fill them up). |
228 // before we fill them up). |