hotspot/src/share/vm/oops/method.cpp
changeset 19335 ad762bd4ff48
parent 19278 c4355bebb414
parent 19332 ee4c8c2af356
child 19720 1f9f216fa43e
--- a/hotspot/src/share/vm/oops/method.cpp	Fri Aug 16 04:24:07 2013 -0700
+++ b/hotspot/src/share/vm/oops/method.cpp	Mon Aug 19 09:33:29 2013 +0200
@@ -747,6 +747,7 @@
       set_not_c2_compilable();
   }
   CompilationPolicy::policy()->disable_compilation(this);
+  assert(!CompilationPolicy::can_be_compiled(this, comp_level), "sanity check");
 }
 
 bool Method::is_not_osr_compilable(int comp_level) const {
@@ -773,6 +774,7 @@
       set_not_c2_osr_compilable();
   }
   CompilationPolicy::policy()->disable_compilation(this);
+  assert(!CompilationPolicy::can_be_osr_compiled(this, comp_level), "sanity check");
 }
 
 // Revert to using the interpreter and clear out the nmethod