GH-109369: Add machinery for deoptimizing tier2 executors, both individually and globally. (GH-110384)

This commit is contained in:
Mark Shannon 2023-10-23 14:49:09 +01:00 committed by GitHub
parent 32c37fe1ba
commit 52e902ccf0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 353 additions and 2 deletions

View file

@ -713,6 +713,7 @@ init_interpreter(PyInterpreterState *interp,
interp->optimizer_backedge_threshold = _PyOptimizer_Default.backedge_threshold;
interp->optimizer_resume_threshold = _PyOptimizer_Default.backedge_threshold;
interp->next_func_version = 1;
interp->executor_list_head = NULL;
if (interp != &runtime->_main_interpreter) {
/* Fix the self-referential, statically initialized fields. */
interp->dtoa = (struct _dtoa_state)_dtoa_state_INIT(interp);