-
-
Notifications
You must be signed in to change notification settings - Fork 30.5k
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
gh-117657: Fix data races reported by TSAN on interp->threads.main
#118865
Conversation
Use relaxed loads/stores when reading/writing to this field. This fixes races like https://gist.github.com/mpage/e07497ad8dd444a789ff306cb7996acc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me.
Can we remove any TSan suppressions after this change? I'm merging #118722 now, so you might want to wait a little bit and then merge main
into this PR.
Sounds good. I'll wait until you merge #118722 then update this PR to remove the appropriate suppressions. |
Thanks @mpage for the PR, and @colesbury for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13. |
…main` (pythonGH-118865) Use relaxed loads/stores when reading/writing to this field. (cherry picked from commit 22d5185) Co-authored-by: mpage <[email protected]>
GH-118904 is a backport of this pull request to the 3.13 branch. |
….main` (GH-118865) (#118904) Use relaxed loads/stores when reading/writing to this field. (cherry picked from commit 22d5185) Co-authored-by: mpage <[email protected]>
Use relaxed loads/stores when reading/writing to this field.
This fixes races like https://gist.github.com/mpage/e07497ad8dd444a789ff306cb7996acc