]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-117657: Fix data races in the method cache in free-threaded builds (#117954)
authormpage <mpage@meta.com>
Wed, 17 Apr 2024 16:42:56 +0000 (09:42 -0700)
committerGitHub <noreply@github.com>
Wed, 17 Apr 2024 16:42:56 +0000 (09:42 -0700)
commitb6c62c79e7d9592ca1ea6b93f6ce3dd3829939d0
tree8e1316d044d947926b0c474f653236da13b9a880
parentdeaecb88fa5da68cbffca413c63af95fd99578dd
gh-117657: Fix data races in the method cache in free-threaded builds (#117954)

Fix data races in the method cache in free-threaded builds

These are technically data races, but I think they're benign (to
the extent that that is actually possible). We update cache entries
non-atomically but read them atomically from another thread, and there's
nothing that establishes a happens-before relationship between the
reads and writes that I can see.
Objects/typeobject.c
Tools/tsan/suppressions_free_threading.txt