Skip to content
Closed
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
make things more robust
  • Loading branch information
Fidget-Spinner committed Apr 9, 2026
commit 924193a94e9dc8227255d826a2fb936bec2591c0
7 changes: 4 additions & 3 deletions Python/ceval.c
Original file line number Diff line number Diff line change
Expand Up @@ -1149,9 +1149,6 @@ typedef struct {
PyObject* DONT_SLP_VECTORIZE
_PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int throwflag)
{
_Py_EnsureTstateNotNULL(tstate);
CALL_STAT_INC(pyeval_calls);

/* +1 because vectorcall might use -1 to write self */
/* gh-138115: This must not be in individual cases for
non-tail-call interpreters, as it results in excessive
Expand All @@ -1163,6 +1160,10 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int
PyObject *STACKREF_SCRATCH[MAX_STACKREF_SCRATCH+1];
#endif

_Py_EnsureTstateNotNULL(tstate);
CALL_STAT_INC(pyeval_calls);


#if USE_COMPUTED_GOTOS && !Py_TAIL_CALL_INTERP
/* Import the static jump table */
#include "opcode_targets.h"
Expand Down
Loading