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

Compensate for timed wait lags on Thread.sleep paths

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • tbd
    • 21
    • hotspot

      The underlying Thread.sleep facilities consistently overshoot the requested sleep durations. Part of that are issues like JDK-8307766, but there are also generic overhead from the various scheduling/monitoring/accounting paths in the kernel itself.

      We can improve this a bit by accounting for the lags straight in Thread.sleep code paths.

      Draft PR:
       https://github.com/openjdk/jdk/pull/13892

            shade Aleksey Shipilev
            shade Aleksey Shipilev
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: