Skip to content

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
@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