8192870: [Testbug] runtime/handshake/HandshakeTransitionTest throws NPE
Reviewed-by: dholmes, rehn
This commit is contained in:
parent
18e7fa9b4c
commit
318c0d74ab
@ -49,6 +49,14 @@ public class HandshakeTransitionTest {
|
|||||||
public static void main(String[] args) throws Exception {
|
public static void main(String[] args) throws Exception {
|
||||||
String lib = System.getProperty("test.nativepath");
|
String lib = System.getProperty("test.nativepath");
|
||||||
WhiteBox wb = WhiteBox.getWhiteBox();
|
WhiteBox wb = WhiteBox.getWhiteBox();
|
||||||
|
Boolean useJVMCICompiler = wb.getBooleanVMFlag("UseJVMCICompiler");
|
||||||
|
String useJVMCICompilerStr;
|
||||||
|
if (useJVMCICompiler != null) {
|
||||||
|
useJVMCICompilerStr = useJVMCICompiler ? "-XX:+UseJVMCICompiler" : "-XX:-UseJVMCICompiler";
|
||||||
|
} else {
|
||||||
|
// pass something innocuous
|
||||||
|
useJVMCICompilerStr = "-XX:+UnlockExperimentalVMOptions";
|
||||||
|
}
|
||||||
ProcessBuilder pb =
|
ProcessBuilder pb =
|
||||||
ProcessTools.createJavaProcessBuilder(
|
ProcessTools.createJavaProcessBuilder(
|
||||||
true,
|
true,
|
||||||
@ -60,7 +68,7 @@ public class HandshakeTransitionTest {
|
|||||||
"-XX:ConcGCThreads=1",
|
"-XX:ConcGCThreads=1",
|
||||||
"-XX:CICompilerCount=2",
|
"-XX:CICompilerCount=2",
|
||||||
"-XX:+UnlockExperimentalVMOptions",
|
"-XX:+UnlockExperimentalVMOptions",
|
||||||
(wb.getBooleanVMFlag("UseJVMCICompiler") ? "-XX:+UseJVMCICompiler" : "-XX:-UseJVMCICompiler"),
|
useJVMCICompilerStr,
|
||||||
"HandshakeTransitionTest$Test");
|
"HandshakeTransitionTest$Test");
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user