equal
deleted
inserted
replaced
36 * @ignore 8067651 |
36 * @ignore 8067651 |
37 * @build TransitionsTestExecutor LevelTransitionTest |
37 * @build TransitionsTestExecutor LevelTransitionTest |
38 * @run main ClassFileInstaller sun.hotspot.WhiteBox sun.hotspot.WhiteBox$WhiteBoxPermission |
38 * @run main ClassFileInstaller sun.hotspot.WhiteBox sun.hotspot.WhiteBox$WhiteBoxPermission |
39 * @run main/othervm/timeout=240 -Xmixed -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions |
39 * @run main/othervm/timeout=240 -Xmixed -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions |
40 * -XX:+WhiteBoxAPI -XX:+TieredCompilation |
40 * -XX:+WhiteBoxAPI -XX:+TieredCompilation |
41 * -XX:CompileCommand=compileonly,compiler.whitebox.SimpleTestCase$Helper::* |
41 * -XX:CompileCommand=compileonly,compiler.whitebox.SimpleTestCaseHelper::* |
42 * -XX:CompileCommand=compileonly,ExtendedTestCase$CompileMethodHolder::* |
42 * -XX:CompileCommand=compileonly,ExtendedTestCase$CompileMethodHolder::* |
43 * TransitionsTestExecutor LevelTransitionTest |
43 * TransitionsTestExecutor LevelTransitionTest |
44 * @summary Test the correctness of compilation level transitions for different methods |
44 * @summary Test the correctness of compilation level transitions for different methods |
45 */ |
45 */ |
46 public class LevelTransitionTest extends TieredLevelsTest { |
46 public class LevelTransitionTest extends TieredLevelsTest { |
78 } |
78 } |
79 |
79 |
80 /** |
80 /** |
81 * Makes and verifies transitions between compilation levels |
81 * Makes and verifies transitions between compilation levels |
82 */ |
82 */ |
83 protected void checkTransitions() { |
83 protected void checkTransitions() throws Exception { |
84 checkNotCompiled(); |
84 checkNotCompiled(); |
85 boolean finish = false; |
85 boolean finish = false; |
86 while (!finish) { |
86 while (!finish) { |
87 System.out.printf("Level transition #%d%n", ++transitionCount); |
87 System.out.printf("Level transition #%d%n", ++transitionCount); |
88 int newLevel; |
88 int newLevel; |