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

(se) Selector.select(long) uses wrong timeout after EINTR (lnx)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b118

      Backports

        Description


        This bug was reported here:
          http://mail.openjdk.java.net/pipermail/nio-dev/2016-March/003612.html

        EINTR should be rare so maybe this is why it has not been noticed before.

        We should check the other selector implementations while we're at it.

          Activity

          Hide
          bpb Brian Burkhalter added a comment -
          The problem appears to afflict two files, the mentioned in the nio-dev posting linked to the issue description and one other:

          src/java.base/linux/native/libnio/ch/EPollArrayWrapper.c
          src/java.base/solaris/native/libnio/ch/DevPollArrayWrapper.c
          Show
          bpb Brian Burkhalter added a comment - The problem appears to afflict two files, the mentioned in the nio-dev posting linked to the issue description and one other: src/java.base/linux/native/libnio/ch/EPollArrayWrapper.c src/java.base/solaris/native/libnio/ch/DevPollArrayWrapper.c
          Show
          bpb Brian Burkhalter added a comment - Review thread: http://mail.openjdk.java.net/pipermail/nio-dev/2016-May/003674.html
          Hide
          hgupdate HG Updates added a comment -
          URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/5dd02e390cf8
          User: bpb
          Date: 2016-05-04 15:06:50 +0000
          Show
          hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/5dd02e390cf8 User: bpb Date: 2016-05-04 15:06:50 +0000
          Hide
          hgupdate HG Updates added a comment -
          URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/5dd02e390cf8
          User: lana
          Date: 2016-05-11 16:05:08 +0000
          Show
          hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/5dd02e390cf8 User: lana Date: 2016-05-11 16:05:08 +0000

            People

            • Assignee:
              bpb Brian Burkhalter
              Reporter:
              alanb Alan Bateman
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: