]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-142534: Avoid TSan warnings in dictobject.c (gh-142544)
authorSam Gross <colesbury@gmail.com>
Thu, 11 Dec 2025 21:23:19 +0000 (16:23 -0500)
committerGitHub <noreply@github.com>
Thu, 11 Dec 2025 21:23:19 +0000 (16:23 -0500)
commit0a62f8277e9a0dd9f34b0b070adb83994e81b2a8
tree292602791009818aeeea77efe10141a2e1cff7e7
parent9fe6e3ed365f40d89a47c2a255e11f0363e9aa78
gh-142534: Avoid TSan warnings in dictobject.c (gh-142544)

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.
Include/cpython/pyatomic.h
Include/internal/pycore_pyatomic_ft_wrappers.h
Objects/dictobject.c