We have `os::committed_in_range` on Linux and Windows. We miss it on MacOS and AIX. As a result, on MacOS, we don't get real liveness information for thread stacks (NMT shows thread stacks as "fully committed"), and neither will on AIX once JDK-8332237 is fixed.
Task:
- implement `os::committed_in_range` using mincore() (should be available on all platforms)
- If MacOS and AIX implementations are close enough to Linux (which I assume, since mincore() on all these platforms should have the same semantics), implement a single version of `os::committed_in_range` in os_posix.cpp, and throw away Linux-/MacOS-/AIX-versions
- Also throw away the platform independent fallback stub version
- Write or adapt jtreg tests.
Task:
- implement `os::committed_in_range` using mincore() (should be available on all platforms)
- If MacOS and AIX implementations are close enough to Linux (which I assume, since mincore() on all these platforms should have the same semantics), implement a single version of `os::committed_in_range` in os_posix.cpp, and throw away Linux-/MacOS-/AIX-versions
- Also throw away the platform independent fallback stub version
- Write or adapt jtreg tests.
- duplicates
-
JDK-8308019 NMT: Enhance thread stack tracking on macOS
- Closed
- relates to
-
JDK-8335167 Test runtime/Thread/TestAlwaysPreTouchStacks.java failed with Expected a higher ratio between stack committed and reserved
- Resolved