-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P4
-
Affects Version/s: 9
-
Component/s: core-libs
-
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
-