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

pmap and pstack should do a better of making it clear that they are not supported on Mac OS X

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P5
    • Resolution: Fixed
    • Affects Version/s: 15
    • Fix Version/s: 15
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b19
    • OS:
      os_x

      Description

      pmap and pstack are not supported on Mac OS X.

      pstack will give the message "Not available on Darwin". Although the darwin kernel might be the technical reason why it doesn't work, it would be better to the end user to clarify that it is not supported on "Mac OS X" rather than Darwin.

      pmap simply produces no output, not even an error message. I looked into this a bit. We are getting into PMap.run(), but it appears the call to CDebugger.getLoadObjectList() is returning an empty list, so nothing is output. We should add an extra check and println here that calls out that pmap is not supported on Mac OS X.

      The ClhsdbPMap and ClhsdbPStack tests should also be fixed to attempt to run on Mac OS X and check for the appropriate error messages. Right now they are excluded from running on Mac OS X. The reason I initially started looking into the Mac OS X support for these two tools is because these two tests were excluded on OSX, and I was curious as to why so I experimented with enabling them to see the result.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              cjplummer Chris Plummer
              Reporter:
              cjplummer Chris Plummer
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: