Skip to content

[gh-117657] Fix some issues with TSAN in typeobject - #118249

Merged
DinoV merged 1 commit into
python:mainfrom
DinoV:nogil_type_tsan
Apr 30, 2024
Merged

DinoV merged 1 commit into
python:mainfrom
DinoV:nogil_type_tsan

Conversation

@DinoV

@DinoV DinoV commented Apr 24, 2024 •

Copy link
Copy Markdown
Contributor

The tp_version field is updated under a lock, but it can be read lock-free. The assigns and reads from it need to use relaxed atomics.

@DinoV
DinoV force-pushed the nogil_type_tsan branch from f6d482e to 8daa151 Compare April 30, 2024 18:41
@DinoV
DinoV merged commit 19d468a into python:main Apr 30, 2024
SonicField pushed a commit to SonicField/cpython that referenced this pull request May 8, 2024
@DinoV
DinoV deleted the nogil_type_tsan branch May 31, 2024 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants