Skip to content

[3.12] GH-108390: Prevent non-local events being set with sys.monitoring.set_local_events() (GH-108420) #108899

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 4 commits into from
Sep 5, 2023

Conversation

markshannon
Copy link
Member

@markshannon markshannon commented Sep 5, 2023

@markshannon
Copy link
Member Author

#108420 (which this is a backport of) shrinks the local_monitors and active_monitors arrays in the code object.

For the backport only, I'm going to restore them to the original size. This wastes space, but maintains ABI compatibility.

@markshannon
Copy link
Member Author

@Yhg1s
As discussed on discord, the ABI changes are just renames. The _Py_Monitors struct has been renamed to _Py_LocalMonitors and _Py_GlobalMonitors depending on the context. The size and shape remain unchanged.

@Yhg1s Yhg1s enabled auto-merge (squash) September 5, 2023 10:57
@Yhg1s Yhg1s merged commit 7ee021f into python:3.12 Sep 5, 2023
@markshannon markshannon deleted the backport-108390 branch September 5, 2023 12:25
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.

4 participants