RFR: 8357662: applications/runthese/RunThese8H.java Crash: 'Failed to uncommit metaspace'

Stefan Karlsson stefank at openjdk.org
Wed Jun 11 16:55:30 UTC 2025


On Tue, 10 Jun 2025 12:25:01 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:

> Make the fatal error a log warning and return. The metaspace commit accounting is done after this return.  Tested with this always returning here, and it seems okay.  Tested with this change tier 1-4 and 8.

I think we should have a fatal error. I argue for that here:
https://github.com/openjdk/jdk/pull/24084#issuecomment-2755656985

(You will likely have to read surrounding comments to get the context of that discussion)

There was an action item in there to create a bug report for this. I'm fine to be proven wrong w.r.t. this but I think there needs to be some very convincing argument to prove that the OS leaves the JVM in a safe state when we hit the various error parts in the kernel that returns ENOMEM.

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

PR Comment: https://git.openjdk.org/jdk/pull/25720#issuecomment-2963531582


More information about the hotspot-runtime-dev mailing list