diff options
author | Mark Wielaard <mark@klomp.org> | 2003-11-21 13:12:25 +0000 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2003-11-21 13:12:25 +0000 |
commit | 7cb4802804f64af2ce0a5f24433611b8f6120019 (patch) | |
tree | 2a91c4ee47804a92afa3c579ff91cfb015dc7502 /vm | |
parent | fba7a2e230ffdefd0e22fc0cfee9c3ed150d63dc (diff) | |
download | classpath-7cb4802804f64af2ce0a5f24433611b8f6120019.tar.gz |
* vm/reference/java/lang/Runtime.java (exit): Add extra comments.
Diffstat (limited to 'vm')
-rwxr-xr-x | vm/reference/java/lang/Runtime.java | 3 |
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) |