Skip to content

Commit 4ae3405

Browse files
track before immortalizing
1 parent a4f3d54 commit 4ae3405

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Python/optimizer.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1520,6 +1520,7 @@ _PyExecutor_GetColdExecutor(void)
15201520
Py_FatalError("Cannot allocate core JIT code");
15211521
}
15221522
((_PyUOpInstruction *)cold->trace)->opcode = _COLD_EXIT;
1523+
_PyObject_GC_TRACK(cold);
15231524
#ifdef _Py_JIT
15241525
cold->jit_code = NULL;
15251526
cold->jit_size = 0;

0 commit comments

Comments
 (0)