Skip to content

Commit d7db0ee

Browse files
gh-137084: remove multiple calls to get_gc_state in gc.c (#137085)
1 parent 9b451fb commit d7db0ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/gc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1396,7 +1396,7 @@ expand_region_transitively_reachable(PyGC_Head *container, PyGC_Head *gc, GCStat
13961396
assert(_PyObject_GC_IS_TRACKED(op));
13971397
if (_Py_IsImmortal(op)) {
13981398
PyGC_Head *next = GC_NEXT(gc);
1399-
gc_list_move(gc, &get_gc_state()->permanent_generation.head);
1399+
gc_list_move(gc, &gcstate->permanent_generation.head);
14001400
gc = next;
14011401
continue;
14021402
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy