From: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Date: Mon, 27 Oct 2025 09:46:37 +0000 (+0000) Subject: Address Kumar's review X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b4e8575ec200c74cb5a50b86e45606fe1546c7f;p=thirdparty%2FPython%2Fcpython.git Address Kumar's review --- diff --git a/Include/internal/pycore_backoff.h b/Include/internal/pycore_backoff.h index 8ca351c30258..6b78322fb062 100644 --- a/Include/internal/pycore_backoff.h +++ b/Include/internal/pycore_backoff.h @@ -101,7 +101,7 @@ backoff_counter_triggers(_Py_BackoffCounter counter) // re-specialized: // Note: this should be a prime number-1. This increases the likelihood of // finding a "good" loop iteration to trace. -// For example, 4095 does not work for the nqueens benchmark on pyperformanc +// For example, 4095 does not work for the nqueens benchmark on pyperformance // as we always end up tracing the loop iteration's // exhaustion iteration. Which aborts our current tracer. #define JUMP_BACKWARD_INITIAL_VALUE 4000 diff --git a/Objects/frameobject.c b/Objects/frameobject.c index 37d30f349fed..b652973600c1 100644 --- a/Objects/frameobject.c +++ b/Objects/frameobject.c @@ -262,8 +262,8 @@ framelocalsproxy_setitem(PyObject *self, PyObject *key, PyObject *value) } #if _Py_TIER2 - _Py_Executors_InvalidateDependency(PyInterpreterState_Get(), co, 1); - _PyJit_Tracer_InvalidateDependency(PyThreadState_GET(), co); + _Py_Executors_InvalidateDependency(_PyInterpreterState_GET(), co, 1); + _PyJit_Tracer_InvalidateDependency(_PyThreadState_GET(), co); #endif _PyLocals_Kind kind = _PyLocals_GetKind(co->co_localspluskinds, i); diff --git a/Objects/funcobject.c b/Objects/funcobject.c index fcd79c7e4f4e..2311d8ce29a9 100644 --- a/Objects/funcobject.c +++ b/Objects/funcobject.c @@ -1152,7 +1152,7 @@ func_dealloc(PyObject *self) return; } #if _Py_TIER2 - _PyJit_Tracer_InvalidateDependency(PyThreadState_GET(), self); + _PyJit_Tracer_InvalidateDependency(_PyThreadState_GET(), self); #endif _PyObject_GC_UNTRACK(op); FT_CLEAR_WEAKREFS(self, op->func_weakreflist);