hotspot/test/compiler/whitebox/DeoptimizeMethodTest.java
changeset 16367 9cd60b8380a1
parent 15793 4867678e3517
child 16689 efce070b8d42
equal deleted inserted replaced
16366:b54bc5cfaa6d 16367:9cd60b8380a1
    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     }