]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-127879: Fix data race in `_PyFreeList_Push` (#127880)
authorSam Gross <colesbury@gmail.com>
Thu, 12 Dec 2024 17:59:13 +0000 (17:59 +0000)
committerGitHub <noreply@github.com>
Thu, 12 Dec 2024 17:59:13 +0000 (12:59 -0500)
commitf8dcb8200626a1a06c4a26d8129257f42658a9ff
tree8f30b66deba566ea2c3977814e5f5439104c1cd0
parent7146f1894638130940944d4808dae7d144d46227
gh-127879: Fix data race in `_PyFreeList_Push` (#127880)

Writes to the `ob_tid` field need to use atomics because it may be
concurrently read by a non-locking dictionary, list, or structmember
read.
Include/internal/pycore_freelist.h