8342074: Fix runtime/Thread/TestAlwaysPreTouchStacks.java to be flagless or accept VM flags

Reviewed-by: gziemski, lmesnik
This commit is contained in:
Afshin Zafari 2024-11-26 11:08:34 +00:00
parent 0054bbed7f
commit 9291abc633

View File

@ -93,7 +93,7 @@ public class TestAlwaysPreTouchStacks {
vmArgs.add("-XX:-UseMadvPopulateWrite");
}
Collections.addAll(vmArgs, "TestAlwaysPreTouchStacks", "test");
ProcessBuilder pb = ProcessTools.createLimitedTestJavaProcessBuilder(vmArgs);
ProcessBuilder pb = ProcessTools.createTestJavaProcessBuilder(vmArgs);
OutputAnalyzer output = new OutputAnalyzer(pb.start());
output.shouldHaveExitValue(0);