-
-
Notifications
You must be signed in to change notification settings - Fork 30.6k
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 TSAN races in setobject.c #121511
Conversation
The `used` field must be written using atomic stores because `set_len` and iterators may access the field concurrently without holding the per-object lock.
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.
LGTM!
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.
lgtm too
Thanks @colesbury for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13. |
The `used` field must be written using atomic stores because `set_len` and iterators may access the field concurrently without holding the per-object lock. (cherry picked from commit 9c08f40) Co-authored-by: Sam Gross <[email protected]>
GH-121541 is a backport of this pull request to the 3.13 branch. |
The `used` field must be written using atomic stores because `set_len` and iterators may access the field concurrently without holding the per-object lock. (cherry picked from commit 9c08f40) Co-authored-by: Sam Gross <[email protected]>
The `used` field must be written using atomic stores because `set_len` and iterators may access the field concurrently without holding the per-object lock.
The `used` field must be written using atomic stores because `set_len` and iterators may access the field concurrently without holding the per-object lock.
The
used
field must be written using atomic stores becauseset_len
and iterators may access the field concurrently without holding the per-object lock.