GH-142513: Reimplement executor management (GH-142931)

* Invalidating an executor does not cause arbitrary code to run
* Executors are only freed at safe points
This commit is contained in:
Mark Shannon 2025-12-18 16:43:44 +00:00 committed by GitHub
parent 14f0b5191a
commit e4058d7cb1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 90 additions and 106 deletions

View file

@ -570,7 +570,6 @@ init_interpreter(PyInterpreterState *interp,
interp->compiling = false;
interp->executor_list_head = NULL;
interp->executor_deletion_list_head = NULL;
interp->executor_deletion_list_remaining_capacity = 0;
interp->executor_creation_counter = JIT_CLEANUP_THRESHOLD;
if (interp != &runtime->_main_interpreter) {
/* Fix the self-referential, statically initialized fields. */