Mercurial > hg > graal-compiler
changeset 23359:584975185d36
increased iterations to increase chance of test failing
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Thu, 28 Jan 2016 11:16:03 +0100 |
parents | daece94b35c2 |
children | 0dee85d7e73e |
files | graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/InterfaceMethodHandleTest.java |
diffstat | 1 files changed, 7 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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) { + } } } }