Skip to content

Commit e8bcedb

Browse files
author
William Kemper
committedApr 11, 2025
8354452: Shenandoah: Enforce range checks on parameters controlling heuristic sleep times
Reviewed-by: ysr
1 parent d14e84c commit e8bcedb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎src/hotspot/share/gc/shenandoah/shenandoah_globals.hpp

+2
Original file line numberDiff line numberDiff line change
@@ -300,12 +300,14 @@
300300
"the cycles. Lower values would increase GC responsiveness " \
301301
"to changing heap conditions, at the expense of higher perf " \
302302
"overhead. Time is in milliseconds.") \
303+
range(1, 999) \
303304
\
304305
product(uintx, ShenandoahControlIntervalMax, 10, EXPERIMENTAL, \
305306
"The maximum sleep interval for control loop that drives " \
306307
"the cycles. Lower values would increase GC responsiveness " \
307308
"to changing heap conditions, at the expense of higher perf " \
308309
"overhead. Time is in milliseconds.") \
310+
range(1, 999) \
309311
\
310312
product(uintx, ShenandoahControlIntervalAdjustPeriod, 1000, EXPERIMENTAL, \
311313
"The time period for one step in control loop interval " \

0 commit comments

Comments
 (0)