]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Address Kumar's review
authorKen Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Mon, 27 Oct 2025 09:46:37 +0000 (09:46 +0000)
committerKen Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Mon, 27 Oct 2025 09:46:37 +0000 (09:46 +0000)
Include/internal/pycore_backoff.h
Objects/frameobject.c
Objects/funcobject.c

index 8ca351c30258fab3b258c6ed0835a7f72805c6dd..6b78322fb062320b0f4cd6e10187e2396d2825a1 100644 (file)
@@ -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
index 37d30f349fedfe3783f62639021260c76dd50e8e..b652973600c17dcd93fa22e0d6abad368b0becd4 100644 (file)
@@ -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);
index fcd79c7e4f4ea1d58ac2464a3cf9b2ee2f43dfb4..2311d8ce29a9d93854dea1c489136030b9e41fc7 100644 (file)
@@ -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);