Mercurial > hg > graal-compiler
diff graal/com.oracle.graal.truffle.test/sl/TestInliningMaxCallerSize.sl @ 17405:04d6bb76cfb3
Truffle: update callUntilOptimized to wait for the compilation and call it once optimized.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Thu, 09 Oct 2014 17:25:59 +0200 |
parents | 5787218bad91 |
children | bb7e95512781 |
line wrap: on
line diff
--- a/graal/com.oracle.graal.truffle.test/sl/TestInliningMaxCallerSize.sl Thu Oct 09 17:25:59 2014 +0200 +++ b/graal/com.oracle.graal.truffle.test/sl/TestInliningMaxCallerSize.sl Thu Oct 09 17:25:59 2014 +0200 @@ -20,10 +20,10 @@ function main() { originalMaxCallerSize = getOption("TruffleInliningMaxCallerSize"); setOption("TruffleInliningMaxCallerSize", 20); - waitForOptimization(callUntilOptimized(test1)); + callUntilOptimized(test1); assertTrue(isInlined(test1, test1, inlinableFunction), "inlinableFunction is not inlined"); - waitForOptimization(callUntilOptimized(test2)); + callUntilOptimized(test2); assertFalse(isInlined(test2, test2, notInlinableFunction), "notInlinableFunction is inlined"); setOption("TruffleInliningMaxCallerSize", originalMaxCallerSize); }