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

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

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: