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

(se) More Selector cleanup, part 3

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 11
    • None
    • core-libs
    • b08

    Description

      The implementations of implReg and implDereg have a lot of duplicate code, this can be moved up to SelectorImpl to avoid the duplication.

      Several of Selector implementation use a BitSet to track if a file descriptor is registrated. This can be improved by recording the registered events in the selection key.

      The select based Selector implementation on Windows is not aligned with the other implementations, in particular its implReg and putEventOps update the poll array directly. In addition, it maintains its own closed status which is not needed.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: