Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Apr 23, 2024

Commits on Apr 22, 2024

  1. 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 pythongh-117830.
    mpage committed Apr 22, 2024
    Configuration menu
    Copy the full SHA
    c309c66 View commit details
    Browse the repository at this point in the history