RFR [9] 8154017: Shutdown hooks are racing against shutdown sequence, if System.exit()-calling thread is interrupted

Chris Hegarty chris.hegarty at oracle.com
Thu Jun 23 16:32:44 UTC 2016


The shutdown hooks race against the shutdown sequence if the thread
invoking System.exit() is interrupted.  This happens because
ApplicationShutdownHooks::runHooks joins the shutdown hooks. This
may lead to premature VM shutdown, with shutdown hooks not fully
executed. 

http://cr.openjdk.java.net/~chegar/8154017/
https://bugs.openjdk.java.net/browse/JDK-8154017

-Chris.


More information about the core-libs-dev mailing list