-
Enhancement
-
Resolution: Fixed
-
P4
-
23
-
b25
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8354116 | 21.0.8-oracle | Tejal Wakchaure | P4 | Resolved | Fixed | master |
The vmTestbase/nsk/share/LocalProcess.java is a wrapper for debuggee process. It extends FinalizableObject to kill the debuggee process.
The debuggee process is used by nsk.jdb tests only, see runTest(...) in vmTestbase/nsk/share/jdb/JdbTest.java:
https://github.com/openjdk/jdk/blob/master/test/hotspot/jtreg/vmTestbase/nsk/share/jdb/JdbTest.java#L189
I verfied that process is always already terminated when is cleaned during VM shutdown hook,
So the fix is just to remove the finalization.
I also moved LocalProcess into nsk.share.jdb to reduce visibility of class and hardened checks in runTest.
The debuggee process is used by nsk.jdb tests only, see runTest(...) in vmTestbase/nsk/share/jdb/JdbTest.java:
https://github.com/openjdk/jdk/blob/master/test/hotspot/jtreg/vmTestbase/nsk/share/jdb/JdbTest.java#L189
I verfied that process is always already terminated when is cleaned during VM shutdown hook,
So the fix is just to remove the finalization.
I also moved LocalProcess into nsk.share.jdb to reduce visibility of class and hardened checks in runTest.
- backported by
-
JDK-8354116 Update vmTestbase/nsk/share/LocalProcess.java to don't use finalization
-
- Resolved
-