]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-127945: fix thread safety of ctypes state (#131710)
authorKumar Aditya <kumaraditya@python.org>
Tue, 25 Mar 2025 11:33:05 +0000 (17:03 +0530)
committerGitHub <noreply@github.com>
Tue, 25 Mar 2025 11:33:05 +0000 (17:03 +0530)
commitf1967e72498209e42f7cf5eeff0cd84d1ec10d18
treed2eb688426cae8208d400271b487a5df9113ca06
parent96ef4c511f3ec763dbb06a1f3c23c658a09403a1
gh-127945: fix thread safety of ctypes state (#131710)

This fixes thread safety of `array_cache` and `swapped_suffix` by initializing them in module exec to make it thread safety.
Modules/_ctypes/_ctypes.c