-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
gh-142534: Avoid TSan warnings in dictobject.c #142544
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
Conversation
There are places we use "relaxed" loads where C11 requires "consume" or stronger. Unfortunately, compilers don't really implement "consume" so fake it for our use in a way that avoids upsetting TSan.
|
@DinoV - with this PR, I no longer get warnings for |
Yhg1s
left a comment
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.
Backport to 3.14?
Yeah, I think that makes sense. |
|
I've confirmed this fixes the issues on the lazy imports branch w/ the object.c and unicodeobject.c changes in this diff backed out: https://fb.workplace.com/chat/t/6551713648259080#:~:text=https%3A//github.com/LazyImportsCabal/cpython/commit/470b9e436222ef099c86dde640ea739acf0d5456 |
DinoV
left a comment
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.
Woot!
|
Thanks @colesbury for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14. |
There are places we use "relaxed" loads where C11 requires "consume" or stronger. Unfortunately, compilers don't really implement "consume" so fake it for our use in a way that avoids upsetting TSan. (cherry picked from commit 0a62f82) Co-authored-by: Sam Gross <[email protected]>
|
GH-142603 is a backport of this pull request to the 3.14 branch. |
…-142603) There are places we use "relaxed" loads where C11 requires "consume" or stronger. Unfortunately, compilers don't really implement "consume" so fake it for our use in a way that avoids upsetting TSan. (cherry picked from commit 0a62f82) Co-authored-by: Sam Gross <[email protected]>
There are places we use "relaxed" loads where C11 requires "consume" or stronger. Unfortunately, compilers don't really implement "consume" so fake it for our use in a way that avoids upsetting TSan.
There are places we use "relaxed" loads where C11 requires "consume" or stronger. Unfortunately, compilers don't really implement "consume" so fake it for our use in a way that avoids upsetting TSan.