On Tue, 5 Apr 2022 08:23:39 GMT, Andrey Turbanov <aturba...@openjdk.org> wrote:
>> `Thread.sleep()` seems not very precise on some systems. Update this test to >> check the current time continously. > > 50 repeats. No failures. Thank you! @turbanoff Thanks for the code review. At the same time, I'm still curious why this could happen on your machine. If after `Thread.sleep(7000)` but the difference of `System.currentTimeMillis()` is less than 5000, then there must be a serious bug in either of the methods. How about the difference between `System.nanoTime()`? ------------- PR: https://git.openjdk.java.net/jdk/pull/8098