--- 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");
}