summaryrefslogtreecommitdiffstats
path: root/Python/pystate.c
diff options
context:
space:
mode:
authorDonghee Na <donghee.na@python.org>2024-02-14 00:32:51 (GMT)
committerGitHub <noreply@github.com>2024-02-14 00:32:51 (GMT)
commitf15795c9a0f206b9abfb48007b267d12cd14f4a8 (patch)
tree1bd6b124e2ab983a921afb1c8ef02995ab39fb8b /Python/pystate.c
parent518af37eb569f52a3daf2cf9f4787deed10754ca (diff)
downloadcpython-f15795c9a0f206b9abfb48007b267d12cd14f4a8.zip
cpython-f15795c9a0f206b9abfb48007b267d12cd14f4a8.tar.gz
cpython-f15795c9a0f206b9abfb48007b267d12cd14f4a8.tar.bz2
gh-111968: Rename freelist related struct names to Eric's suggestion (gh-115329)
Diffstat (limited to 'Python/pystate.c')
-rw-r--r--Python/pystate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/pystate.c b/Python/pystate.c
index 996f465..82c9558 100644
--- a/Python/pystate.c
+++ b/Python/pystate.c
@@ -1548,8 +1548,8 @@ PyThreadState_Clear(PyThreadState *tstate)
}
#ifdef Py_GIL_DISABLED
// Each thread should clear own freelists in free-threading builds.
- _PyFreeListState *freelist_state = _PyFreeListState_GET();
- _PyObject_ClearFreeLists(freelist_state, 1);
+ struct _Py_object_freelists *freelists = _Py_object_freelists_GET();
+ _PyObject_ClearFreeLists(freelists, 1);
// Remove ourself from the biased reference counting table of threads.
_Py_brc_remove_thread(tstate);