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

gh-81057: Move the Allocators to _PyRuntimeState#99217
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 ownerNovember 7, 2022 21:23
@ericsnowcurrentlyericsnowcurrently self-assigned this Nov 7, 2022
@ericsnowcurrentlyericsnowcurrently changed the title Move the Allocators to _PyRuntimeStategh-81057: Move the Allocators to _PyRuntimeStateNov 7, 2022
@ericsnowcurrently
ericsnowcurrentlyforce-pushed the move-allocators-to-runtime-state branch from 124ad70 to 02256e9CompareNovember 7, 2022 21:31
@ericsnowcurrently
ericsnowcurrently marked this pull request as draft November 7, 2022 21:33
@ericsnowcurrently
ericsnowcurrentlyforce-pushed the move-allocators-to-runtime-state branch 2 times, most recently from 9ab2bfc to edcd287CompareNovember 8, 2022 01:24
@ericsnowcurrently
ericsnowcurrently removed the request for review from a teamNovember 8, 2022 01:29
@ericsnowcurrently
ericsnowcurrentlyforce-pushed the move-allocators-to-runtime-state branch from edcd287 to aa8c9cbCompareNovember 8, 2022 18:58
@ericsnowcurrently
ericsnowcurrentlyforce-pushed the move-allocators-to-runtime-state branch from aa8c9cb to 3172cbeCompareNovember 8, 2022 20:46
@ericsnowcurrentlyericsnowcurrently 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-botbedevere-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:mainNov 11, 2022
@ericsnowcurrently
ericsnowcurrently deleted the move-allocators-to-runtime-state branch November 11, 2022 23:30
Sign up for freeto 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

@ericsnowcurrently@bedevere-bot