diff --git a/src/java.base/share/classes/java/lang/Runtime.java b/src/java.base/share/classes/java/lang/Runtime.java index fd35265c0cc..ffef8160c25 100644 --- a/src/java.base/share/classes/java/lang/Runtime.java +++ b/src/java.base/share/classes/java/lang/Runtime.java @@ -89,10 +89,14 @@ import jdk.internal.reflect.Reflection; * shutdown sequence. * *

When the JVM terminates, all threads are immediately prevented from executing any further - * Java code. This includes shutdown hooks as well as daemon and non-daemon threads. The - * threads' current methods do not complete normally or abruptly; no {@code finally} clause - * of any method is executed, nor is any {@linkplain Thread.UncaughtExceptionHandler - * uncaught exception handler}. + * Java code. This includes shutdown hooks as well as daemon and non-daemon threads. + * This means, for example, that: + *

* * @implNote * Native code typically uses the @@ -278,7 +282,8 @@ public class Runtime { * @apiNote * This method should be used with extreme caution. Using it may circumvent or disrupt * any cleanup actions intended to be performed by shutdown hooks, possibly leading to - * data corruption. + * data corruption. See the termination section above + * for other possible consequences of halting the Java Virtual Machine. * * @param status * Termination status. By convention, a nonzero status code