Mercurial > hg > graal-jvmci-8
changeset 18249:e41787b05c98
StandardMethodSubstitutionsTest: get valid code for each iteration.
Solves the InvalidInstalledCodeException issue that occurred in case of a deopt.
author | Josef Eisl <josef.eisl@jku.at> |
---|---|
date | Wed, 05 Nov 2014 11:20:39 +0100 |
parents | 810b676423bc |
children | 34cb95edfc97 |
files | graal/com.oracle.graal.replacements.test/src/com/oracle/graal/replacements/test/StandardMethodSubstitutionsTest.java |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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));