gh-117657: Quiet TSAN warnings about remaining non-atomic accesses of tstate->state (#118165)

Quiet TSAN warnings about remaining non-atomic accesses of `tstate->state`
This commit is contained in:
mpage 2024-04-23 10:20:14 -07:00 committed by GitHub
parent 0d221e9a19
commit 2e7771a03d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View file

@ -2096,7 +2096,7 @@ _PyThreadState_Suspend(PyThreadState *tstate)
{
_PyRuntimeState *runtime = &_PyRuntime;
assert(tstate->state == _Py_THREAD_ATTACHED);
assert(_Py_atomic_load_int_relaxed(&tstate->state) == _Py_THREAD_ATTACHED);
struct _stoptheworld_state *stw = NULL;
HEAD_LOCK(runtime);