Mercurial > hg > truffle
diff src/share/vm/oops/method.cpp @ 12073:f99558245e5c
8022832: Add WB APIs for OSR compilation
Reviewed-by: kvn
author | iignatyev |
---|---|
date | Wed, 14 Aug 2013 23:50:23 +0400 |
parents | 16511b7e3d35 |
children | 6725044c5725 |
line wrap: on
line diff
--- a/src/share/vm/oops/method.cpp Fri Aug 16 17:34:37 2013 +0400 +++ b/src/share/vm/oops/method.cpp Wed Aug 14 23:50:23 2013 +0400 @@ -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