Skip to content

Commit 8d80778

Browse files
committed
8373023: [REDO] Remove the default value of InitialRAMPercentage
Reviewed-by: stefank, sjohanss, aboldtch
1 parent fa6ca0b commit 8d80778

File tree

5 files changed

+14
-4
lines changed

5 files changed

+14
-4
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.2, \
294+
product(double, InitialRAMPercentage, 0.0, \
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 = 1.562500 {product} {default}
165+
// double InitialRAMPercentage = 0.000000 {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: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2455,8 +2455,7 @@ 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. The default value is
2459-
0.2 percent.
2458+
determined as described in the `-XX:MaxRAM` option.
24602459

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

test/hotspot/jtreg/ProblemList.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ gc/shenandoah/TestEvilSyncBug.java#generational 8345501 generic-all
9494
gc/shenandoah/TestRetainObjects.java#no-tlab 8361099 generic-all
9595
gc/shenandoah/TestSieveObjects.java#no-tlab 8361099 generic-all
9696
gc/shenandoah/TestSieveObjects.java#no-tlab-genshen 8361099 generic-all
97+
gc/cslocker/TestCSLocker.java 8373025 generic-all
9798

9899
#############################################################################
99100

@@ -139,6 +140,9 @@ serviceability/sa/ClhsdbPstack.java#core 8318754 macosx-aarch64
139140
serviceability/sa/TestJmapCore.java 8318754 macosx-aarch64
140141
serviceability/sa/TestJmapCoreMetaspace.java 8318754 macosx-aarch64
141142

143+
serviceability/sa/ClhsdbScanOops.java#parallel 8373022 generic-all
144+
serviceability/sa/ClhsdbScanOops.java#serial 8373022 generic-all
145+
142146
serviceability/sa/ClhsdbThreadContext.java 8356704 windows-x64
143147

144148
serviceability/jvmti/stress/StackTrace/NotSuspended/GetStackTraceNotSuspendedStressTest.java 8315980 linux-all,windows-x64
@@ -183,3 +187,9 @@ vmTestbase/nsk/jdwp/ThreadReference/ForceEarlyReturn/forceEarlyReturn001/forceEa
183187
vmTestbase/nsk/monitoring/ThreadMXBean/ThreadInfo/Multi/Multi005/TestDescription.java 8076494 windows-x64
184188

185189
vmTestbase/nsk/monitoring/ThreadMXBean/findMonitorDeadlockedThreads/find006/TestDescription.java 8310144 macosx-aarch64
190+
191+
vmTestbase/nsk/monitoring/MemoryPoolMBean/isUsageThresholdExceeded/isexceeded001/TestDescription.java 8373022 generic-all
192+
vmTestbase/nsk/monitoring/MemoryPoolMBean/isUsageThresholdExceeded/isexceeded002/TestDescription.java 8373022 generic-all
193+
vmTestbase/nsk/monitoring/MemoryPoolMBean/isUsageThresholdExceeded/isexceeded003/TestDescription.java 8373022 generic-all
194+
vmTestbase/nsk/monitoring/MemoryPoolMBean/isUsageThresholdExceeded/isexceeded004/TestDescription.java 8373022 generic-all
195+
vmTestbase/nsk/monitoring/MemoryPoolMBean/isUsageThresholdExceeded/isexceeded005/TestDescription.java 8373022 generic-all

test/jdk/ProblemList.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -715,6 +715,7 @@ javax/swing/plaf/synth/7158712/bug7158712.java 8324782 macosx-all
715715
# jdk_jdi
716716

717717
com/sun/jdi/InvokeHangTest.java 8218463 linux-all
718+
com/sun/jdi/MethodInvokeWithTraceOnTest.java 8373022 generic-all
718719

719720
############################################################################
720721

0 commit comments

Comments
 (0)