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

NMT should check for invalid MEMFLAGS.

    Details

    • Subcomponent:
    • Resolved In Build:
      b150

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: