From 24cd7f9f7a16562a10a8c72d4213df084ef58358 Mon Sep 17 00:00:00 2001 From: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Date: Sat, 18 Oct 2025 23:26:00 +0100 Subject: [PATCH] more cleanup to fix CI --- Python/ceval.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Python/ceval.c b/Python/ceval.c index 0d63c3122789..b16fcdb51cd9 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -984,6 +984,7 @@ _PyObjectArray_Free(PyObject **array, PyObject **scratch) } } +#if _Py_TIER2 // 1 for trace full, 0 for successful write. static int add_to_code_trace(PyThreadState *tstate, _PyInterpreterFrame *frame, PyCodeObject *old_code, PyFunctionObject *old_func, _Py_CODEUNIT *this_instr, _Py_CODEUNIT *next_instr, int opcode, int oparg, int jump_taken) @@ -992,6 +993,7 @@ add_to_code_trace(PyThreadState *tstate, _PyInterpreterFrame *frame, PyCodeObjec assert(tstate->interp->jit_state.jit_tracer_code_curr_size < UOP_MAX_TRACE_LENGTH); return !_PyJIT_translate_single_bytecode_to_trace(tstate, frame, this_instr, next_instr, old_code, old_func, opcode, oparg, jump_taken); } +#endif /* _PyEval_EvalFrameDefault is too large to optimize for speed with PGO on MSVC. */ -- 2.47.3