-
Bug
-
Resolution: Duplicate
-
P2
-
9
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 inJDK-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
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
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
- duplicates
-
JDK-8072856 Eliminate ProcessTools.getProcessId dependency on sun.management.VMManagement
-
- Resolved
-
- is blocked by
-
JDK-8003490 (process) Provide Process.getCurrentPid() to get identifier of current process
-
- Resolved
-
- relates to
-
JDK-8046092 JEP 102: Process API Updates
-
- Closed
-