mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
7000349: Tiered reacts incorrectly to C1 compilation failures
Fix policy reaction to C1 comilation failures, make C1 properly report errors. Reviewed-by: kvn
This commit is contained in:
parent
d563b15558
commit
5c238caed1
3 changed files with 14 additions and 14 deletions
|
@ -471,7 +471,14 @@ Compilation::Compilation(AbstractCompiler* compiler, ciEnv* env, ciMethod* metho
|
|||
_exception_info_list = new ExceptionInfoList();
|
||||
_implicit_exception_table.set_size(0);
|
||||
compile_method();
|
||||
if (is_profiling() && _would_profile) {
|
||||
if (bailed_out()) {
|
||||
_env->record_method_not_compilable(bailout_msg(), !TieredCompilation);
|
||||
if (is_profiling()) {
|
||||
// Compilation failed, create MDO, which would signal the interpreter
|
||||
// to start profiling on its own.
|
||||
_method->build_method_data();
|
||||
}
|
||||
} else if (is_profiling() && _would_profile) {
|
||||
ciMethodData *md = method->method_data();
|
||||
assert (md != NULL, "Should have MDO");
|
||||
md->set_would_profile(_would_profile);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue