From e8bcedb09b0e5eeb77bf1dc3a87bb61d7a5e8404 Mon Sep 17 00:00:00 2001 From: William Kemper Date: Fri, 11 Apr 2025 21:25:09 +0000 Subject: [PATCH] 8354452: Shenandoah: Enforce range checks on parameters controlling heuristic sleep times Reviewed-by: ysr --- src/hotspot/share/gc/shenandoah/shenandoah_globals.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hotspot/share/gc/shenandoah/shenandoah_globals.hpp b/src/hotspot/share/gc/shenandoah/shenandoah_globals.hpp index a9c5e47c5c2..ad0beeafed7 100644 --- a/src/hotspot/share/gc/shenandoah/shenandoah_globals.hpp +++ b/src/hotspot/share/gc/shenandoah/shenandoah_globals.hpp @@ -300,12 +300,14 @@ "the cycles. Lower values would increase GC responsiveness " \ "to changing heap conditions, at the expense of higher perf " \ "overhead. Time is in milliseconds.") \ + range(1, 999) \ \ product(uintx, ShenandoahControlIntervalMax, 10, EXPERIMENTAL, \ "The maximum sleep interval for control loop that drives " \ "the cycles. Lower values would increase GC responsiveness " \ "to changing heap conditions, at the expense of higher perf " \ "overhead. Time is in milliseconds.") \ + range(1, 999) \ \ product(uintx, ShenandoahControlIntervalAdjustPeriod, 1000, EXPERIMENTAL, \ "The time period for one step in control loop interval " \