RFR: 8364198: NMT should have a better corruption message

Vladimir Kozlov kvn at openjdk.org
Mon Jul 28 23:58:38 UTC 2025


On Mon, 28 Jul 2025 14:14:26 GMT, Johan Sjölen <jsjolen at openjdk.org> wrote:

> Hi,
> 
> When NMT detects a memory corruption it outputs "NMT corruption" and some helpful metadata. I'd like to change the prefix to "NMT has detected a memory corruption bug.". I want to do this because the old message sounds like it is NMT itself that has become corrupted, which is not what's happened. Instead, it should be clear that NMT has helped detect a bug stemming from somewhere else. This is meant to help avoid someone misunderstanding the message.

Looks good.

@jdksjolen is it possible to give more information in output? For example, where address is located: metaspace, code cache, arena, some C heap allocations (Does NMT keep track of such?).

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

Marked as reviewed by kvn (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/26507#pullrequestreview-3064829586


More information about the hotspot-runtime-dev mailing list