equal
deleted
inserted
replaced
30 * @author igor.ignatyev@oracle.com |
30 * @author igor.ignatyev@oracle.com |
31 */ |
31 */ |
32 public class DeoptimizeMethodTest extends CompilerWhiteBoxTest { |
32 public class DeoptimizeMethodTest extends CompilerWhiteBoxTest { |
33 |
33 |
34 public static void main(String[] args) throws Exception { |
34 public static void main(String[] args) throws Exception { |
|
35 // to prevent inlining #method into #compile() |
|
36 WHITE_BOX.setDontInlineMethod(METHOD, true); |
35 new DeoptimizeMethodTest().runTest(); |
37 new DeoptimizeMethodTest().runTest(); |
36 } |
38 } |
37 |
39 |
38 protected void test() throws Exception { |
40 protected void test() throws Exception { |
39 // to prevent inlining #method into #compile() |
|
40 WHITE_BOX.setDontInlineMethod(METHOD, true); |
|
41 compile(); |
41 compile(); |
42 checkCompiled(METHOD); |
42 checkCompiled(METHOD); |
43 WHITE_BOX.deoptimizeMethod(METHOD); |
43 WHITE_BOX.deoptimizeMethod(METHOD); |
44 checkNotCompiled(METHOD); |
44 checkNotCompiled(METHOD); |
45 } |
45 } |