Skip to content

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

Merged
joerick merged 1 commit intomainfrom
fix-locals-bug
Aug 26, 2024
Merged

Remove the PyFrame_FastToLocals and PyFrame_LocalsToFast calls from the trampoline call_target.#337
joerick merged 1 commit intomainfrom
fix-locals-bug

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.

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