]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-132070: add `PyObject_Realloc` suppression in free-threading (#132468)
authorKumar Aditya <kumaraditya@python.org>
Wed, 16 Apr 2025 00:40:56 +0000 (06:10 +0530)
committerGitHub <noreply@github.com>
Wed, 16 Apr 2025 00:40:56 +0000 (06:10 +0530)
Tools/tsan/suppressions_free_threading.txt

index b0d64d369969202e27f053ec23df122a580353a9..21224e490b8160bada48f38df5d42edbe19cee01 100644 (file)
@@ -43,3 +43,7 @@ race_top:rangeiter_next
 # of ptr-sized copies to be thread-safe. (Issue #129069)
 race:list_ass_slice_lock_held
 race:list_inplace_repeat_lock_held
+
+# PyObject_Realloc internally does memcpy which isn't atomic so can race
+# with non-locking reads. See #132070
+race:PyObject_Realloc
\ No newline at end of file