RFR: 8369527: NMT: print malloc-site when a malloc'd memory detected as corrupted [v3]
Johan Sjölen
jsjolen at openjdk.org
Thu Oct 16 08:58:03 UTC 2025
On Thu, 16 Oct 2025 08:46:08 GMT, Afshin Zafari <azafari 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.
That's good. Can we make it so that we confirm the presence of the callstack programmatically in a test?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/27764#issuecomment-3409873522
More information about the hotspot-runtime-dev
mailing list