Skip to content

Commit

Permalink
8333129: Move ShrinkHeapInSteps flag to Serial GC
Browse files Browse the repository at this point in the history
Reviewed-by: dholmes, kbarrett
  • Loading branch information
zhengyu123 committed May 31, 2024
1 parent 2f2dc22 commit 79a78f0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
16 changes: 10 additions & 6 deletions src/hotspot/share/gc/serial/serial_globals.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 0 additions & 5 deletions src/hotspot/share/runtime/globals.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) \
Expand Down

1 comment on commit 79a78f0

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.