Skip to content

gh-81057: Move the Allocators to _PyRuntimeState#99217

Merged
ericsnowcurrently merged 19 commits intopython:mainfrom
ericsnowcurrently:move-allocators-to-runtime-state
Nov 11, 2022
Merged

gh-81057: Move the Allocators to _PyRuntimeState#99217
ericsnowcurrently merged 19 commits intopython:mainfrom
ericsnowcurrently:move-allocators-to-runtime-state

Conversation

@ericsnowcurrently
Copy link
Member

The global allocators were stored in 3 static global variables: _PyMem_Raw, _PyMem, and _PyObject. State for the "small block" allocator was stored in another 13. That makes a total of 16 global variables. We are moving all 16 to the _PyRuntimeState struct as part of the work for gh-81057. (If PEP 684 is accepted then we will follow up by moving them all to PyInterpreterState.)

Loading
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.

2 participants