Skip to content

gh-120524: Avoid a Race On _PyRuntime.types.managed_static.types[i].interp_count#120529

Merged
ericsnowcurrently merged 4 commits intopython:mainfrom
ericsnowcurrently:fix-gh-120524-racy-builtin-type-lifecycle
Jun 17, 2024
Merged

gh-120524: Avoid a Race On _PyRuntime.types.managed_static.types[i].interp_count#120529
ericsnowcurrently merged 4 commits intopython:mainfrom
ericsnowcurrently:fix-gh-120524-racy-builtin-type-lifecycle

Conversation

@ericsnowcurrently
Copy link
Member

@ericsnowcurrently ericsnowcurrently commented Jun 14, 2024

gh-120182 added new global state (interp_count), but didn't add thread-safety for it. This change eliminates the possible race.

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