8333129: Move ShrinkHeapInSteps flag to Serial GC

Reviewed-by: dholmes, kbarrett
This commit is contained in:
Zhengyu Gu 2024-05-31 13:00:04 +00:00
parent 2f2dc2289b
commit 79a78f032e
2 changed files with 10 additions and 11 deletions

View File

@ -25,12 +25,16 @@
#ifndef SHARE_GC_SERIAL_SERIAL_GLOBALS_HPP
#define SHARE_GC_SERIAL_SERIAL_GLOBALS_HPP
#define GC_SERIAL_FLAGS(develop, \
develop_pd, \
product, \
product_pd, \
range, \
constraint)
#define GC_SERIAL_FLAGS(develop, \
develop_pd, \
product, \
product_pd, \
range, \
constraint) \
product(bool, ShrinkHeapInSteps, true, \
"When disabled, informs the GC to shrink the java heap directly" \
" to the target size at the next full GC rather than requiring" \
" smaller steps during multiple full GCs.") \
// end of GC_SERIAL_FLAGS

View File

@ -1425,11 +1425,6 @@ const int ObjectAlignmentInBytes = 8;
range(0, 100) \
constraint(MaxHeapFreeRatioConstraintFunc,AfterErgo) \
\
product(bool, ShrinkHeapInSteps, true, \
"When disabled, informs the GC to shrink the java heap directly" \
" to the target size at the next full GC rather than requiring" \
" smaller steps during multiple full GCs.") \
\
product(intx, SoftRefLRUPolicyMSPerMB, 1000, \
"Number of milliseconds per MB of free space in the heap") \
range(0, max_intx) \