Skip to content

Commit

Permalink
[JENKINS-37566] - Stop nullifying channel in ProxyOutputStream#finali…
Browse files Browse the repository at this point in the history
…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 f5caca4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/main/java/hudson/remoting/ProxyOutputStream.java
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit f5caca4

Please sign in to comment.