mirror of
https://github.com/python/cpython.git
synced 2026-01-05 23:12:38 +00:00
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:
parent
14f0b5191a
commit
e4058d7cb1
5 changed files with 90 additions and 106 deletions
|
|
@ -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. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue