]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-117657: Quiet TSAN warning about a data race between `start_the_world()` and ...
authormpage <mpage@meta.com>
Mon, 15 Apr 2024 16:17:33 +0000 (09:17 -0700)
committerGitHub <noreply@github.com>
Mon, 15 Apr 2024 16:17:33 +0000 (12:17 -0400)
commit6e0b327690c7dd2e4e9091f81f8ad43ad5eb1631
tree079703f4ade9ef4a4b11978b3f1fd4081bdf30c6
parent47832067da54385c6cd5ad0f4f9d7f7dc69ebdb2
gh-117657: Quiet TSAN warning about a data race between `start_the_world()` and `tstate_try_attach()` (#117828)

TSAN erroneously reports a data race between the `_Py_atomic_compare_exchange_int`
on `tstate->state` in `tstate_try_attach()` and the non-atomic load of
`tstate->state` in `start_the_world`. The `_Py_atomic_compare_exchange_int` fails,
but TSAN erroneously treats it as a store.
Python/pystate.c