Skip to content

Commit 65c5282

Browse files
committed
8351938: C2: Print compilation bailouts with PrintCompilation compile command
Reviewed-by: epeter, thartmann, kvn, galder
1 parent e3c29c9 commit 65c5282

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hotspot/share/compiler/compileBroker.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2374,7 +2374,7 @@ void CompileBroker::invoke_compiler_on_method(CompileTask* task) {
23742374
if (CompilationLog::log() != nullptr) {
23752375
CompilationLog::log()->log_failure(thread, task, failure_reason, retry_message);
23762376
}
2377-
if (PrintCompilation) {
2377+
if (PrintCompilation || task->directive()->PrintCompilationOption) {
23782378
FormatBufferResource msg = retry_message != nullptr ?
23792379
FormatBufferResource("COMPILE SKIPPED: %s (%s)", failure_reason, retry_message) :
23802380
FormatBufferResource("COMPILE SKIPPED: %s", failure_reason);

0 commit comments

Comments
 (0)