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 asJDK-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
We could add "debug" level to the existing NMT "off, summary, detailed" levels.
- relates to
-
JDK-8345147 Crash in libsystem_malloc.dylib`nanov2_malloc_type (ESR_EC_DABORT_EL0)
-
- Closed
-
-
JDK-8342504 Remove NMT header and footer canaries
-
- Closed
-