RFR: JDK-8320300: Adjust hs_err output in malloc/mmap error cases
Martin Doerr
mdoerr at openjdk.org
Mon Nov 20 13:43:40 UTC 2023
On Fri, 17 Nov 2023 13:53:53 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:
> Some of the error output could be slightly improved. Currently it says for example:
>
> There is insufficient memory for the Java Runtime Environment to continue.
> Native memory allocation (mmap) failed to map 65536 bytes for Failed to commit metaspace.
> Possible reasons:
> . . .
> The process is running with CompressedOops enabled, and the Java Heap may be blocking the growth of the native heap
>
> The output 'bytes for Failed to commit metaspace.' should be rephrased.
> The reason should be more clear that it really IS the case for the current JVM that CompressedOops is set (and that it is not just some general advice) .
LGTM.
-------------
Marked as reviewed by mdoerr (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/16707#pullrequestreview-1739843457
More information about the hotspot-dev
mailing list