From 79a78f032effdae40816e7d3e2596dc2b8ef5b9f Mon Sep 17 00:00:00 2001 From: Zhengyu Gu Date: Fri, 31 May 2024 13:00:04 +0000 Subject: [PATCH] 8333129: Move ShrinkHeapInSteps flag to Serial GC Reviewed-by: dholmes, kbarrett --- src/hotspot/share/gc/serial/serial_globals.hpp | 16 ++++++++++------ src/hotspot/share/runtime/globals.hpp | 5 ----- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/src/hotspot/share/gc/serial/serial_globals.hpp b/src/hotspot/share/gc/serial/serial_globals.hpp index f4a76408a12..ee8225a699a 100644 --- a/src/hotspot/share/gc/serial/serial_globals.hpp +++ b/src/hotspot/share/gc/serial/serial_globals.hpp @@ -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 diff --git a/src/hotspot/share/runtime/globals.hpp b/src/hotspot/share/runtime/globals.hpp index 6bfb260606b..43771d550a2 100644 --- a/src/hotspot/share/runtime/globals.hpp +++ b/src/hotspot/share/runtime/globals.hpp @@ -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) \