]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-144888: Don't invalidate executors during function deallocation (#144974)
authorKen Jin <kenjin@python.org>
Thu, 19 Feb 2026 03:44:50 +0000 (11:44 +0800)
committerGitHub <noreply@github.com>
Thu, 19 Feb 2026 03:44:50 +0000 (03:44 +0000)
Objects/funcobject.c

index ee0c46a95b9708646f942403bc86457837e12e1a..8099b82f4835fb2a1e1f91ca9d1ec4dfa0e354f4 100644 (file)
@@ -1126,10 +1126,6 @@ func_dealloc(PyObject *self)
     if (_PyObject_ResurrectEnd(self)) {
         return;
     }
-#if _Py_TIER2
-    _Py_Executors_InvalidateDependency(_PyInterpreterState_GET(), self, 1);
-    _PyJit_Tracer_InvalidateDependency(_PyThreadState_GET(), self);
-#endif
     _PyObject_GC_UNTRACK(op);
     FT_CLEAR_WEAKREFS(self, op->func_weakreflist);
     (void)func_clear((PyObject*)op);