]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-127945: add locking to malloc closure in free-threading (#131662)
authorKumar Aditya <kumaraditya@python.org>
Tue, 25 Mar 2025 11:18:46 +0000 (16:48 +0530)
committerGitHub <noreply@github.com>
Tue, 25 Mar 2025 11:18:46 +0000 (16:48 +0530)
commit96ef4c511f3ec763dbb06a1f3c23c658a09403a1
tree0ea0fef4a555949b2435de6b025c841d6ab0b3f3
parent6fb5f7f4d9d22c49f5c29d2ffcbcc32b6cd7d06a
gh-127945: add locking to malloc closure in free-threading (#131662)

The freelist is not thread safe in free-threading so this adds lock around it make it thread safe in free-threading.
Modules/_ctypes/malloc_closure.c