Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Null test before use
  • Loading branch information
markshannon committed Jul 8, 2025
commit a9297a0ea0482c1fd27c1de377038c2c13740723
2 changes: 1 addition & 1 deletion Python/optimizer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1473,10 +1473,10 @@ _PyExecutor_GetColdExecutor(void)
return interp->cold_executor;
}
_PyExecutorObject *cold = allocate_executor(0, 1);
((_PyUOpInstruction *)cold->trace)->opcode = _COLD_EXIT;
if (cold == NULL) {
Py_FatalError("Cannot allocate core JIT code");
}
((_PyUOpInstruction *)cold->trace)->opcode = _COLD_EXIT;
_Py_SetImmortal((PyObject *)cold);
#ifdef _Py_JIT
cold->jit_code = NULL;
Expand Down
Loading