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

Scheduler specific data fix and improved monotonic time checks #8342

Conversation

rickard-green
Copy link
Contributor

OTP-19043

When a traced process executing on a dirty scheduler received an exit signal, the dirty scheduler could use the wrong thread specific data which could lead to a crash.

OTP-19044

Checks for monotonicity of monotonic time have been improved so that Erlang and OS monotonic time are checked separately.

A new configure argument --enable-ensure-os-monotonic-time has also been added. It enables functionality ensuring the monotonicity of monotonic timestamps delivered by the OS. When a non-monotonic timestamp is detected, it will be replaced by the last delivered monotonic timestamp before being used by Erlang's time functionality. Note that you do not want to enable this unless the OS monotonic time source on the system fails to produce monotonic timestamps. This since ensuring the monotonicity of OS monotonic timestamps will hurt scalability and performance of the system.

…43/OTP-19044' into rickard/sched-spec-data-fix/os-monotonic-fix/25/OTP-19043/OTP-19044

* rickard/sched-spec-data-fix/os-monotonic-fix/24/OTP-19043/OTP-19044:
  [erts] configure option for ensuring monotonicity of OS monotonic time
  [erts] Improve checking of monotonic time
  [erts] Replace potential harmful uses of erts_proc_sched_data()
…43/OTP-19044' into rickard/sched-spec-data-fix/os-monotonic-fix/26/OTP-19043/OTP-19044

* rickard/sched-spec-data-fix/os-monotonic-fix/25/OTP-19043/OTP-19044:
  [erts] configure option for ensuring monotonicity of OS monotonic time
  [erts] Improve checking of monotonic time
  [erts] Replace potential harmful uses of erts_proc_sched_data()
@rickard-green rickard-green added this to the OTP-26.2.4 milestone Apr 4, 2024
@rickard-green rickard-green self-assigned this Apr 4, 2024
Copy link
Contributor

github-actions bot commented Apr 4, 2024

CT Test Results

No tests were run for this PR. This is either because the build failed, or the PR is based on a branch without GH actions tests configured.

Results for commit f68cd58

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 changed the base branch from maint-26 to maint April 5, 2024 13:27
@rickard-green rickard-green merged commit a6962eb into erlang:maint Apr 8, 2024
12 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant