8041626: Shutdown tracing event

Reviewed-by: dholmes, alanb, rriggs
This commit is contained in:
Robin Westberg 2018-02-13 15:48:23 +01:00
parent 5287d9a366
commit f2c21c058d
10 changed files with 47 additions and 5 deletions

View file

@ -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();