NMT offers canaries that provides basic underflow/overflow protection (and which we are currently considering removing), but for issues, like JDK-8345147 it would help. Also, it could offer more memory debug features like some OS'es do, for example: https://developer.apple.com/library/archive/documentation/Performance/Conceptual/ManagingMemory/Articles/MallocDebug.html
NMT could record values of every memory allocation, so it could perform checks, such as:
- double free
- pointer validation
It would be slow, but might help in cases such as JDK-8345147
We could add "debug" level to the existing NMT "off, summary, detailed" levels.
NMT could record values of every memory allocation, so it could perform checks, such as:
- double free
- pointer validation
It would be slow, but might help in cases such as JDK-8345147
We could add "debug" level to the existing NMT "off, summary, detailed" levels.
- relates to
-
JDK-8345147 VM is crashing with stop reason = ESR_EC_DABORT_EL0 in different tests
- Open
-
JDK-8342504 Remove NMT header and footer canaries
- Open