From 45db503453741edb7e928abe84231b6fe794a2ce Mon Sep 17 00:00:00 2001 From: Lukas Geiger Date: Sun, 11 Oct 2026 18:39:01 +0100 Subject: [PATCH] gh-159186: Skip branch-history recording in builds without Tier 2 --- Python/ceval_macros.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/ceval_macros.h b/Python/ceval_macros.h index 36921e35533433..720108960205c6 100644 --- a/Python/ceval_macros.h +++ b/Python/ceval_macros.h @@ -384,7 +384,7 @@ static void dtrace_function_return(_PyInterpreterFrame *); } while (0); #endif -#ifdef ENABLE_SPECIALIZATION +#if defined(ENABLE_SPECIALIZATION) && defined(_Py_TIER2) /* Multiple threads may execute these concurrently if thread-local bytecode is * disabled and they all execute the main copy of the bytecode. Specialization * is disabled in that case so the value is unused, but the RMW cycle should be