Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix monotonicity of Erlang monotonic time #8619

Conversation

rickard-green
Copy link
Contributor

When no time warp mode was enabled, a smaller Erlang monotonic time could be read than a previously read time, i.e., breaking the monotonic property. The runtime system will abort when detecting an issue like this since OTP 24.3.4.17 and OTP 25.0.

When 'no time warp mode' was enabled, a smaller Erlang monotonic time
could be read than a previously read time, i.e., breaking the monotonic
property. The runtime system will abort when detecting an issue like
this since OTP 24.3.4.17 and OTP 25.0.

On systems with a fine grained time unit, the window for this happening
was very small, but still existed. On systems with native nanosecond
time unit, which are most if not all non-Windows systems, two readings
needed to be done within 20 nanoseconds.
@rickard-green rickard-green added team:VM Assigned to OTP team VM fix testing currently being tested, tag is used by OTP internal CI labels Jun 27, 2024
@rickard-green rickard-green self-assigned this Jun 27, 2024
Copy link
Contributor

github-actions bot commented Jun 27, 2024

CT Test Results

    3 files    143 suites   49m 4s ⏱️
1 591 tests 1 542 ✅ 49 💤 0 ❌
2 330 runs  2 256 ✅ 74 💤 0 ❌

Results for commit fee8f70.

♻️ This comment has been updated with latest results.

To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass.

See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally.

Artifacts

// Erlang/OTP Github Action Bot

@rickard-green rickard-green merged commit a755dbf into erlang:maint Jun 27, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix team:VM Assigned to OTP team VM testing currently being tested, tag is used by OTP internal CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant