Skip to content

Commit 93bcc7f

Browse files
committed
8372961: [BACKOUT] Remove the default value of InitialRAMPercentage
1 parent b97ed66 commit 93bcc7f

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/hotspot/share/gc/shared/gc_globals.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@
291291
"size on systems with small physical memory size") \
292292
range(0.0, 100.0) \
293293
\
294-
product(double, InitialRAMPercentage, 0.0, \
294+
product(double, InitialRAMPercentage, 0.2, \
295295
"Percentage of real memory used for initial heap size") \
296296
range(0.0, 100.0) \
297297
\

src/hotspot/share/runtime/flags/jvmFlag.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ void JVMFlag::print_on(outputStream* st, bool withComments, bool printRanges) co
162162
// uintx ThresholdTolerance = 10 {product} {default}
163163
// size_t TLABSize = 0 {product} {default}
164164
// uintx SurvivorRatio = 8 {product} {default}
165-
// double InitialRAMPercentage = 0.000000 {product} {default}
165+
// double InitialRAMPercentage = 1.562500 {product} {default}
166166
// ccstr CompileCommandFile = MyFile.cmd {product} {command line}
167167
// ccstrlist CompileOnly = Method1
168168
// CompileOnly += Method2 {product} {command line}

src/java.base/share/man/java.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2455,7 +2455,8 @@ Java HotSpot VM.
24552455
`-XX:InitialRAMPercentage=`*percent*
24562456
: Sets the initial amount of memory that the JVM will use for the Java heap
24572457
before applying ergonomics heuristics as a percentage of the maximum amount
2458-
determined as described in the `-XX:MaxRAM` option.
2458+
determined as described in the `-XX:MaxRAM` option. The default value is
2459+
0.2 percent.
24592460

24602461
The following example shows how to set the percentage of the initial
24612462
amount of memory used for the Java heap:

0 commit comments

Comments
 (0)