-
Bug
-
Resolution: Fixed
-
P4
-
9
-
b42
-
Not verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8084250 | emb-9 | Alan Bateman | P4 | Resolved | Fixed | team |
Found by inspection and appears to be harmless. AbstractInterruptibleChannel current has:
if (interrupted != null && interrupted == Thread.currentThread()) {
interrupted = null;
throw new ClosedByInterruptException();
}
The line interrupted = null should be removed or replaced with "this.interrupted = null". It's only purpose is allow the Thread be GC'ed for cases where the InterruptibleChannel cannot be GC'ed.
if (interrupted != null && interrupted == Thread.currentThread()) {
interrupted = null;
throw new ClosedByInterruptException();
}
The line interrupted = null should be removed or replaced with "this.interrupted = null". It's only purpose is allow the Thread be GC'ed for cases where the InterruptibleChannel cannot be GC'ed.
- backported by
-
JDK-8084250 (ch) AbstractInterruptibleChannel.end sets interrupted to null
- Resolved