< prev index next > src/hotspot/share/gc/shenandoah/heuristics/shenandoahYoungHeuristics.cpp
Print this page
size_t size, size_t actual_free,
size_t cur_young_garbage) const {
auto heap = ShenandoahGenerationalHeap::heap();
- size_t capacity = heap->young_generation()->max_capacity();
+ size_t capacity = heap->soft_max_capacity();
size_t garbage_threshold = ShenandoahHeapRegion::region_size_bytes() * ShenandoahGarbageThreshold / 100;
size_t ignore_threshold = ShenandoahHeapRegion::region_size_bytes() * ShenandoahIgnoreGarbageThreshold / 100;
const uint tenuring_threshold = heap->age_census()->tenuring_threshold();
// This is young-gen collection or a mixed evacuation.
< prev index next >