]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-114940: Add _Py_FOR_EACH_TSTATE_UNLOCKED(), and Friends (gh-127077)
authorEric Snow <ericsnowcurrently@gmail.com>
Thu, 21 Nov 2024 18:08:38 +0000 (11:08 -0700)
committerGitHub <noreply@github.com>
Thu, 21 Nov 2024 18:08:38 +0000 (11:08 -0700)
commit9dabace39d118ec7a204b6970f8a3f475a11522c
treee03d07af2bcfcd399b993b1e0faf5dae67fc4e39
parentbf542f8bb9f12f0df9481f2222b21545806dd9e1
gh-114940: Add _Py_FOR_EACH_TSTATE_UNLOCKED(), and Friends (gh-127077)

This is a precursor to the actual fix for gh-114940, where we will change these macros to use the new lock.  This change is almost entirely mechanical; the exceptions are the loops in codeobject.c and ceval.c, which now hold the "head" lock.  Note that almost all of the uses of _Py_FOR_EACH_TSTATE_UNLOCKED() here will change to _Py_FOR_EACH_TSTATE_BEGIN() once we add the new per-interpreter lock.
Include/internal/pycore_pystate.h
Objects/codeobject.c
Objects/object.c
Objects/obmalloc.c
Python/ceval.c
Python/ceval_gil.c
Python/gc_free_threading.c
Python/instrumentation.c
Python/pystate.c