(ch) AbstractInterruptibleChannel.end sets interrupted to null

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 9
    • Affects Version/s: 9
    • Component/s: core-libs
    • b42
    • Not verified

        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.

              Assignee:
              Alan Bateman
              Reporter:
              Alan Bateman
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: