RFR: 8369527: NMT: print malloc-site when a malloc'd memory detected as corrupted [v3]

Afshin Zafari azafari at openjdk.org
Thu Oct 16 08:48:56 UTC 2025


On Thu, 16 Oct 2025 08:29:21 GMT, Johan Sjölen <jsjolen at openjdk.org> wrote:

> I'd like to see a JTReg test for this instead, where we actually confirm that the stack is being printed.

There is already a  JTReg test : `test/hotspot/jtreg/gtest/NMTGtests.java` that runs 3 tests for NMT off, summary and detail modes. In the jtr file of the NMT detail mode, one can see both the call-stack output AND the output when the malloc-site marker is corrupted too.
The examples of this output given in previous comments, are copied from there.

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

PR Comment: https://git.openjdk.org/jdk/pull/27764#issuecomment-3409840452


More information about the hotspot-runtime-dev mailing list