]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-100227: Lock Around Modification of the Global Allocators State (gh-105516)
authorEric Snow <ericsnowcurrently@gmail.com>
Thu, 8 Jun 2023 20:06:54 +0000 (14:06 -0600)
committerGitHub <noreply@github.com>
Thu, 8 Jun 2023 20:06:54 +0000 (14:06 -0600)
commit68dfa496278aa21585eb4654d5f7ef13ef76cb50
tree3a3cd54110d87512915634682f18818577c57ffe
parent4ff5690e591b7d11cf11e34bf61004e2ea58ab3c
gh-100227: Lock Around Modification of the Global Allocators State (gh-105516)

The risk of a race with this state is relatively low, but we play it safe anyway. We do avoid using the lock in performance-sensitive cases where the risk of a race is very, very low.
Include/internal/pycore_pymem.h
Include/internal/pycore_runtime_init.h
Objects/obmalloc.c
Python/pystate.c