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

Merge os::naked_sleep variants for POSIX platforms

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 9, 10, 11
    • Fix Version/s: tbd
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      The Solaris version of os::naked_sleep calls usleep, while all other POSIX ports call nanosleep. The reason for the Solaris difference is that use of nanonsleep requires -lrt. But it appears that on Solaris we are linking with -lrt. (See flags.m4 "Set $2JVM_LIBS (per os)".)

      This suggests we could merge all the POSIX versions. (Windows of course remains different.)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dholmes David Holmes
                Reporter:
                kbarrett Kim Barrett
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: