Skip to content

Commit 4db1853

Browse files
fix on release builds
1 parent 6f753da commit 4db1853

File tree

4 files changed

+455
-455
lines changed

4 files changed

+455
-455
lines changed

Python/ceval.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -786,14 +786,14 @@ _PyObjectArray_Free(PyObject **array, PyObject **scratch)
786786
#endif
787787

788788
#ifdef LLTRACE
789-
PyObject *
789+
static inline PyObject *
790790
_TAIL_CALL_shim(_PyInterpreterFrame *frame, _PyStackRef *stack_pointer,
791791
PyThreadState *tstate, _Py_CODEUNIT *next_instr, int oparg, _PyInterpreterFrame* entry_frame, int lltrace)
792792
{
793793
return (INSTRUCTION_TABLE[next_instr->op.code])(frame, stack_pointer, tstate, next_instr, next_instr->op.arg, entry_frame, lltrace);
794794
}
795795
#else
796-
PyObject *
796+
static inline PyObject *
797797
_TAIL_CALL_shim(_PyInterpreterFrame *frame, _PyStackRef *stack_pointer,
798798
PyThreadState *tstate, _Py_CODEUNIT *next_instr, int oparg, _PyInterpreterFrame* entry_frame)
799799
{

Python/ceval_macros.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ do { \
182182
frame = tstate->current_frame = (NEW_FRAME); \
183183
CALL_STAT_INC(inlined_py_calls); \
184184
if (_Py_EnterRecursivePy(tstate)) {\
185-
goto exit_unwind;\
185+
CEVAL_GOTO(exit_unwind);\
186186
} \
187187
next_instr = frame->instr_ptr; \
188188
stack_pointer = _PyFrame_GetStackPointer(frame); \

0 commit comments

Comments
 (0)