8352428: GenShen: Old-gen cycles are still looping

Reviewed-by: wkemper, shade
This commit is contained in:
Kelvin Nilsen 2025-03-20 00:53:33 +00:00
parent fcc2a24291
commit 74df384a98
2 changed files with 2 additions and 0 deletions

View File

@ -188,6 +188,7 @@ void ShenandoahHeuristics::record_cycle_end() {
bool ShenandoahHeuristics::should_start_gc() {
if (_start_gc_is_pending) {
log_trigger("GC start is already pending");
return true;
}
// Perform GC to cleanup metaspace

View File

@ -80,6 +80,7 @@ void ShenandoahRegulatorThread::regulate_young_and_old_cycles() {
}
} else if (_old_heuristics->should_resume_old_cycle() || _old_heuristics->should_start_gc()) {
if (request_concurrent_gc(_heap->old_generation())) {
_old_heuristics->cancel_trigger_request();
log_debug(gc)("Heuristics request to resume old collection accepted");
}
}