Mercurial > hg > graal-compiler
changeset 21620:d06ff213a181
Small fix to NestedLoopTest: Make sure the placeholder methods cannot be inlined.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Sun, 31 May 2015 23:05:25 +0200 |
parents | b14a218c5471 |
children | 993853d22c14 |
files | graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/NestedLoopTest.java |
diffstat | 1 files changed, 5 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- 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<Block> rootLoop = cfg.getLoops().get(0); Loop<Block> nestedLoop = cfg.getLoops().get(1); Loop<Block> innerMostLoop = cfg.getLoops().get(2);