mirror of
https://github.com/openjdk/jdk.git
synced 2026-08-01 05:36:24 +00:00
8352131: [REDO] C2: Print compilation bailouts with PrintCompilation compile command
Reviewed-by: thartmann, kvn, epeter
This commit is contained in:
parent
73177d9c53
commit
2560a63773
@ -2340,7 +2340,6 @@ void CompileBroker::invoke_compiler_on_method(CompileTask* task) {
|
||||
}
|
||||
}
|
||||
|
||||
DirectivesStack::release(directive);
|
||||
|
||||
if (!ci_env.failing() && !task->is_success()) {
|
||||
assert(ci_env.failure_reason() != nullptr, "expect failure reason");
|
||||
@ -2374,7 +2373,7 @@ void CompileBroker::invoke_compiler_on_method(CompileTask* task) {
|
||||
if (CompilationLog::log() != nullptr) {
|
||||
CompilationLog::log()->log_failure(thread, task, failure_reason, retry_message);
|
||||
}
|
||||
if (PrintCompilation) {
|
||||
if (PrintCompilation || directive->PrintCompilationOption) {
|
||||
FormatBufferResource msg = retry_message != nullptr ?
|
||||
FormatBufferResource("COMPILE SKIPPED: %s (%s)", failure_reason, retry_message) :
|
||||
FormatBufferResource("COMPILE SKIPPED: %s", failure_reason);
|
||||
@ -2382,6 +2381,8 @@ void CompileBroker::invoke_compiler_on_method(CompileTask* task) {
|
||||
}
|
||||
}
|
||||
|
||||
DirectivesStack::release(directive);
|
||||
|
||||
methodHandle method(thread, task->method());
|
||||
|
||||
DTRACE_METHOD_COMPILE_END_PROBE(method, compiler_name(task_level), task->is_success());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user