< prev index next > src/hotspot/share/gc/shenandoah/heuristics/shenandoahGlobalHeuristics.cpp
Print this page
const ShenandoahHeuristics::RegionData* data,
size_t size, size_t actual_free,
size_t cur_young_garbage) const {
auto heap = ShenandoahGenerationalHeap::heap();
size_t region_size_bytes = ShenandoahHeapRegion::region_size_bytes();
- size_t capacity = heap->young_generation()->max_capacity();
+ size_t capacity = heap->soft_max_capacity();
size_t garbage_threshold = region_size_bytes * ShenandoahGarbageThreshold / 100;
size_t ignore_threshold = region_size_bytes * ShenandoahIgnoreGarbageThreshold / 100;
const uint tenuring_threshold = heap->age_census()->tenuring_threshold();
size_t young_evac_reserve = heap->young_generation()->get_evacuation_reserve();
< prev index next >