RFR: 8364198: NMT should have a better corruption message

Johan Sjölen jsjolen at openjdk.org
Tue Jul 29 08:40:01 UTC 2025


On Mon, 28 Jul 2025 17:45:58 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

> Makes sense. I am not sure about the "bug" part. Also, do we care about mentioning NMT at all? I think a useful template is GCC malloc:
> 
> ```
> *** glibc detected *** malloc(): memory corruption
> ```
> 
> Something like below would do, I think.
> 
> ```
> NMT detected memory corruption. Block at ...
> ```
> 
> ...or even:
> 
> ```
> Memory corruption detected. Block at ...
> ```

I wrote it like this to really hammer home the point, I felt it was more unambiguous.

I'm integrating it as-is, thank you all for your comments.

@vnkozlov, it's unfortunately hard to add more info as the header (that which is 'corrupted') is also where we store what kind of allocation it is.

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

PR Comment: https://git.openjdk.org/jdk/pull/26507#issuecomment-3131297131


More information about the hotspot-runtime-dev mailing list