Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Quiet TSAN warnings about remaining non-atomic accesses of `tstate->s…
…tate` These should be the last instances of TSAN warning of data races when accessing `tstate->state` non-atomically. TSAN reports a race between accessing `tstate->state` in `_PyThreadState_Suspend()` and the compare/exhange in `park_detached_threads`. This is a false positive due to TSAN modeling failed compare/exchange operations as writes. TSAN reports a race between accessing `tstate->state` in `_PySemaphore_Wait()` and the compare/exchange in `park_detached_threads`. This is the same issue that we saw in gh-117830.
- Loading branch information