RFR: 8212136: Remove BaseSSLSocketImpl finalizer method

Bradford Wetmore wetmore at openjdk.java.net
Thu Apr 7 22:52:44 UTC 2022


On Thu, 7 Apr 2022 20:11:25 GMT, Xue-Lei Andrew Fan <xuelei at openjdk.org> wrote:

> 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 removing the finalize() method.

Can you provide more detail?  I expected something more like your first attempt (`java.lang.ref.Cleaner`) that would properly close/send the close_notify message.  Thanks!

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

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



More information about the security-dev mailing list