1.1 --- a/src/share/vm/runtime/thread.cpp Mon Aug 26 16:37:09 2019 -0300 1.2 +++ b/src/share/vm/runtime/thread.cpp Tue Feb 13 15:48:23 2018 +0100 1.3 @@ -4012,6 +4012,12 @@ 1.4 Mutex::_as_suspend_equivalent_flag); 1.5 } 1.6 1.7 + EventShutdown e; 1.8 + if (e.should_commit()) { 1.9 + e.set_reason("No remaining non-daemon Java threads"); 1.10 + e.commit(); 1.11 + } 1.12 + 1.13 // Hang forever on exit if we are reporting an error. 1.14 if (ShowMessageBoxOnError && is_error_reported()) { 1.15 os::infinite_sleep();