aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/gc.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/gc.c')
-rw-r--r--Python/gc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/gc.c b/Python/gc.c
index b7b48c8af39..7b0e6d6e803 100644
--- a/Python/gc.c
+++ b/Python/gc.c
@@ -493,6 +493,7 @@ update_refs(PyGC_Head *containers)
next = GC_NEXT(gc);
PyObject *op = FROM_GC(gc);
if (_Py_IsImmortal(op)) {
+ assert(!_Py_IsStaticImmortal(op));
_PyObject_GC_UNTRACK(op);
gc = next;
continue;