Restructure errno check in PosixSemaphore::timedwait

XMLWordPrintable

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

      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

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

              Created:
              Updated:
              Resolved: