mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 17:44:40 +02:00
8041626: Shutdown tracing event
Reviewed-by: dholmes, alanb, rriggs
This commit is contained in:
parent
5287d9a366
commit
f2c21c058d
10 changed files with 47 additions and 5 deletions
|
@ -4216,6 +4216,12 @@ bool Threads::destroy_vm() {
|
|||
Mutex::_as_suspend_equivalent_flag);
|
||||
}
|
||||
|
||||
EventShutdown e;
|
||||
if (e.should_commit()) {
|
||||
e.set_reason("No remaining non-daemon Java threads");
|
||||
e.commit();
|
||||
}
|
||||
|
||||
// Hang forever on exit if we are reporting an error.
|
||||
if (ShowMessageBoxOnError && VMError::is_error_reported()) {
|
||||
os::infinite_sleep();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue