# HG changeset patch # User Doug Simon # Date 1453976163 -3600 # Node ID 584975185d36db4453f2eee3225f0c01cbf8e0c7 # Parent daece94b35c2a1a19f636579f30f482a7b8bf0e9 increased iterations to increase chance of test failing diff -r daece94b35c2 -r 584975185d36 graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/InterfaceMethodHandleTest.java --- a/graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/InterfaceMethodHandleTest.java Thu Jan 28 10:59:18 2016 +0100 +++ b/graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/InterfaceMethodHandleTest.java Thu Jan 28 11:16:03 2016 +0100 @@ -119,12 +119,14 @@ A goodInstance = new A(); I badInstance = new M2Thrower(); getCode(getMetaAccess().lookupJavaMethod(getMethod(M2Thrower.class, "m2"))); - final int limit = 20000; - for (int i = 0; i <= limit; i++) { - try { - invokeInterfaceHandle2(i < limit - 1 ? goodInstance : badInstance, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10); - } catch (InternalError e) { + for (int x = 0; x < 1000; x++) { + final int limit = 20000; + for (int i = 0; i <= limit; i++) { + try { + invokeInterfaceHandle2(i < limit - 1 ? goodInstance : badInstance, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10); + } catch (InternalError e) { + } } } }