mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +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
|
@ -4836,6 +4836,14 @@ dummy_func(
|
|||
assert(((_PyExecutorObject *)executor)->vm_data.valid);
|
||||
}
|
||||
|
||||
tier2 op(_MAKE_WARM, (--)) {
|
||||
current_executor->vm_data.warm = true;
|
||||
// It's okay if this ends up going negative.
|
||||
if (--tstate->interp->trace_run_counter == 0) {
|
||||
_Py_set_eval_breaker_bit(tstate, _PY_EVAL_JIT_INVALIDATE_COLD_BIT);
|
||||
}
|
||||
}
|
||||
|
||||
tier2 op(_FATAL_ERROR, (--)) {
|
||||
assert(0);
|
||||
Py_FatalError("Fatal error uop executed.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue