8301627: System.exit and Runtime.exit debug logging

Reviewed-by: alanb, chegar
This commit is contained in:
Roger Riggs 2023-02-21 15:37:08 +00:00
parent db483a38a8
commit 10b4cc9eb4
6 changed files with 160 additions and 0 deletions

View file

@ -1902,6 +1902,9 @@ public final class System {
* Runtime.getRuntime().exit(n)
* </pre></blockquote>
*
* @implNote
* The initiation of the shutdown sequence is logged by {@link Runtime#exit(int)}.
*
* @param status exit status.
* @throws SecurityException
* if a security manager exists and its {@code checkExit} method