]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-131113: Fix data race in dict.popitem() (gh-131115)
authorSam Gross <colesbury@gmail.com>
Tue, 11 Mar 2025 23:15:22 +0000 (19:15 -0400)
committerGitHub <noreply@github.com>
Tue, 11 Mar 2025 23:15:22 +0000 (19:15 -0400)
commitc00ac578241b3213ceb79c1f32bc83ea471f02da
treebb7a9e761fbb412c14dd7de354b50ee29149d02c
parentad90c5fabc415d4e46205947cceda82893ec1460
gh-131113: Fix data race in dict.popitem() (gh-131115)

The clearing of the key, hash, and value need to use atomic operations
to avoid a data race with concurrent read operations.
Objects/dictobject.c