]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-132070: Fix PyObject_Realloc thread-safety in free threaded Python (gh-143441)
authorSam Gross <colesbury@gmail.com>
Tue, 6 Jan 2026 20:55:37 +0000 (15:55 -0500)
committerGitHub <noreply@github.com>
Tue, 6 Jan 2026 20:55:37 +0000 (15:55 -0500)
commit98e55d70bcb7f02c6f98f90739e217049d6a1db7
tree0037e9401d584fa3f52524e634a3fae3c0ac7d3e
parentdf355348f077f674fffac010413e058f4ac7c0d3
gh-132070: Fix PyObject_Realloc thread-safety in free threaded Python (gh-143441)

The PyObject header reference count fields must be initialized using
atomic operations because they may be concurrently read by another
thread (e.g., from `_Py_TryIncref`).
Objects/obmalloc.c
Tools/tsan/suppressions_free_threading.txt