Skip to content

Commit

Permalink
Update (2024.05.14)
Browse files Browse the repository at this point in the history
amend Rename createJavaProcessBuilder
  • Loading branch information
theaoqi authored May 14, 2024
1 parent 68b3b27 commit a54f4f2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion test/hotspot/jtreg/loongson/25064/NUMAHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion test/hotspot/jtreg/loongson/30358/TestLoadLoad.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion test/hotspot/jtreg/loongson/30358/TestVolatile.java
Original file line number Diff line number Diff line change
Expand Up @@ -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());

Expand Down

0 comments on commit a54f4f2

Please sign in to comment.