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