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

jdk/test/lib/testlibrary/jdk/testlibrary/ProcessTools.java, to eliminate dependency on sun.management.VMManagement

XMLWordPrintable

      In Jigsaw Milestone Ana, module boundaries will be enforced. Tests that use JDK internal APIs require adjustments to work with module boundaries.

      jdk test lib/testlibrary/jdk/testlibrary/ProcessTools.java getProcessId() use internal APIs for getting current process id, this should be re-examined.

      To remove the dependency on sun.management.VMManagement in this test lib, it's possible to use a standard library API for getting the process id:
      - Enhance Process API in JDK-8046092 JEP 102: Process API Updates

      ProcessTools.java getProcessId() is used in below tests:
      com/sun/management/HotSpotDiagnosticMXBean/CheckOrigin.java
      sun/tools/jcmd/TestJcmdSanity.java
      sun/tools/jmap/BasicJMapTest.java
      sun/tools/jps/JpsBase.java
      sun/tools/jstack/BasicJStackTest.java
      sun/tools/jstatd/JstatdTest.java

            ykantser Yekaterina Kantserova (Inactive)
            amlu Amy Lu (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: