8354431: gc/logging/TestGCId fails on Shenandoah

Reviewed-by: wkemper, phh
This commit is contained in:
Xiaolong Peng 2025-04-24 23:23:58 +00:00
parent e01e33d19b
commit 8a39f07d07

View File

@ -299,7 +299,10 @@ void ShenandoahControlThread::service_concurrent_normal_cycle(GCCause::Cause cau
// Full GC --------------------------/
//
ShenandoahHeap* heap = ShenandoahHeap::heap();
if (check_cancellation_or_degen(ShenandoahGC::_degenerated_outside_cycle)) return;
if (check_cancellation_or_degen(ShenandoahGC::_degenerated_outside_cycle)) {
log_info(gc)("Cancelled");
return;
}
ShenandoahGCSession session(cause, heap->global_generation());