mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8152311: [JVMCI] allow JVMCI compiler to change the compilation policy for a method
Reviewed-by: kvn, never
This commit is contained in:
parent
41dcc3f305
commit
32a12da3bf
17 changed files with 293 additions and 52 deletions
|
@ -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.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue