Compensate for timed wait lags on Thread.sleep paths

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Won't Fix
    • Priority: P4
    • tbd
    • Affects Version/s: 21
    • Component/s: 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

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

              Created:
              Updated:
              Resolved: