summaryrefslogtreecommitdiff
path: root/vm
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2003-11-21 13:12:25 +0000
committerMark Wielaard <mark@klomp.org>2003-11-21 13:12:25 +0000
commit7cb4802804f64af2ce0a5f24433611b8f6120019 (patch)
tree2a91c4ee47804a92afa3c579ff91cfb015dc7502 /vm
parentfba7a2e230ffdefd0e22fc0cfee9c3ed150d63dc (diff)
downloadclasspath-7cb4802804f64af2ce0a5f24433611b8f6120019.tar.gz
* vm/reference/java/lang/Runtime.java (exit): Add extra comments.
Diffstat (limited to 'vm')
-rwxr-xr-xvm/reference/java/lang/Runtime.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/vm/reference/java/lang/Runtime.java b/vm/reference/java/lang/Runtime.java
index 12584ce91..2bf4bc98c 100755
--- a/vm/reference/java/lang/Runtime.java
+++ b/vm/reference/java/lang/Runtime.java
@@ -198,6 +198,9 @@ public class Runtime
if(runShutdownHooks())
halt(status);
+ // Someone else already called runShutdownHooks().
+ // Make sure we are not/no longer in the shutdownHooks set.
+ // And wait till the thread that is calling runShutdownHooks() finishes.
synchronized (libpath)
{
if (shutdownHooks != null)