Skip to content

Commit 517ec23

Browse files
Ensure multiJVM set to plain Yes for jck17+ Windows (#4506)
Signed-off-by: Andrew Leonard <[email protected]>
1 parent 44ea825 commit 517ec23

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

jck/jtrunner/JavaTestRunner.java

+5
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,11 @@ public static boolean jckConfigurationForMultijvmWithNoAgent() throws Exception
565565
extraJvmOptions += " -Dfile.encoding=US-ASCII";
566566
}
567567

568+
// testExecutionType of multiJVM_group on Windows causes memory exhaustion, so limit to plain multiJVM
569+
if (getJckVersionInt(jckVersionNo) >= 17 && platform.contains("win")) {
570+
fileContent += "set jck.env.testPlatform.multiJVM \"Yes\";\n";
571+
}
572+
568573
// Set the operating system as 'Windows' for Windows and 'other' for all other operating systems.
569574
// If 'other' is specified when executing on Windows, then Windows specific settings such
570575
// as systemRoot are rejected, and the JCK harness assumes that DISPLAY is required for GUI tests.

0 commit comments

Comments
 (0)