RFR: 8288984: Simplification in java.lang.Runtime::exit [v2]
Kim Barrett
kbarrett at openjdk.org
Fri Jul 8 22:34:39 UTC 2022
On Thu, 7 Jul 2022 08:03:52 GMT, David Holmes <dholmes at openjdk.org> wrote:
> > I think that isn't true. If a hook doesn't terminate then VM.shutdown doesn't get called, so the window never gets cracked opened to call halt directly.
>
> @kimbarrett Any thread can call halt() directly while the attempted shutdown is in progress.
The "that" I was referring to / disagreeing with is about the window for
exit(non-zero), which I think won't ever open if any hook doesn't terminate.
-------------
PR: https://git.openjdk.org/jdk/pull/9351
More information about the core-libs-dev
mailing list