Mercurial > hg > graal-compiler
diff graal/com.oracle.graal.truffle.test/sl/TestInliningMaxCallerSize.sl @ 17370:5c06895b1aec
sl inlining test: override default setting for max caller size to a smaller value
author | Bernhard Urban <bernhard.urban@jku.at> |
---|---|
date | Wed, 08 Oct 2014 17:38:54 +0200 |
parents | f735aa886cf6 |
children | 5787218bad91 |
line wrap: on
line diff
--- a/graal/com.oracle.graal.truffle.test/sl/TestInliningMaxCallerSize.sl Wed Oct 08 12:18:57 2014 +0200 +++ b/graal/com.oracle.graal.truffle.test/sl/TestInliningMaxCallerSize.sl Wed Oct 08 17:38:54 2014 +0200 @@ -18,9 +18,12 @@ } function main() { + originalMaxCallerSize = getOption("TruffleInliningMaxCallerSize"); + setOption("TruffleInliningMaxCallerSize", 20); waitForOptimization(callUntilOptimized(test1)); assertTrue(isInlined(test1, test1, inlinableFunction), "inlinableFunction is not inlined"); waitForOptimization(callUntilOptimized(test2)); assertFalse(isInlined(test2, test2, notInlinableFunction), "notInlinableFunction is inlined"); + setOption("TruffleInliningMaxCallerSize", originalMaxCallerSize); }