Skip to content
Permalink
Browse files

[JENKINS-37566] - Stop nullifying channel in ProxyOutputStream#finali…

…ze().

Just YAGNI, it does not help garbage collector much and actually makes it more complicated due to breaking the object chain.
.
  • Loading branch information...
oleg-nenashev committed Nov 20, 2017
1 parent 2d5624c commit f5caca4777c85169f5d1c86a252c46ed49d75eb6
Showing with 0 additions and 1 deletion.
  1. +0 −1 src/main/java/hudson/remoting/ProxyOutputStream.java
@@ -183,7 +183,6 @@ protected void finalize() throws Throwable {
// if the object is auto-unexported, the export entry could have already been removed.
if(channel!=null) {
channel.send(new Unexport(channel.newIoId(),oid));
channel = null;
oid = -1;
}
}

0 comments on commit f5caca4

Please sign in to comment.
You can’t perform that action at this time.