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

(se) Allow SelectableChannel.register to be invoked while selection operation is in progress

    XMLWordPrintable

Details

    • Enhancement
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • None
    • 11
    • core-libs
    • b11

    Description

      SelectableChannel.register is specified to synchronize on the selector's key set and therefore may block if invoked while a selection operation is in progress.

      This issue tracks relaxing this so that register can be invoked without waiting for a selection operation to complete. New registrations or changes to the key's interest set can take effect at the next selection operation.

      The discussion on this topic is here:
      http://mail.openjdk.java.net/pipermail/nio-dev/2018-April/004967.html

      Attachments

        Issue Links

          There are no Sub-Tasks for this issue.

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: