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

Process.OSX: fix thread safety #100260

Merged
merged 1 commit into from
Mar 26, 2024

Conversation

ForNeVeR
Copy link
Contributor

Fixes an issue correctly outlined by @jkotas: #100122 (comment)

Without this fix, it was possible for another thread to see an incorrect (zero) value of s_timeBase_numer because of a race condition.

Without this fix, it was possible for another thread to see an incorrect
(zero) value of s_timeBase_numer because of a race condition.
Copy link
Contributor

Tagging subscribers to this area: @dotnet/area-system-diagnostics-process
See info in area-owners.md if you want to be subscribed.

@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Mar 25, 2024
@jkotas jkotas merged commit 78a895f into dotnet:main Mar 26, 2024
85 of 87 checks passed
jkotas pushed a commit to jeffhandley/runtime that referenced this pull request Mar 26, 2024
Without this fix, it was possible for another thread to see an incorrect
(zero) value of s_timeBase_numer because of a race condition.
@ForNeVeR ForNeVeR deleted the bugfix/100122.macos-process-time branch March 26, 2024 11:55
@github-actions github-actions bot locked and limited conversation to collaborators Apr 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Diagnostics.Process community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants