Skip to content

gh-81057: Add PyInterpreterState.static_objects - #99397

Merged
ericsnowcurrently merged 4 commits into
python:mainfrom
ericsnowcurrently:per-interpreter-static-objects
Nov 11, 2022
Merged

ericsnowcurrently merged 4 commits into
python:mainfrom
ericsnowcurrently:per-interpreter-static-objects

Conversation

@ericsnowcurrently

@ericsnowcurrently ericsnowcurrently commented Nov 11, 2022 •

Copy link
Copy Markdown
Member

As we consolidate global variables, we find some objects that are almost suitable to add to _PyRuntimeState.global_objects, but have some small/sneaky bit of per-interpreter state (e.g. a weakref list). We're adding PyInterpreterState.static_objects so we can move such objects there. (We'll removed the _not_used field once we've added others.)

@ericsnowcurrently
ericsnowcurrently merged commit f531b68 into python:main Nov 11, 2022
@ericsnowcurrently
ericsnowcurrently deleted the per-interpreter-static-objects branch November 11, 2022 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants