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

Afshin Zafari azafari at openjdk.org
Tue Oct 14 07:36:48 UTC 2025


On Tue, 14 Oct 2025 04:00:04 GMT, David Holmes <dholmes at openjdk.org> wrote:

> What does the output look like?

The output is the stack trace of depth 4 (as it is in all NMT reports), if possible.
When malloc-site marker is not corrupted: 

NMT Block at 0x000000011e01fc00, corruption at: 0x000000011e021c11: 
allocated from:
[0x0000000107928184]NMT_test_overwrite_back_long_unaligned_distance_vm_assert_Test::TestBody()+0x268
[0x0000000108dadf28]testing::Test::Run()+0x1e8
[0x0000000108daf418]testing::TestInfo::Run()+0x248
[0x0000000108db0118]testing::TestSuite::Run()+0x3c8

and if it is also corrupted:

NMT Block at 0x0000600001f622e0, corruption at: 0x0000600001f622e0: 
allocation-site cannot be shown since the marker is also corrupted.

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

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


More information about the hotspot-runtime-dev mailing list