Description
Cleanup code that needs the current process pid to use ProcessHandle.current().getPid().
java.management: sun.management.VMManagementImpl
Verify that the security of getting the pid is equivalent to the previous usage.
ProcessHandle requires RuntimePermission("manageProcess")
java.management: sun.management.VMManagementImpl
Verify that the security of getting the pid is equivalent to the previous usage.
ProcessHandle requires RuntimePermission("manageProcess")
Attachments
Issue Links
- duplicates
-
JDK-8254102 use ProcessHandle::pid instead of ManagementFactory::getRuntimeMXBean to get pid in tests
- Resolved
- relates to
-
JDK-8046092 JEP 102: Process API Updates
- Closed