RFR: 8303198: System and Runtime.exit() resilience to logging errors [v2]
Alan Bateman
alanb at openjdk.org
Fri Mar 3 14:00:15 UTC 2023
On Wed, 1 Mar 2023 16:59:51 GMT, Roger Riggs <rriggs at openjdk.org> wrote:
>> Consolidate logging and handle exceptions by printing to standard error and ignoring the exception.
>> Exceptions while logging will not interfere with Runtime.exit.
>
> Roger Riggs has updated the pull request incrementally with one additional commit since the last revision:
>
> Add exit status to output when the logging fails with an exception.
I think this looks okay. The main goal is to make it easy to identify the code that is calling System.exit and this seems as robust as it can be. The issue of racing exits can be looked at again, if it turns out to be interesting.
-------------
Marked as reviewed by alanb (Reviewer).
PR: https://git.openjdk.org/jdk/pull/12770
More information about the core-libs-dev
mailing list