]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-117657: Fix TSAN reported race in `_PyEval_IsGILEnabled`. (#119921)
authorSam Gross <colesbury@gmail.com>
Sun, 2 Jun 2024 14:19:02 +0000 (10:19 -0400)
committerGitHub <noreply@github.com>
Sun, 2 Jun 2024 14:19:02 +0000 (10:19 -0400)
commitf3b89a63cbb6d46e5ed40d5cd9813cdf9189ce35
treee1921b62cbde2bf4e91fc02087ca6bad090e9067
parentf79ffc879b919604ed5de22ece83825006cf9a17
gh-117657: Fix TSAN reported race in `_PyEval_IsGILEnabled`. (#119921)

The GIL may be disabled concurrently with this call so we need to use a
relaxed atomic load.
Include/internal/pycore_ceval.h
Tools/tsan/suppressions_free_threading.txt