Implement os::committed_in_range for MacOS and AIX

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 24
    • Affects Version/s: 23
    • Component/s: hotspot
    • b04

      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.


            Assignee:
            Robert Toyonaga
            Reporter:
            Thomas Stuefe
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: