mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
gh-116916: Remove separate next_func_version counter (#116918)
Somehow we ended up with two separate counter variables tracking "the next function version". Most likely this was a historical accident where an old branch was updated incorrectly. This PR merges the two counters into a single one: `interp->func_state.next_version`.
This commit is contained in:
parent
76d0868907
commit
7e1f38f2de
4 changed files with 7 additions and 9 deletions
|
@ -630,7 +630,6 @@ init_interpreter(PyInterpreterState *interp,
|
|||
interp->sys_profile_initialized = false;
|
||||
interp->sys_trace_initialized = false;
|
||||
(void)_Py_SetOptimizer(interp, NULL);
|
||||
interp->next_func_version = 1;
|
||||
interp->executor_list_head = NULL;
|
||||
if (interp != &runtime->_main_interpreter) {
|
||||
/* Fix the self-referential, statically initialized fields. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue