equal
deleted
inserted
replaced
47 public static native void someTime(int ms); |
47 public static native void someTime(int ms); |
48 |
48 |
49 public static void main(String[] args) throws Exception { |
49 public static void main(String[] args) throws Exception { |
50 String lib = System.getProperty("test.nativepath"); |
50 String lib = System.getProperty("test.nativepath"); |
51 WhiteBox wb = WhiteBox.getWhiteBox(); |
51 WhiteBox wb = WhiteBox.getWhiteBox(); |
|
52 Boolean useJVMCICompiler = wb.getBooleanVMFlag("UseJVMCICompiler"); |
|
53 String useJVMCICompilerStr; |
|
54 if (useJVMCICompiler != null) { |
|
55 useJVMCICompilerStr = useJVMCICompiler ? "-XX:+UseJVMCICompiler" : "-XX:-UseJVMCICompiler"; |
|
56 } else { |
|
57 // pass something innocuous |
|
58 useJVMCICompilerStr = "-XX:+UnlockExperimentalVMOptions"; |
|
59 } |
52 ProcessBuilder pb = |
60 ProcessBuilder pb = |
53 ProcessTools.createJavaProcessBuilder( |
61 ProcessTools.createJavaProcessBuilder( |
54 true, |
62 true, |
55 "-Djava.library.path=" + lib, |
63 "-Djava.library.path=" + lib, |
56 "-XX:+SafepointALot", |
64 "-XX:+SafepointALot", |
58 "-Xlog:ergo*", |
66 "-Xlog:ergo*", |
59 "-XX:ParallelGCThreads=1", |
67 "-XX:ParallelGCThreads=1", |
60 "-XX:ConcGCThreads=1", |
68 "-XX:ConcGCThreads=1", |
61 "-XX:CICompilerCount=2", |
69 "-XX:CICompilerCount=2", |
62 "-XX:+UnlockExperimentalVMOptions", |
70 "-XX:+UnlockExperimentalVMOptions", |
63 (wb.getBooleanVMFlag("UseJVMCICompiler") ? "-XX:+UseJVMCICompiler" : "-XX:-UseJVMCICompiler"), |
71 useJVMCICompilerStr, |
64 "HandshakeTransitionTest$Test"); |
72 "HandshakeTransitionTest$Test"); |
65 |
73 |
66 |
74 |
67 OutputAnalyzer output = ProcessTools.executeProcess(pb); |
75 OutputAnalyzer output = ProcessTools.executeProcess(pb); |
68 output.reportDiagnosticSummary(); |
76 output.reportDiagnosticSummary(); |