hotspot/test/compiler/whitebox/MakeMethodNotCompilableTest.java
changeset 27430 c148f9c9fd4f
parent 27146 06664440c7a3
child 28190 5a6b07edeb21
--- a/hotspot/test/compiler/whitebox/MakeMethodNotCompilableTest.java	Mon Oct 27 20:03:57 2014 -1000
+++ b/hotspot/test/compiler/whitebox/MakeMethodNotCompilableTest.java	Tue Oct 28 09:17:36 2014 +0100
@@ -132,14 +132,15 @@
             throw new RuntimeException(method
                     + " is not compilable after clearMethodState()");
         }
-
+        // Make method not (OSR-)compilable (depending on testCase.isOsr())
         makeNotCompilable();
         if (isCompilable()) {
             throw new RuntimeException(method + " must be not compilable");
         }
-
+        // Try to (OSR-)compile method
         compile();
-        checkNotOsrCompiled();
+        // Method should not be (OSR-)compiled
+        checkNotCompiled(testCase.isOsr());
         if (isCompilable()) {
             throw new RuntimeException(method + " must be not compilable");
         }