https://github.com/python/cpython/commit/d7db0ee7ee2af48f666a8b5a9321161b2dbd85ab
commit: d7db0ee7ee2af48f666a8b5a9321161b2dbd85ab
branch: main
author: Sergey Miryanov <sergey.mirya...@gmail.com>
committer: kumaraditya303 <kumaradi...@python.org>
date: 2025-07-25T18:13:54+05:30
summary:

gh-137084: remove multiple calls to `get_gc_state` in `gc.c` (#137085)

files:
M Python/gc.c

diff --git a/Python/gc.c b/Python/gc.c
index 25536270523305..2e697faac032b5 100644
--- a/Python/gc.c
+++ b/Python/gc.c
@@ -1396,7 +1396,7 @@ expand_region_transitively_reachable(PyGC_Head 
*container, PyGC_Head *gc, GCStat
         assert(_PyObject_GC_IS_TRACKED(op));
         if (_Py_IsImmortal(op)) {
             PyGC_Head *next = GC_NEXT(gc);
-            gc_list_move(gc, &get_gc_state()->permanent_generation.head);
+            gc_list_move(gc, &gcstate->permanent_generation.head);
             gc = next;
             continue;
         }

_______________________________________________
Python-checkins mailing list -- python-checkins@python.org
To unsubscribe send an email to python-checkins-le...@python.org
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: arch...@mail-archive.com

Reply via email to