This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 8.5.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/8.5.x by this push: new 877a505 Remove finalize call that can't do anything. 877a505 is described below commit 877a50524a4f197d077b137c9201be756be13563 Author: Mark Thomas <ma...@apache.org> AuthorDate: Sat Aug 21 22:12:17 2021 +0100 Remove finalize call that can't do anything. If Channel is not eligible for GC then it will retain a reference to RpcChannel so finalize() will never be called. If Channel is eligible for GC then it will be GC'd along with RpcChannel and there will be no need to finalize to remove the reference from Channel to RpcChannel. --- java/org/apache/catalina/tribes/group/RpcChannel.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/java/org/apache/catalina/tribes/group/RpcChannel.java b/java/org/apache/catalina/tribes/group/RpcChannel.java index 476ec84..81ce511 100644 --- a/java/org/apache/catalina/tribes/group/RpcChannel.java +++ b/java/org/apache/catalina/tribes/group/RpcChannel.java @@ -189,12 +189,6 @@ public class RpcChannel implements ChannelListener { } @Override - public void finalize() throws Throwable { - breakdown(); - super.finalize(); - } - - @Override public boolean accept(Serializable msg, Member sender) { if ( msg instanceof RpcMessage ) { RpcMessage rmsg = (RpcMessage)msg; --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org