Skip to content

Commit

Permalink
8248306: gc/stress/gclocker/TestExcessGCLockerCollections.java does n…
Browse files Browse the repository at this point in the history
…ot compile

Update the test to use the method suggested in JDK-8244010.

Backport-of: 83fff05
  • Loading branch information
GoeLin committed Feb 17, 2023
1 parent cdd3e04 commit b51ebf8
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,7 @@ public static void main(String args[]) throws Exception {
finalArgs.addAll(Arrays.asList(args));

// GC and other options obtained from test framework.
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(
true, finalArgs);
OutputAnalyzer output = new OutputAnalyzer(pb.start());
OutputAnalyzer output = ProcessTools.executeTestJvm(finalArgs);
output.shouldHaveExitValue(0);
//System.out.println("------------- begin stdout ----------------");
//System.out.println(output.getStdout());
Expand Down

1 comment on commit b51ebf8

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.