test/compiler/whitebox/ClearMethodStateTest.java

changeset 5541
f99558245e5c
parent 5512
11237ee74aae
child 6211
d1760952ebdd
     1.1 --- a/test/compiler/whitebox/ClearMethodStateTest.java	Fri Aug 16 17:34:37 2013 +0400
     1.2 +++ b/test/compiler/whitebox/ClearMethodStateTest.java	Wed Aug 14 23:50:23 2013 +0400
     1.3 @@ -23,6 +23,7 @@
     1.4  
     1.5  /*
     1.6   * @test ClearMethodStateTest
     1.7 + * @bug 8006683 8007288 8022832
     1.8   * @library /testlibrary /testlibrary/whitebox
     1.9   * @build ClearMethodStateTest
    1.10   * @run main ClassFileInstaller sun.hotspot.WhiteBox
    1.11 @@ -59,16 +60,19 @@
    1.12          WHITE_BOX.clearMethodState(method);
    1.13          checkCompiled();
    1.14          WHITE_BOX.clearMethodState(method);
    1.15 -        WHITE_BOX.deoptimizeMethod(method);
    1.16 +        deoptimize();
    1.17          checkNotCompiled();
    1.18  
    1.19 -
    1.20 +        if (testCase.isOsr) {
    1.21 +            // part test isn't applicable for OSR test case
    1.22 +            return;
    1.23 +        }
    1.24          if (!TIERED_COMPILATION) {
    1.25              WHITE_BOX.clearMethodState(method);
    1.26              compile(COMPILE_THRESHOLD);
    1.27              checkCompiled();
    1.28  
    1.29 -            WHITE_BOX.deoptimizeMethod(method);
    1.30 +            deoptimize();
    1.31              checkNotCompiled();
    1.32              WHITE_BOX.clearMethodState(method);
    1.33  

mercurial