test/compiler/whitebox/IsMethodCompilableTest.java

changeset 4766
4efac99a998b
parent 4637
1b0dc9f87e75
child 4908
b84fd7d73702
     1.1 --- a/test/compiler/whitebox/IsMethodCompilableTest.java	Sat Mar 16 21:44:52 2013 -0700
     1.2 +++ b/test/compiler/whitebox/IsMethodCompilableTest.java	Mon Mar 18 04:29:08 2013 -0700
     1.3 @@ -44,6 +44,8 @@
     1.4      }
     1.5  
     1.6      public static void main(String[] args) throws Exception {
     1.7 +        // to prevent inlining #method into #compile()
     1.8 +        WHITE_BOX.setDontInlineMethod(METHOD, true);
     1.9          new IsMethodCompilableTest().runTest();
    1.10      }
    1.11  
    1.12 @@ -58,8 +60,6 @@
    1.13                      "Warning: test is not applicable if PerMethodRecompilationCutoff == Inf");
    1.14              return;
    1.15          }
    1.16 -        // to prevent inlining #method into #compile()
    1.17 -        WHITE_BOX.setDontInlineMethod(METHOD, true);
    1.18          boolean madeNotCompilable = false;
    1.19  
    1.20          for (long i = 0; i < PER_METHOD_RECOMPILATION_CUTOFF; ++i) {

mercurial