Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8065720

(ch) AbstractInterruptibleChannel.end sets interrupted to null

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • 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.

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

                Created:
                Updated:
                Resolved: