# HG changeset patch # User Doug Simon # Date 1403015834 -7200 # Node ID af8b7d059e03f9fc2fdde37cdf72225a8a1ea2d5 # Parent 310994c667a7d544f98ef090bd8b54adb77647e1 HSAIL: disabled NewStringEqualsTest diff -r 310994c667a7 -r af8b7d059e03 graal/com.oracle.graal.compiler.hsail.test/src/com/oracle/graal/compiler/hsail/test/lambda/NewStringEqualsTest.java --- a/graal/com.oracle.graal.compiler.hsail.test/src/com/oracle/graal/compiler/hsail/test/lambda/NewStringEqualsTest.java Tue Jun 17 12:05:34 2014 +0200 +++ b/graal/com.oracle.graal.compiler.hsail.test/src/com/oracle/graal/compiler/hsail/test/lambda/NewStringEqualsTest.java Tue Jun 17 16:37:14 2014 +0200 @@ -52,6 +52,12 @@ setupArrays(); String base = "ABCDEFGHIJ"; + // Resolving StringIndexOutOfBoundsException causes compilation of the + // lambda to fail as. Combined with use of InlineEverything and RemoveNeverExecutedCode + // the inlining budget is blown before String.equals can be inlined leaving + // a DirectCallTargetNode in the graph which cannot be lowered by HSAIL. + new StringIndexOutOfBoundsException().fillInStackTrace(); + dispatchLambdaKernel(NUM, (gid) -> { outArray[gid] = new String(chars, 0, 10 + (gid % 3)).equals(base); }); @@ -63,6 +69,7 @@ return (canHandleObjectAllocation()); } + @Ignore("see comment in runTest") @Test public void test() { try (DebugConfigScope s = disableIntercept()) { @@ -70,6 +77,7 @@ } } + @Ignore("see comment in runTest") @Test public void testUsingLambdaMethod() { try (DebugConfigScope s = disableIntercept()) {