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

os::close can restart ::close but that is not a restartable syscall

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8
    • Fix Version/s: hs25
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b38
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        6468603 is a suspected bug in an early build of Solaris 11 where a close periodically fails with -1/EINTR although the thread is not interrupted.

        As part of this it was observed that os::close restarts close if it is interrupted. If close fails with EINTR then file descriptor is invalid and so the close should never be restarted. In theory the file descriptor could be recycled in a busy system and close might actually close a newly created file descriptor.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                rdurbin Ron Durbin (Inactive)
                Reporter:
                alanb Alan Bateman
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: