Skip to content

Commit fa99108

Browse files
set immortal before GC
1 parent d76a24b commit fa99108

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/optimizer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1329,10 +1329,10 @@ make_executor_from_uops(_PyUOpInstruction *buffer, int length, const _PyBloomFil
13291329
return NULL;
13301330
}
13311331
#endif
1332-
_PyObject_GC_TRACK(executor);
13331332
// Executors are cleared by coldness or invalidation.
13341333
// Thus there's no point for them to be refcounted.
13351334
_Py_SetImmortal((PyObject *)executor);
1335+
_PyObject_GC_TRACK(executor);
13361336
return executor;
13371337
}
13381338

0 commit comments

Comments
 (0)