< prev index next >

test/compiler/arraycopy/TestArrayCopyNoInitDeopt.java

Print this page

        

*** 70,79 **** --- 70,80 ---- } return dest; } private static final WhiteBox WHITE_BOX = WhiteBox.getWhiteBox(); + private static final int TIERED_STOP_AT_LEVEL = WHITE_BOX.getIntxVMFlag("TieredStopAtLevel").intValue(); static boolean deoptimize(Method method, Object src_obj) throws Exception { for (int i = 0; i < 10; i++) { method.invoke(null, src_obj); if (!WHITE_BOX.isMethodCompiled(method)) {
*** 82,92 **** } return false; } static public void main(String[] args) throws Exception { ! if (Platform.isServer()) { int[] src = new int[10]; Object src_obj = new Object(); Method method_m1 = TestArrayCopyNoInitDeopt.class.getMethod("m1", Object.class); Method method_m2 = TestArrayCopyNoInitDeopt.class.getMethod("m2", Object.class); --- 83,95 ---- } return false; } static public void main(String[] args) throws Exception { ! // Only execute if C2 is available ! if (Platform.isServer() && ! TIERED_STOP_AT_LEVEL == CompilerWhiteBoxTest.COMP_LEVEL_FULL_OPTIMIZATION) { int[] src = new int[10]; Object src_obj = new Object(); Method method_m1 = TestArrayCopyNoInitDeopt.class.getMethod("m1", Object.class); Method method_m2 = TestArrayCopyNoInitDeopt.class.getMethod("m2", Object.class);
< prev index next >