mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
gh-137084: remove multiple calls to get_gc_state in gc.c (#137085)
This commit is contained in:
parent
9b451fb457
commit
d7db0ee7ee
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue