-
-
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: Make PyType_HasFeature atomic #120210
gh-117657: Make PyType_HasFeature atomic #120210
Conversation
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.
Looks good to me but haven't touched core in a while so not formally approving :)
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 @Fidget-Spinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13. |
Make PyType_HasFeature atomic (cherry picked from commit eebae2c) Co-authored-by: Ken Jin <[email protected]>
GH-120443 is a backport of this pull request to the 3.13 branch. |
Make PyType_HasFeature atomic
Make PyType_HasFeature atomic
Make PyType_HasFeature atomic
It's possible that when a type is readying in one thread (which modify the type flags), the same type is then queried for its flags.
Here's an example from the test suite: