hotspot/test/compiler/whitebox/IsMethodCompilableTest.java
changeset 16367 9cd60b8380a1
parent 15793 4867678e3517
child 16689 efce070b8d42
--- a/hotspot/test/compiler/whitebox/IsMethodCompilableTest.java	Sat Mar 16 21:44:52 2013 -0700
+++ b/hotspot/test/compiler/whitebox/IsMethodCompilableTest.java	Mon Mar 18 04:29:08 2013 -0700
@@ -44,6 +44,8 @@
     }
 
     public static void main(String[] args) throws Exception {
+        // to prevent inlining #method into #compile()
+        WHITE_BOX.setDontInlineMethod(METHOD, true);
         new IsMethodCompilableTest().runTest();
     }
 
@@ -58,8 +60,6 @@
                     "Warning: test is not applicable if PerMethodRecompilationCutoff == Inf");
             return;
         }
-        // to prevent inlining #method into #compile()
-        WHITE_BOX.setDontInlineMethod(METHOD, true);
         boolean madeNotCompilable = false;
 
         for (long i = 0; i < PER_METHOD_RECOMPILATION_CUTOFF; ++i) {