WebSafe 3.7github.com
|
|
🏠
Skip to content

gh-127945: fix thread safety of ctypes state#131710

Merged
kumaraditya303 merged 1 commit intopython:mainfrom
kumaraditya303:ctypes-state
Mar 25, 2025
Merged

gh-127945: fix thread safety of ctypes state#131710
kumaraditya303 merged 1 commit intopython:mainfrom
kumaraditya303:ctypes-state

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

Comments