Skip to content

Commit bd05f5f

Browse files
committed
update optimizer
1 parent 055ec71 commit bd05f5f

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Python/optimizer.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1072,8 +1072,7 @@ _PyJit_translate_single_bytecode_to_trace(
10721072
DPRINTF(1, "Unknown uop needing guard ip %s\n", _PyOpcode_uop_name[last_opcode]);
10731073
Py_UNREACHABLE();
10741074
}
1075-
PyObject *code = PyStackRef_AsPyObjectBorrow(frame->f_executable);
1076-
Py_INCREF(code);
1075+
PyObject *code = Py_NewRef(frame->f_executable);
10771076
ADD_TO_TRACE(_RECORD_CODE, 0, (uintptr_t)code, 0);
10781077
ADD_TO_TRACE(guard_ip, 0, (uintptr_t)next_instr, 0);
10791078
if (PyCode_Check(code)) {

0 commit comments

Comments
 (0)