RFR: 8212136: Remove BaseSSLSocketImpl finalizer method [v2]

Alan Bateman alanb at openjdk.java.net
Sat Apr 9 11:55:40 UTC 2022


On Fri, 8 Apr 2022 22:55:07 GMT, Bradford Wetmore <wetmore at openjdk.org> wrote:

> @AlanBateman, @dfuch, @bchristi-git, any great ideas here?

As you have found, if an open Socket is unreferenced then a cleaner can close the underlying socket (and release the file descriptor). The Cleaner is setup by the SocketImpl implementation.

What is the existing behavior with the BaseSSLSocketImpl finalizer? Does it just close the socket or does it to the close_notify before closing the socket. If it does, and you want to keep that behavior, then you are probably into significant refactoring to avoid a reference to the BaseSSLSocketImpl.

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

PR: https://git.openjdk.java.net/jdk/pull/8065



More information about the security-dev mailing list