Skip to content

gh-117657: Fix TSAN races in setobject.c#121511

Merged
colesbury merged 1 commit intopython:mainfrom
colesbury:gh-117657-set
Jul 9, 2024
Merged

gh-117657: Fix TSAN races in setobject.c#121511
colesbury merged 1 commit intopython:mainfrom
colesbury:gh-117657-set

Conversation

@colesbury
Copy link
Contributor

@colesbury colesbury commented Jul 8, 2024

The used field must be written using atomic stores because set_len and iterators may access the field concurrently without holding the per-object lock.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants