Integrated: 8332631: Update nsk.share.jpda.BindServer to don't use finalization

Leonid Mesnik lmesnik at openjdk.org
Fri May 24 17:36:20 UTC 2024


On Tue, 21 May 2024 19:55:01 GMT, Leonid Mesnik <lmesnik at openjdk.org> wrote:

> 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.

This pull request has now been integrated.

Changeset: b3b33667
Author:    Leonid Mesnik <lmesnik at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/b3b33667ad3bdb7be868fb165a1ea53054947cd0
Stats:     98 lines in 1 file changed: 18 ins; 54 del; 26 mod

8332631: Update nsk.share.jpda.BindServer to don't use finalization

Reviewed-by: cjplummer, sspitsyn

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

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


More information about the serviceability-dev mailing list