Mercurial > hg > graal-compiler
diff test/compiler/whitebox/ClearMethodStateTest.java @ 14909:4ca6dc0799b6
Backout jdk9 merge
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Tue, 01 Apr 2014 13:57:07 +0200 |
parents | f9a4b59ae350 |
children | 52b4284cb496 |
line wrap: on
line diff
--- a/test/compiler/whitebox/ClearMethodStateTest.java Tue Apr 01 14:09:03 2014 +0200 +++ b/test/compiler/whitebox/ClearMethodStateTest.java Tue Apr 01 13:57:07 2014 +0200 @@ -21,25 +21,25 @@ * questions. */ -import java.util.function.Function; - /* * @test ClearMethodStateTest * @bug 8006683 8007288 8022832 * @library /testlibrary /testlibrary/whitebox * @build ClearMethodStateTest * @run main ClassFileInstaller sun.hotspot.WhiteBox - * @run main/othervm -Xbootclasspath/a:. -Xmixed -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:CompileCommand=compileonly,SimpleTestCase$Helper::* ClearMethodStateTest + * @run main/othervm -Xbootclasspath/a:. -Xmixed -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:CompileCommand=compileonly,TestCase$Helper::* ClearMethodStateTest * @summary testing of WB::clearMethodState() * @author igor.ignatyev@oracle.com */ public class ClearMethodStateTest extends CompilerWhiteBoxTest { public static void main(String[] args) throws Exception { - CompilerWhiteBoxTest.main(ClearMethodStateTest::new, args); + for (TestCase test : TestCase.values()) { + new ClearMethodStateTest(test).runTest(); + } } - private ClearMethodStateTest(TestCase testCase) { + public ClearMethodStateTest(TestCase testCase) { super(testCase); // to prevent inlining of #method WHITE_BOX.testSetDontInlineMethod(method, true); @@ -63,7 +63,7 @@ deoptimize(); checkNotCompiled(); - if (testCase.isOsr()) { + if (testCase.isOsr) { // part test isn't applicable for OSR test case return; }