Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8345342

Extend NMT, so that it can help catch memory corruptions

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • None
    • hotspot

      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.

            Unassigned Unassigned
            gziemski Gerard Ziemski
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: