< prev index next > src/hotspot/share/gc/shenandoah/heuristics/shenandoahAggressiveHeuristics.cpp
Print this page
void ShenandoahAggressiveHeuristics::choose_collection_set_from_regiondata(ShenandoahCollectionSet* cset,
RegionData* data, size_t size,
size_t free) {
for (size_t idx = 0; idx < size; idx++) {
! ShenandoahHeapRegion* r = data[idx]._region;
if (r->garbage() > 0) {
cset->add_region(r);
}
}
}
void ShenandoahAggressiveHeuristics::choose_collection_set_from_regiondata(ShenandoahCollectionSet* cset,
RegionData* data, size_t size,
size_t free) {
for (size_t idx = 0; idx < size; idx++) {
! ShenandoahHeapRegion* r = data[idx].get_region();
if (r->garbage() > 0) {
cset->add_region(r);
}
}
}
< prev index next >