mirror of
https://github.com/python/cpython.git
synced 2026-01-22 23:28:43 +00:00
gh-141504: Refactor policy object into a single opt_config (gh-143644)
This commit is contained in:
parent
a73ba4d46e
commit
794f758cd8
8 changed files with 89 additions and 64 deletions
|
|
@ -48,8 +48,8 @@ _PyCode_Quicken(_Py_CODEUNIT *instructions, Py_ssize_t size, int enable_counters
|
|||
_Py_BackoffCounter jump_counter, adaptive_counter;
|
||||
if (enable_counters) {
|
||||
PyThreadState *tstate = _PyThreadState_GET();
|
||||
_PyThreadStateImpl *tstate_impl = (_PyThreadStateImpl *)tstate;
|
||||
jump_counter = initial_jump_backoff_counter(&tstate_impl->policy);
|
||||
PyInterpreterState *interp = tstate->interp;
|
||||
jump_counter = initial_jump_backoff_counter(&interp->opt_config);
|
||||
adaptive_counter = adaptive_counter_warmup();
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue