mirror of
https://github.com/python/cpython.git
synced 2025-08-31 22:18:28 +00:00
GH-113710: Backedge counter improvements. (GH-115166)
This commit is contained in:
parent
7cce857622
commit
f9f6156c5a
7 changed files with 81 additions and 55 deletions
|
@ -1627,8 +1627,8 @@ finalize_modules(PyThreadState *tstate)
|
|||
|
||||
// Invalidate all executors and turn off tier 2 optimizer
|
||||
_Py_Executors_InvalidateAll(interp);
|
||||
Py_XDECREF(interp->optimizer);
|
||||
interp->optimizer = &_PyOptimizer_Default;
|
||||
_PyOptimizerObject *old = _Py_SetOptimizer(interp, NULL);
|
||||
Py_XDECREF(old);
|
||||
|
||||
// Stop watching __builtin__ modifications
|
||||
PyDict_Unwatch(0, interp->builtins);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue