[security-dev 00786]: hg: jdk7/tl/jdk: 6829503: addShutdownHook fails if called after shutdown has commenced.

mandy.chung at sun.com mandy.chung at sun.com
Mon Apr 27 13:57:29 PDT 2009


Changeset: 164ce9ff8b58
Author:    mchung
Date:      2009-04-27 12:08 -0700
URL:       http://hg.openjdk.java.net/jdk7/tl/jdk/rev/164ce9ff8b58

6829503: addShutdownHook fails if called after shutdown has commenced.
Summary: allow shutdown hook to be added during shutdown and handle properly if it fails to add
Reviewed-by: alanb, dholmes, martin

! src/share/classes/java/io/Console.java
! src/share/classes/java/io/DeleteOnExitHook.java
! src/share/classes/java/lang/ApplicationShutdownHooks.java
! src/share/classes/java/lang/Shutdown.java
! src/share/classes/java/lang/System.java
! src/share/classes/sun/misc/JavaLangAccess.java
+ test/java/lang/Runtime/shutdown/ShutdownHooks.java
+ test/java/lang/Runtime/shutdown/ShutdownHooks.sh




More information about the security-dev mailing list