On Mon, 27 Feb 2023 15:41:01 GMT, Roger Riggs <[email protected]> wrote:
> Consolidate logging and handle exceptions by printing to standard error and
> ignoring the exception.
> Exceptions while logging will not interfere with Runtime.exit.
src/java.base/share/classes/java/lang/Shutdown.java line 189:
> 187: } catch (Throwable throwable2) {
> 188: // Ignore
> 189: }
The update means that several threads racing to exit may result in more than
one message being logged. I don't think that's a big issue but just wanted to
make sure that this was deliberate.
-------------
PR: https://git.openjdk.org/jdk/pull/12770