hotspot/src/share/vm/runtime/compilationPolicy.cpp
changeset 16689 efce070b8d42
parent 14477 95e66ea71f71
child 17002 d86c9dfa4a5f
--- a/hotspot/src/share/vm/runtime/compilationPolicy.cpp	Mon Apr 08 07:40:08 2013 -0700
+++ b/hotspot/src/share/vm/runtime/compilationPolicy.cpp	Tue Apr 09 09:54:17 2013 -0700
@@ -123,9 +123,10 @@
   }
   if (comp_level == CompLevel_all) {
     return !m->is_not_compilable(CompLevel_simple) && !m->is_not_compilable(CompLevel_full_optimization);
-  } else {
+  } else if (is_compile(comp_level)) {
     return !m->is_not_compilable(comp_level);
   }
+  return false;
 }
 
 bool CompilationPolicy::is_compilation_enabled() {