]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-117657: Fix data races when writing / reading `ob_gc_bits` (#118292)
authormpage <mpage@meta.com>
Wed, 8 May 2024 20:03:39 +0000 (13:03 -0700)
committerGitHub <noreply@github.com>
Wed, 8 May 2024 20:03:39 +0000 (16:03 -0400)
commitcb6f75a32ca2649c6cc1cabb0301eb783efbd55b
treec579943eb25f2bdd8ca51363bc8b7de433f08b7a
parent8d84120b4175daaf4ae6038621f3005cdb65acda
gh-117657: Fix data races when writing / reading `ob_gc_bits` (#118292)

Use relaxed atomics when reading / writing to the field. There are still a
few places in the GC where we do not use atomics. Those should be safe as
the world is stopped.
Include/internal/pycore_gc.h
Include/internal/pycore_object.h
Objects/object.c
Tools/tsan/suppressions_free_threading.txt