]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-117657: Fix TSAN reported race in `_PyEval_IsGILEnabled`. (GH-119921) ...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 2 Jun 2024 14:42:46 +0000 (16:42 +0200)
committerGitHub <noreply@github.com>
Sun, 2 Jun 2024 14:42:46 +0000 (14:42 +0000)
commit9d3de7b0edf46cc0f6aed586111464b2ad581f5a
tree1680d31f3ccd701347098846d3f6b9a69dbb15c2
parentcf8f292a362c3715c536ff90d3e5d0c98ecf2bf0
[3.13] gh-117657: Fix TSAN reported race in `_PyEval_IsGILEnabled`. (GH-119921) (#119939)

The GIL may be disabled concurrently with this call so we need to use a
relaxed atomic load.
(cherry picked from commit f3b89a63cbb6d46e5ed40d5cd9813cdf9189ce35)

Co-authored-by: Sam Gross <colesbury@gmail.com>
Include/internal/pycore_ceval.h
Tools/tsan/suppressions_free_threading.txt