mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-02 14:38:28 +00:00
8349858: Print compilation task before blocking compiler thread for shutdown
Reviewed-by: kvn, chagedorn
This commit is contained in:
parent
db42a48dc5
commit
742e735d7f
@ -2074,7 +2074,21 @@ void CompileBroker::maybe_block() {
|
||||
if (PrintCompilation && (Verbose || WizardMode))
|
||||
tty->print_cr("compiler thread " INTPTR_FORMAT " poll detects block request", p2i(Thread::current()));
|
||||
#endif
|
||||
// If we are executing a task during the request to block, report the task
|
||||
// before disappearing.
|
||||
CompilerThread* thread = CompilerThread::current();
|
||||
if (thread != nullptr) {
|
||||
CompileTask* task = thread->task();
|
||||
if (task != nullptr) {
|
||||
if (PrintCompilation) {
|
||||
task->print(tty, "blocked");
|
||||
}
|
||||
task->print_ul("blocked");
|
||||
}
|
||||
}
|
||||
// Go to VM state and block for final VM shutdown safepoint.
|
||||
ThreadInVMfromNative tivfn(JavaThread::current());
|
||||
assert(false, "Should never unblock from TIVNM entry");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user