https://github.com/python/cpython/commit/e84a2cc83c273329553377e99c9520d3f1225eda
commit: e84a2cc83c273329553377e99c9520d3f1225eda
branch: main
author: Ken Jin <[email protected]>
committer: savannahostrowski <[email protected]>
date: 2026-02-19T03:44:50Z
summary:

gh-144888: Don't invalidate executors during function deallocation (#144974)

files:
M Objects/funcobject.c

diff --git a/Objects/funcobject.c b/Objects/funcobject.c
index ee0c46a95b9708..8099b82f4835fb 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);

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to