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

Remove the PyFrame_FastToLocals and PyFrame_LocalsToFast calls from the trampoline call_target. #337

Merged
merged 1 commit into from
Aug 26, 2024

Conversation

joerick
Copy link
Owner

@joerick joerick commented Aug 26, 2024

Fix #336

The trampoline function (which was copied from cpython sysmodule.c around 8 years ago) calls PyFrame_FastToLocals and PyFrame_LocalsToFast to allow python-level inspection of the frame objects. However, pyinstrument doesn't need this as the frame inspection is done in C now, and we actually would rather avoid mutating the frame object anyway.

@joerick joerick merged commit d178a77 into main Aug 26, 2024
27 checks passed
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.

Importing glom on Python3.12 fails
1 participant