RFR: 8315004: Runtime.halt() debug logging
Masanori Yano
myano at openjdk.org
Thu Sep 7 09:21:39 UTC 2023
On Fri, 25 Aug 2023 09:37:47 GMT, Masanori Yano <myano at openjdk.org> wrote:
> I want to add a log output similar to JDK-8301627 to Runtime.halt().
> To avoid double logging of Runtime.exit(), add a flag to indicate whether logging was done, and fix it so that logging is done only once.
> Could someone please review this fix?
I agree that Runtime.halt() should be terminated immediately.
However, I don't think this logging feature is for normal use, but for troubleshooting when we can't find where Runtime.halt() is called.
So I don't think it will prevent Runtime.halt() from exiting immediately in normal operation.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/15426#issuecomment-1709793801
More information about the core-libs-dev
mailing list