-
-
Notifications
You must be signed in to change notification settings - Fork 31.3k
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-130920: Fix data race in STORE_SUBSCR_LIST_INT #130923
Conversation
The write of the item to the list needs to use an atomic operation in the free threading build. Co-authored-by: Tomasz Pytel <[email protected]>
Test is adapted from @tom-pytel's code |
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. Why did you change the specialized instruction instead of PyList_SET_ITEM
?
We use |
|
The write of the item to the list needs to use an atomic operation in the free threading build.