hotspot/test/compiler/whitebox/DeoptimizeAllTest.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 DeoptimizeAllTest extends CompilerWhiteBoxTest {
    32 public class DeoptimizeAllTest 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 DeoptimizeAllTest().runTest();
    37         new DeoptimizeAllTest().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.deoptimizeAll();
    43         WHITE_BOX.deoptimizeAll();
    44         checkNotCompiled(METHOD);
    44         checkNotCompiled(METHOD);
    45     }
    45     }