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

Remove NMT header and footer canaries

XMLWordPrintable

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

      Today NMT has two canaries: A header and a footer canary. These enable mainly two things:

      1. For NMT to aid in identifying and describing a pointer
      2. A basic form of out-of-bounds protection

      With the introduction of UBSan and Asan into OpenJDK we have gained stronger tools for out-of-bounds analysis, without requiring NMT to be activated. Therefore, I believe that point 2 is no longer something that NMT needs to support. For point 1, we will unfortunately be losing this ability for malloc:ed memory if the canaries are removed, only retaining it for mmaped memory.

      I'd like to suggest that we remove these canaries. It would open up valuable real estate in the malloc headers, which we may use for future NMT feature development.

            jsjolen Johan Sjölen
            jsjolen Johan Sjölen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: