diff --git a/test/hotspot/jtreg/loongson/25064/NUMAHelper.java b/test/hotspot/jtreg/loongson/25064/NUMAHelper.java index 40443449bf3..ee0c4387eb3 100644 --- a/test/hotspot/jtreg/loongson/25064/NUMAHelper.java +++ b/test/hotspot/jtreg/loongson/25064/NUMAHelper.java @@ -56,7 +56,8 @@ static long getNewSize(OutputAnalyzer output) { } static OutputAnalyzer invokeJvm(String... args) throws Exception { - return new OutputAnalyzer(ProcessTools.createTestJvm(args).start()); + ProcessBuilder pb = ProcessTools.createTestJavaProcessBuilder(args); + return new OutputAnalyzer(pb.start()); } static int getNUMANodes() throws Exception { diff --git a/test/hotspot/jtreg/loongson/30358/TestLoadLoad.java b/test/hotspot/jtreg/loongson/30358/TestLoadLoad.java index 29c3cebfece..92a4f00c247 100644 --- a/test/hotspot/jtreg/loongson/30358/TestLoadLoad.java +++ b/test/hotspot/jtreg/loongson/30358/TestLoadLoad.java @@ -47,7 +47,7 @@ public static void main(String[] args) throws Exception { command.add("-XX:+PrintInterpreter"); command.add("-version"); - ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(command); + ProcessBuilder pb = ProcessTools.createLimitedTestJavaProcessBuilder(command); OutputAnalyzer analyzer = new OutputAnalyzer(pb.start()); analyzer.shouldHaveExitValue(0); diff --git a/test/hotspot/jtreg/loongson/30358/TestNewObjectWithFinal.java b/test/hotspot/jtreg/loongson/30358/TestNewObjectWithFinal.java index a9a8cb39dca..2bc9ada7ce8 100644 --- a/test/hotspot/jtreg/loongson/30358/TestNewObjectWithFinal.java +++ b/test/hotspot/jtreg/loongson/30358/TestNewObjectWithFinal.java @@ -70,7 +70,7 @@ public static void main(String[] args) throws Exception { command.add("-XX:CompileCommand=compileonly," + Launcher.class.getName() + "::" + "test"); command.add(Launcher.class.getName()); - ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(command); + ProcessBuilder pb = ProcessTools.createLimitedTestJavaProcessBuilder(command); OutputAnalyzer analyzer = new OutputAnalyzer(pb.start()); analyzer.shouldHaveExitValue(0); diff --git a/test/hotspot/jtreg/loongson/30358/TestVolatile.java b/test/hotspot/jtreg/loongson/30358/TestVolatile.java index ebe7ed7329a..9fefa381c38 100644 --- a/test/hotspot/jtreg/loongson/30358/TestVolatile.java +++ b/test/hotspot/jtreg/loongson/30358/TestVolatile.java @@ -74,7 +74,7 @@ public static void main(String[] args) throws Exception { command.add("-XX:CompileCommand=dontinline," + Launcher.class.getName() + "::" + "*"); command.add(Launcher.class.getName()); - ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(command); + ProcessBuilder pb = ProcessTools.createLimitedTestJavaProcessBuilder(command); OutputAnalyzer analyzer = new OutputAnalyzer(pb.start());