File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -582,6 +582,7 @@ is_terminator(const _PyUOpInstruction *uop)
582582
583583/* Returns 1 on success (added to trace), 0 on trace end.
584584 */
585+ // gh-142543: inlining this function causes stack overflows
585586Py_NO_INLINE int
586587_PyJit_translate_single_bytecode_to_trace (
587588 PyThreadState * tstate ,
@@ -994,6 +995,7 @@ _PyJit_translate_single_bytecode_to_trace(
994995}
995996
996997// Returns 0 for do not enter tracing, 1 on enter tracing.
998+ // gh-142543: inlining this function causes stack overflows
997999Py_NO_INLINE int
9981000_PyJit_TryInitializeTracing (
9991001 PyThreadState * tstate , _PyInterpreterFrame * frame , _Py_CODEUNIT * curr_instr ,
@@ -1066,7 +1068,7 @@ _PyJit_TryInitializeTracing(
10661068 return 1 ;
10671069}
10681070
1069- void
1071+ Py_NO_INLINE void
10701072_PyJit_FinalizeTracing (PyThreadState * tstate )
10711073{
10721074 _PyThreadStateImpl * _tstate = (_PyThreadStateImpl * )tstate ;
You can’t perform that action at this time.
0 commit comments