Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-116916: Remove separate next_func_version counter #116918

Merged
merged 1 commit into from
Mar 18, 2024

Conversation

gvanrossum
Copy link
Member

@gvanrossum gvanrossum commented Mar 16, 2024

This removes the separate next_func_version counter from the interpreter state, and uses interp->func_state.next_version instead to initialize code objects' co_version field.

@gvanrossum gvanrossum merged commit 7e1f38f into python:main Mar 18, 2024
37 of 38 checks passed
@gvanrossum gvanrossum deleted the remove-next-func-version branch March 18, 2024 18:11
vstinner pushed a commit to vstinner/cpython that referenced this pull request Mar 20, 2024
…6918)

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`.
adorilson pushed a commit to adorilson/cpython that referenced this pull request Mar 25, 2024
…6918)

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`.
diegorusso pushed a commit to diegorusso/cpython that referenced this pull request Apr 17, 2024
…6918)

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`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants