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

NMT should check for invalid MEMFLAGS.

XMLWordPrintable

    • b150

      MallocMemorySnapshot uses an index to access slots in the counter array. This index is based upon memory flags. It should assert these flags are valid before using them as index into memory.

      We had a difficult to find memory overwriter caused by NMT, because the MEMFLAGS in an Arena object was uninitialized. A assert would have saved a lot of time here.

            stuefe Thomas Stuefe
            stuefe Thomas Stuefe
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: