summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authormpage <mpage@meta.com>2024-05-08 20:03:39 (GMT)
committerGitHub <noreply@github.com>2024-05-08 20:03:39 (GMT)
commitcb6f75a32ca2649c6cc1cabb0301eb783efbd55b (patch)
treec579943eb25f2bdd8ca51363bc8b7de433f08b7a /Tools
parent8d84120b4175daaf4ae6038621f3005cdb65acda (diff)
downloadcpython-cb6f75a32ca2649c6cc1cabb0301eb783efbd55b.zip
cpython-cb6f75a32ca2649c6cc1cabb0301eb783efbd55b.tar.gz
cpython-cb6f75a32ca2649c6cc1cabb0301eb783efbd55b.tar.bz2
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.
Diffstat (limited to 'Tools')
-rw-r--r--Tools/tsan/suppressions_free_threading.txt3
1 files changed, 0 insertions, 3 deletions
diff --git a/Tools/tsan/suppressions_free_threading.txt b/Tools/tsan/suppressions_free_threading.txt
index 74dbf4b..a669bc4 100644
--- a/Tools/tsan/suppressions_free_threading.txt
+++ b/Tools/tsan/suppressions_free_threading.txt
@@ -19,9 +19,6 @@ race:_PyImport_AcquireLock
race:_PyImport_ReleaseLock
race:_PyInterpreterState_SetNotRunningMain
race:_PyInterpreterState_IsRunningMain
-race:_PyObject_GC_IS_SHARED
-race:_PyObject_GC_SET_SHARED
-race:_PyObject_GC_TRACK
# https://gist.github.com/mpage/0a24eb2dd458441ededb498e9b0e5de8
race:_PyParkingLot_Park
race:_PyType_HasFeature