src/share/vm/gc/g1/g1CollectorPolicy.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File hotspot Cdiff src/share/vm/gc/g1/g1CollectorPolicy.cpp

src/share/vm/gc/g1/g1CollectorPolicy.cpp

Print this page

        

*** 1563,1583 **** ParKnownGarbageHRClosure(CollectionSetChooser* hrSorted, uint chunk_size) : _g1h(G1CollectedHeap::heap()), _cset_updater(hrSorted, true /* parallel */, chunk_size) { } ! bool doHeapRegion(HeapRegion* r) { // Do we have any marking information for this region? if (r->is_marked()) { // We will skip any region that's currently used as an old GC // alloc region (we should not consider those for collection // before we fill them up). if (_cset_updater.should_add(r) && !_g1h->is_old_gc_alloc_region(r)) { _cset_updater.add_region(r); } } - return false; } }; class ParKnownGarbageTask: public AbstractGangTask { CollectionSetChooser* _hrSorted; --- 1563,1582 ---- ParKnownGarbageHRClosure(CollectionSetChooser* hrSorted, uint chunk_size) : _g1h(G1CollectedHeap::heap()), _cset_updater(hrSorted, true /* parallel */, chunk_size) { } ! void doHeapRegion(HeapRegion* r) { // Do we have any marking information for this region? if (r->is_marked()) { // We will skip any region that's currently used as an old GC // alloc region (we should not consider those for collection // before we fill them up). if (_cset_updater.should_add(r) && !_g1h->is_old_gc_alloc_region(r)) { _cset_updater.add_region(r); } } } }; class ParKnownGarbageTask: public AbstractGangTask { CollectionSetChooser* _hrSorted;
src/share/vm/gc/g1/g1CollectorPolicy.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File