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

os::reserve_memory should not use mtOther as default NMT flag

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 20
    • 18
    • hotspot
    • b04

      We use mtOther as default NMT flag for os::reserve_memory():

      "static char* reserve_memory(size_t bytes, bool executable = false, MEMFLAGS flags = mtOther);"

      mtOther marks allocations coming from outside the VM. It is not a good default flag.

      Note that in the end mtOther gets ignored in os::reserve_memory() and it defaults to mtNone anyway.

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

              Created:
              Updated:
              Resolved: