Skip to content

Commit ab4b0ef

Browse files
committedFeb 27, 2025
8350889: GenShen: Break out of infinite loop of old GC cycles
Reviewed-by: wkemper, ysr
1 parent 0a4c5a8 commit ab4b0ef

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed
 

‎src/hotspot/share/gc/shenandoah/heuristics/shenandoahAdaptiveHeuristics.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ bool ShenandoahAdaptiveHeuristics::should_start_gc() {
241241
", allocated: %zu", available, capacity, allocated);
242242

243243
if (_start_gc_is_pending) {
244+
log_trigger("GC start is already pending");
244245
return true;
245246
}
246247

‎src/hotspot/share/gc/shenandoah/shenandoahRegulatorThread.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ void ShenandoahRegulatorThread::regulate_young_and_old_cycles() {
7474
if (start_old_cycle()) {
7575
log_debug(gc)("Heuristics request for old collection accepted");
7676
_young_heuristics->cancel_trigger_request();
77+
_old_heuristics->cancel_trigger_request();
7778
} else if (request_concurrent_gc(YOUNG)) {
7879
log_debug(gc)("Heuristics request for young collection accepted");
7980
_young_heuristics->cancel_trigger_request();

0 commit comments

Comments
 (0)