diff options
| author | Guido van Rossum <guido@python.org> | 2024-03-18 18:11:10 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-18 18:11:10 (GMT) |
| commit | 7e1f38f2de8f93de362433203faa5605a0c47f0e (patch) | |
| tree | af7b0edad82614c2e8f646934fad5286e1211723 /Python/pystate.c | |
| parent | 76d086890790f1bfbe05d12e02cadb539db5b0b1 (diff) | |
| download | cpython-7e1f38f2de8f93de362433203faa5605a0c47f0e.zip cpython-7e1f38f2de8f93de362433203faa5605a0c47f0e.tar.gz cpython-7e1f38f2de8f93de362433203faa5605a0c47f0e.tar.bz2 | |
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`.
Diffstat (limited to 'Python/pystate.c')
| -rw-r--r-- | Python/pystate.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Python/pystate.c b/Python/pystate.c index 9f14222..eedcb92 100644 --- a/Python/pystate.c +++ b/Python/pystate.c @@ -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. */ |
