]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-131113: Fix data race in dict.popitem() (gh-131115) (#131119)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 11 Mar 2025 23:39:29 +0000 (00:39 +0100)
committerGitHub <noreply@github.com>
Tue, 11 Mar 2025 23:39:29 +0000 (23:39 +0000)
commit9e0fce413a908ce679b30e26ec1c7dfcc38c32d9
tree4107e97f96a58cdf329cbd206e62f21f67323f8c
parent98c7ae3f7e6fa47cfeee388fb0992a77d6ba163a
[3.13] gh-131113: Fix data race in dict.popitem() (gh-131115) (#131119)

The clearing of the key, hash, and value need to use atomic operations
to avoid a data race with concurrent read operations.
(cherry picked from commit c00ac578241b3213ceb79c1f32bc83ea471f02da)

Co-authored-by: Sam Gross <colesbury@gmail.com>
Objects/dictobject.c