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.
"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.
- relates to
-
JDK-8199752 NMT: Memory allocated by Unsafe.allocateMemory should be tagged as mtOther
-
- Resolved
-