RFR: 8212136: Remove BaseSSLSocketImpl finalizer method

Xue-Lei Andrew Fan xuelei at openjdk.java.net
Thu Apr 7 20:17:29 UTC 2022


On Thu, 31 Mar 2022 20:15:35 GMT, Xue-Lei Andrew Fan <xuelei at openjdk.org> wrote:

> Please review the update to remove finalizer method in the SunJSSE provider implementation.  It is one of the efforts to clean up the use of finalizer method in JDK.

The socket close() call in the finalize() method may be blocked for the SSL implementation, which is not good for garbage collection.   It should be safe by just remove the finalize() method.

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

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



More information about the security-dev mailing list