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

Restructure errno check in PosixSemaphore::timedwait

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P4
    • Resolution: Won't Fix
    • Affects Version/s: 9
    • Fix Version/s: 10
    • Component/s: hotspot

      Description

      In [1] Kim suggests:
      ---
      src/os/posix/vm/os_posix.cpp
      1072 } else if (errno == EINTR) {
      1073 continue;
      1074 } else if (errno == ETIMEDOUT) {

      I think ETIMEDOUT should be tested before EINTR. ETIMEDOUT is the
      more interesting and performance relevant case.
      ---

      [1] http://mail.openjdk.java.net/pipermail/hotspot-dev/2015-June/019198.html

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              stefank Stefan Karlsson
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: