The BindServer starts several threads and opens streams. It registered them for cleanup using "Finalizer" from nsk.share.framework. Currently, it cleanup resources during shutdown hook.
This fix changes BindServer to explicitly close streams and finish threads after test is completed. The exceptions are just printed like it was done previously. I haven't caught any exception during in close method during testing. ------------- Commit messages: - 8332631: Update nsk.share.jpda.BindServer to don't use finalization Changes: https://git.openjdk.org/jdk/pull/19335/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=19335&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8332631 Stats: 98 lines in 1 file changed: 18 ins; 54 del; 26 mod Patch: https://git.openjdk.org/jdk/pull/19335.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/19335/head:pull/19335 PR: https://git.openjdk.org/jdk/pull/19335