60 private static void check(boolean enabled) { |
60 private static void check(boolean enabled) { |
61 OutputAnalyzer oa; |
61 OutputAnalyzer oa; |
62 try { |
62 try { |
63 oa = ProcessTools.executeTestJvm("-XX:+UnlockDiagnosticVMOptions", "-Xbootclasspath/a:.", |
63 oa = ProcessTools.executeTestJvm("-XX:+UnlockDiagnosticVMOptions", "-Xbootclasspath/a:.", |
64 "-XX:" + (enabled ? "+" : "-") + "UseCountedLoopSafepoints", |
64 "-XX:" + (enabled ? "+" : "-") + "UseCountedLoopSafepoints", |
65 "-XX:LoopStripMiningIter=" + (enabled ? "1" : "0"), "-XX:+WhiteBoxAPI", |
65 "-XX:+WhiteBoxAPI", |
66 "-XX:-Inline", "-Xbatch", "-XX:+PrintIdeal", "-XX:LoopUnrollLimit=0", |
66 "-XX:-Inline", "-Xbatch", "-XX:+PrintIdeal", "-XX:LoopUnrollLimit=0", |
67 "-XX:CompileOnly=" + UseCountedLoopSafepoints.class.getName() + "::testMethod", |
67 "-XX:CompileOnly=" + UseCountedLoopSafepoints.class.getName() + "::testMethod", |
68 UseCountedLoopSafepoints.class.getName()); |
68 UseCountedLoopSafepoints.class.getName()); |
69 } catch (Exception e) { |
69 } catch (Exception e) { |
70 throw new Error("Exception launching child for case enabled=" + enabled + " : " + e, e); |
70 throw new Error("Exception launching child for case enabled=" + enabled + " : " + e, e); |