Skip to content

Commit 1e99800

Browse files
DamonFoolJohn Jiang
authored andcommitted
8267246: -XX:MaxRAMPercentage=0 is unreasonable for jtreg tests on many-core machines
Backport-of: 0daec49
1 parent 2221f37 commit 1e99800

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

make/RunTests.gmk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ define SetupRunJtregTestBody
641641

642642
# Make sure MaxRAMPercentage is high enough to not cause OOM or swapping since
643643
# we may end up with a lot of JVM's
644-
$1_JTREG_MAX_RAM_PERCENTAGE := $$(shell $$(EXPR) 25 / $$($1_JTREG_JOBS))
644+
$1_JTREG_MAX_RAM_PERCENTAGE := $$(shell $(AWK) 'BEGIN { print 25 / $$($1_JTREG_JOBS); }')
645645

646646
# SPARC is in general slower per core so need to scale up timeouts a bit.
647647
ifeq ($(OPENJDK_TARGET_CPU_ARCH), sparc)

0 commit comments

Comments
 (0)