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

Alan Bateman Alan.Bateman at oracle.com
Thu Jun 23 19:39:31 UTC 2016

On 23/06/2016 17:32, Chris Hegarty wrote:

> 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
This looks okay to me.


More information about the core-libs-dev mailing list