RFR: 8332641: Update nsk.share.jpda.Jdb to don't use finalization

Leonid Mesnik lmesnik at openjdk.org
Tue May 21 21:54:22 UTC 2024


The nsk.share.jdb.Jdb has finalize() nethods that close jdb connection and output streams.

The fix renames the method to close() and calls it explicitly after the test finishes. I verified that close() called for each nsk share jdb test.

The jdb is also LocalProcess with it's own cleanup(). This part still remains the same so far.

-------------

Commit messages:
 - 8332641: Update nsk.share.jpda.Jdb to don't use finalization

Changes: https://git.openjdk.org/jdk/pull/19336/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=19336&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8332641
  Stats: 25 lines in 2 files changed: 8 ins; 7 del; 10 mod
  Patch: https://git.openjdk.org/jdk/pull/19336.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/19336/head:pull/19336

PR: https://git.openjdk.org/jdk/pull/19336


More information about the serviceability-dev mailing list