summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorDonghee Na <donghee.na@python.org>2024-01-26 15:25:16 (GMT)
committerGitHub <noreply@github.com>2024-01-26 15:25:16 (GMT)
commit699779256ec4d4b8afb8211de08ef1382c78c370 (patch)
tree34b4bbdf255c6a4304dbb19399b28d5f6e351651 /Python
parent504334c7be5a56237df2598d338cd494a42fca4c (diff)
downloadcpython-699779256ec4d4b8afb8211de08ef1382c78c370.zip
cpython-699779256ec4d4b8afb8211de08ef1382c78c370.tar.gz
cpython-699779256ec4d4b8afb8211de08ef1382c78c370.tar.bz2
gh-111968: Unify freelist naming schema to Eric's suggestion (gh-114581)
Diffstat (limited to 'Python')
-rw-r--r--Python/context.c4
-rw-r--r--Python/object_stack.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/Python/context.c b/Python/context.c
index 1e90811..294485e 100644
--- a/Python/context.c
+++ b/Python/context.c
@@ -69,7 +69,7 @@ static struct _Py_context_state *
get_context_state(void)
{
_PyFreeListState *state = _PyFreeListState_GET();
- return &state->context_state;
+ return &state->contexts;
}
#endif
@@ -1270,7 +1270,7 @@ void
_PyContext_ClearFreeList(_PyFreeListState *freelist_state, int is_finalization)
{
#ifdef WITH_FREELISTS
- struct _Py_context_state *state = &freelist_state->context_state;
+ struct _Py_context_state *state = &freelist_state->contexts;
for (; state->numfree > 0; state->numfree--) {
PyContext *ctx = state->freelist;
state->freelist = (PyContext *)ctx->ctx_weakreflist;
diff --git a/Python/object_stack.c b/Python/object_stack.c
index 66b37bc..8544892 100644
--- a/Python/object_stack.c
+++ b/Python/object_stack.c
@@ -12,7 +12,7 @@ static struct _Py_object_stack_state *
get_state(void)
{
_PyFreeListState *state = _PyFreeListState_GET();
- return &state->object_stack_state;
+ return &state->object_stacks;
}
_PyObjectStackChunk *
@@ -76,7 +76,7 @@ _PyObjectStackChunk_ClearFreeList(_PyFreeListState *free_lists, int is_finalizat
return;
}
- struct _Py_object_stack_state *state = &free_lists->object_stack_state;
+ struct _Py_object_stack_state *state = &free_lists->object_stacks;
while (state->numfree > 0) {
_PyObjectStackChunk *buf = state->free_list;
state->free_list = buf->prev;