Skip to content

gh-81057: Move the Allocators to _PyRuntimeState - #99217

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

ericsnowcurrently merged 19 commits into
python:mainfrom
ericsnowcurrently:move-allocators-to-runtime-state

Conversation

@ericsnowcurrently

Copy link
Copy Markdown
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.)

@ericsnowcurrently
ericsnowcurrently requested a review from a team as a code owner November 7, 2022 21:23
@ericsnowcurrently ericsnowcurrently self-assigned this Nov 7, 2022
@ericsnowcurrently ericsnowcurrently changed the title Move the Allocators to _PyRuntimeState Nov 7, 2022
@ericsnowcurrently
ericsnowcurrently force-pushed the move-allocators-to-runtime-state branch from 124ad70 to 02256e9 Compare November 7, 2022 21:31
@ericsnowcurrently
ericsnowcurrently marked this pull request as draft November 7, 2022 21:33
@ericsnowcurrently
ericsnowcurrently force-pushed the move-allocators-to-runtime-state branch 2 times, most recently from 9ab2bfc to edcd287 Compare November 8, 2022 01:24
@ericsnowcurrently
ericsnowcurrently removed the request for review from a team November 8, 2022 01:29
@ericsnowcurrently
ericsnowcurrently force-pushed the move-allocators-to-runtime-state branch from edcd287 to aa8c9cb Compare November 8, 2022 18:58
@ericsnowcurrently
ericsnowcurrently force-pushed the move-allocators-to-runtime-state branch from aa8c9cb to 3172cbe Compare November 8, 2022 20:46
@ericsnowcurrently ericsnowcurrently added the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Nov 9, 2022
@bedevere-bot

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @ericsnowcurrently for commit 5262207 🤖

If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again.

@bedevere-bot bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Nov 9, 2022
@ericsnowcurrently
ericsnowcurrently marked this pull request as ready for review November 10, 2022 17:33
@ericsnowcurrently
ericsnowcurrently merged commit 67807cf into python:main Nov 11, 2022
@ericsnowcurrently
ericsnowcurrently deleted the move-allocators-to-runtime-state branch November 11, 2022 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants