-
Enhancement
-
Resolution: Duplicate
-
P3
-
emb-8u26, 8u20, 9
Possible solutions:
- jni, jvmti. Write another lib(not monitoring one) which will get pid, but currently we do not have native tests support in hotspot/test
- Runtime.exec( "echo $PPID" ).getInputStream()... some platforms may not have shell interpreter
- via harness(jtreg?) get pid of the starting test and pass it somehow(via -D java property) to the same test. Example: sh -c 'exec /path/to/bin/java '-Dpid=$$ MyTest'
- WB, Unsafe, ... with changes in product
- Enhance Process API inJDK-8046092 JEP 102: Process API Updates
- jni, jvmti. Write another lib(not monitoring one) which will get pid, but currently we do not have native tests support in hotspot/test
- Runtime.exec( "echo $PPID" ).getInputStream()... some platforms may not have shell interpreter
- via harness(jtreg?) get pid of the starting test and pass it somehow(via -D java property) to the same test. Example: sh -c 'exec /path/to/bin/java '-Dpid=$$ MyTest'
- WB, Unsafe, ... with changes in product
- Enhance Process API in
- duplicates
-
JDK-8073132 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
-
JDK-8046092 JEP 102: Process API Updates
- Closed