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-127945: fix thread safety of ctypes state #131710

Merged
merged 1 commit into from
Mar 25, 2025

Conversation

kumaraditya303
Copy link
Contributor

@kumaraditya303 kumaraditya303 commented Mar 25, 2025

This fixes thread safety of array_cache and swapped_suffix by initializing them in module exec to make it thread safety.

@kumaraditya303 kumaraditya303 merged commit f1967e7 into python:main Mar 25, 2025
48 of 49 checks passed
@kumaraditya303 kumaraditya303 deleted the ctypes-state branch March 25, 2025 11:33
diegorusso pushed a commit to diegorusso/cpython that referenced this pull request Apr 1, 2025
This fixes thread safety of `array_cache` and `swapped_suffix` by initializing them in module exec to make it thread safety.
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.

None yet

1 participant