RFR: 8367597: Runtime.exit logging failed: Cannot invoke "java.lang.Module.getClassLoader()" because "m" is null [v2]

Jaikiran Pai jpai at openjdk.org
Sat Sep 13 09:35:54 UTC 2025


On Sat, 13 Sep 2025 08:47:21 GMT, Alan Bateman <alanb at openjdk.org> wrote:

> On second thoughts, Shutdown.exit might be better place, meaning only attempt to log if the VM is full initialized.

That's fine too. Right now `logRuntimeExit()` is only invoked from `Shutdown.exit()` and I don't expect additional places calling this method anytime soon in future. If at all we start calling that method from other places, we can move the check within the `logRuntimeExit()` method. So I've updated the PR as per your suggestion.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/27270#issuecomment-3287914673


More information about the core-libs-dev mailing list