# HG changeset patch # User Josef Eisl # Date 1415182839 -3600 # Node ID e41787b05c98e1a925621617d98307528b801e1f # Parent 810b676423bcf5990e3cce448c24f0d6222338a8 StandardMethodSubstitutionsTest: get valid code for each iteration. Solves the InvalidInstalledCodeException issue that occurred in case of a deopt. diff -r 810b676423bc -r e41787b05c98 graal/com.oracle.graal.replacements.test/src/com/oracle/graal/replacements/test/StandardMethodSubstitutionsTest.java --- a/graal/com.oracle.graal.replacements.test/src/com/oracle/graal/replacements/test/StandardMethodSubstitutionsTest.java Tue Nov 04 22:43:54 2014 +0100 +++ b/graal/com.oracle.graal.replacements.test/src/com/oracle/graal/replacements/test/StandardMethodSubstitutionsTest.java Wed Nov 05 11:20:39 2014 +0100 @@ -74,10 +74,10 @@ assertInGraph(graph, intrinsicClass); } - // Force compilation - InstalledCode code = getCode(testJavaMethod); - assert optional || code != null; for (Object l : args) { + // Force compilation + InstalledCode code = getCode(testJavaMethod); + assert optional || code != null; // Verify that the original method and the substitution produce the same value Object expected = invokeSafe(realJavaMethod, null, l); assertDeepEquals(expected, invokeSafe(testJavaMethod, null, l));