]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-111924: Use PyMutex for runtime global locks.
authorSam Gross <colesbury@gmail.com>
Thu, 16 Nov 2023 21:41:21 +0000 (16:41 -0500)
committerSam Gross <colesbury@gmail.com>
Thu, 16 Nov 2023 22:39:49 +0000 (17:39 -0500)
commit628f6eb0035db9d716554bf53ce164a88b652eed
tree185223ac2930588ac962f06a0263b4f0ecfa7e53
parent974847be443e9798615e197ec6642e546a71a6b0
gh-111924: Use PyMutex for runtime global locks.

This replaces some usages of PyThread_type_lock with PyMutex, which
does not require memory allocation to initialize.
18 files changed:
Include/internal/pycore_atexit.h
Include/internal/pycore_ceval.h
Include/internal/pycore_ceval_state.h
Include/internal/pycore_crossinterp.h
Include/internal/pycore_import.h
Include/internal/pycore_lock.h
Include/internal/pycore_pymem.h
Include/internal/pycore_pystate.h
Include/internal/pycore_runtime.h
Include/internal/pycore_unicodeobject.h
Objects/obmalloc.c
Objects/unicodeobject.c
Python/ceval_gil.c
Python/crossinterp.c
Python/import.c
Python/pylifecycle.c
Python/pystate.c
Python/sysmodule.c