Skip to content

bpo-47045: Remove f_state field, and make ownership of _PyInterpreterFrame explicit. #31963

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

Merged
merged 12 commits into from
Mar 22, 2022

Conversation

markshannon
Copy link
Member

@markshannon markshannon commented Mar 17, 2022

The main purpose of this change is to avoid having to update f_state in the interpreter, with the ultimate aim of removing RESUME instructions.

However, removing f_state makes it difficult to handle clearing and freeing frames owned by generators and frame objects.
So, I've had to add the owner field to make it explicit who owns the memory in a _PyInterpreterFrame

Finally, we now track the kind of tracing event on the thread state. This seems to be necessary to maintain the semantics of frame.set_lineno.

https://bugs.python.org/issue47045

@markshannon markshannon added the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Mar 18, 2022
@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @markshannon for commit 1be0129 🤖

If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again.

@bedevere-bot bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Mar 18, 2022
@markshannon markshannon added the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Mar 21, 2022
@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @markshannon for commit 3cf7d0a 🤖

If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again.

@bedevere-bot bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Mar 21, 2022
@markshannon markshannon added the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Mar 22, 2022
@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @markshannon for commit 5225175 🤖

If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again.

@bedevere-bot bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Mar 22, 2022
@markshannon
Copy link
Member Author

Buildbot failures are unrelated to this PR.

@markshannon markshannon merged commit 49daf6d into python:main Mar 22, 2022
@markshannon markshannon deleted the remove-frame-fstate branch September 26, 2023 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants