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

Merge os::naked_sleep variants for POSIX platforms

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • tbd
    • 9, 10, 11
    • hotspot
    • None
    • generic
    • generic

      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.)

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

              Created:
              Updated:
              Resolved: