# HG changeset patch # User Thomas Wuerthinger # Date 1433106325 -7200 # Node ID d06ff213a181627c02a0c601cc602c90484f68c2 # Parent b14a218c547142be6c50d8d8691526198e72f989 Small fix to NestedLoopTest: Make sure the placeholder methods cannot be inlined. diff -r b14a218c5471 -r d06ff213a181 graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/NestedLoopTest.java --- a/graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/NestedLoopTest.java Sun May 31 22:48:50 2015 +0200 +++ b/graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/NestedLoopTest.java Sun May 31 23:05:25 2015 +0200 @@ -120,21 +120,13 @@ } } // total : root = 1 exit, nested = 6, innermost = 4 - private static boolean a() { - return false; - } + private static native boolean a(); - private static boolean b() { - return false; - } + private static native boolean b(); - private static boolean c() { - return false; - } + private static native boolean c(); - private static boolean d() { - return false; - } + private static native boolean d(); private static Invoke getInvoke(String name, StructuredGraph graph) { for (MethodCallTargetNode callTarget : graph.getNodes(MethodCallTargetNode.TYPE)) { @@ -150,7 +142,7 @@ Debug.dump(graph, "Graph"); ControlFlowGraph cfg = ControlFlowGraph.compute(graph, true, true, true, true); - Assert.assertTrue(cfg.getLoops().size() == 3); + Assert.assertEquals(3, cfg.getLoops().size()); Loop rootLoop = cfg.getLoops().get(0); Loop nestedLoop = cfg.getLoops().get(1); Loop innerMostLoop = cfg.getLoops().get(2);