From: Ken Jin Date: Thu, 19 Feb 2026 03:44:50 +0000 (+0800) Subject: gh-144888: Don't invalidate executors during function deallocation (#144974) X-Git-Tag: v3.15.0a7~230 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e84a2cc83c273329553377e99c9520d3f1225eda;p=thirdparty%2FPython%2Fcpython.git gh-144888: Don't invalidate executors during function deallocation (#144974) --- diff --git a/Objects/funcobject.c b/Objects/funcobject.c index ee0c46a95b97..8099b82f4835 100644 --- a/Objects/funcobject.c +++ b/Objects/funcobject.c @@ -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);