]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-142534: Avoid TSan warnings in dictobject.c (gh-142544) (gh-142603)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 11 Dec 2025 21:51:02 +0000 (22:51 +0100)
committerGitHub <noreply@github.com>
Thu, 11 Dec 2025 21:51:02 +0000 (21:51 +0000)
commitb868f1414c5fec33664e49e60738498e1443f36c
treeb1ac8f4c51ff4c7a5579fa40d52bc7802703546e
parent12d2b95adff88a3395227ec7b28b2c81d879f455
[3.14] gh-142534: Avoid TSan warnings in dictobject.c (gh-142544) (gh-142603)

There are places we use "relaxed" loads where C11 requires "consume" or
stronger. Unfortunately, compilers don't really implement "consume" so
fake it for our use in a way that avoids upsetting TSan.
(cherry picked from commit 0a62f8277e9a0dd9f34b0b070adb83994e81b2a8)

Co-authored-by: Sam Gross <colesbury@gmail.com>
Include/cpython/pyatomic.h
Include/internal/pycore_pyatomic_ft_wrappers.h
Objects/dictobject.c