diff --git a/test/lib/jdk/test/lib/apps/LingeredApp.java b/test/lib/jdk/test/lib/apps/LingeredApp.java index 147870b1fce..ed2f5266e82 100644 --- a/test/lib/jdk/test/lib/apps/LingeredApp.java +++ b/test/lib/jdk/test/lib/apps/LingeredApp.java @@ -34,6 +34,7 @@ import java.nio.file.attribute.BasicFileAttributes; import java.nio.file.attribute.FileTime; import java.util.ArrayList; +import java.util.Collections; import java.util.Date; import java.util.List; import java.util.Map; @@ -334,6 +335,8 @@ public List runAppPrepare(List vmArguments) { // Lets user manage LingeredApp options cmd.addAll(vmArguments); } + Collections.addAll(cmd, Utils.getTestJavaOpts()); + if (forceCrash) { cmd.add("-XX:+CreateCoredumpOnCrash"); // We need to find libLingeredApp.so for the crash() native method @@ -377,7 +380,6 @@ public void runApp(List vmArguments) if (forceCrash) { cmd.add("forceCrash"); // Let the subprocess know to force a crash } - printCommandLine(cmd); ProcessBuilder pb = new ProcessBuilder(cmd);