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

Thread.sleep(millis, nanos) timeout returns early

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 12
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b12

      Description

      In
      JDK-8065372: Object.wait(ms, ns) timeout returns early
      we fixed Object.wait to not return early by rounding non-zero nanos up to the next millisecond.
      We should make the same change to Thread.sleep

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rriggs Roger Riggs
                Reporter:
                martin Martin Buchholz
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: