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

Implement os::committed_in_range for MacOS and AIX

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 24
    • 23
    • 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.


            rtoyonaga Robert Toyonaga
            stuefe Thomas Stuefe
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: