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

Restructure errno check in PosixSemaphore::timedwait

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • 10
    • 9
    • 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

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

              Created:
              Updated:
              Resolved: