8152311: [JVMCI] allow JVMCI compiler to change the compilation policy for a method

Reviewed-by: kvn, never
This commit is contained in:
Doug Simon 2016-05-10 11:48:06 +02:00
parent 41dcc3f305
commit 32a12da3bf
17 changed files with 293 additions and 52 deletions

View file

@ -189,6 +189,15 @@ void JVMCICompiler::compile_method(const methodHandle& method, int entry_bci, JV
}
}
CompLevel JVMCIRuntime::adjust_comp_level(methodHandle method, bool is_osr, CompLevel level, JavaThread* thread) {
if (!thread->adjusting_comp_level()) {
thread->set_adjusting_comp_level(true);
level = adjust_comp_level_inner(method, is_osr, level, thread);
thread->set_adjusting_comp_level(false);
}
return level;
}
/**
* Aborts the VM due to an unexpected exception.
*/