diff --git a/Python/ceval_macros.h b/Python/ceval_macros.h index 36921e35533433d..720108960205c65 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