[crac] Integrated: 8354432: [CRaC] Timed waiting finishes early w.r.t. wall clock time

Timofei Pushkin tpushkin at openjdk.org
Mon Apr 14 13:14:28 UTC 2025


On Fri, 11 Apr 2025 14:44:22 GMT, Timofei Pushkin <tpushkin at openjdk.org> wrote:

> This is an alternative to #209 that also fixes `TimedWaitingTest`.
> 
> The solution is to offset `os::javaTimeNanos()` using nanosecond-precision wall clock time instead of millisecond-precision. See the explanation in the related JBS issue.
> 
> I've run the test 100 times in CI and haven't witnessed it failing. To compare, without the fix it would usually fail in the first 5-10 runs.

This pull request has now been integrated.

Changeset: ad63687e
Author:    Timofei Pushkin <tpushkin at openjdk.org>
Committer: Radim Vansa <rvansa at openjdk.org>
URL:       https://git.openjdk.org/crac/commit/ad63687e9a057517831af62c60275684bc668e3e
Stats:     41 lines in 2 files changed: 15 ins; 7 del; 19 mod

8354432: [CRaC] Timed waiting finishes early w.r.t. wall clock time

Reviewed-by: rvansa

-------------

PR: https://git.openjdk.org/crac/pull/221


More information about the crac-dev mailing list