mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
GH-123516: Improve JIT memory consumption by invalidating cold executors (GH-124443)
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
This commit is contained in:
parent
23e812b84a
commit
65f1237098
14 changed files with 129 additions and 39 deletions
|
@ -1289,6 +1289,12 @@ _Py_HandlePending(PyThreadState *tstate)
|
|||
_Py_RunGC(tstate);
|
||||
}
|
||||
|
||||
if ((breaker & _PY_EVAL_JIT_INVALIDATE_COLD_BIT) != 0) {
|
||||
_Py_unset_eval_breaker_bit(tstate, _PY_EVAL_JIT_INVALIDATE_COLD_BIT);
|
||||
_Py_Executors_InvalidateCold(tstate->interp);
|
||||
tstate->interp->trace_run_counter = JIT_CLEANUP_THRESHOLD;
|
||||
}
|
||||
|
||||
/* GIL drop request */
|
||||
if ((breaker & _PY_GIL_DROP_REQUEST_BIT) != 0) {
|
||||
/* Give another thread a chance */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue