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

os::free() takes MemoryTrackingLevel but doesn't need it

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • hotspot
    • b43


        void os::free(void *memblock, MEMFLAGS memflags) {
        }

        memflags is not used. freeing memory with NMT uses the MEMFLAGS in the malloc header, which is good because passing memflags to os::free used to be a source of bugs.

        There are still calls that pass memory flags that should be fixed.

              mockner Max Ockner (Inactive)
              coleenp Coleen Phillimore
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: