RFR: 8284291: sun/security/krb5/auto/Renew.java fails intermittently on Windows 11
Weijun Wang
weijun at openjdk.java.net
Wed Apr 6 00:27:40 UTC 2022
On Tue, 5 Apr 2022 08:23:39 GMT, Andrey Turbanov <aturbanov at 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
More information about the security-dev
mailing list