Skip to content

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

@ericsnowcurrentlyericsnowcurrently 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
@ericsnowcurrentlyericsnowcurrentlyforce-pushed the move-allocators-to-runtime-state branch from 124ad70 to 02256e9CompareNovember 7, 2022 21:31
@ericsnowcurrentlyericsnowcurrently marked this pull request as draft November 7, 2022 21:33
@ericsnowcurrentlyericsnowcurrentlyforce-pushed the move-allocators-to-runtime-state branch 2 times, most recently from 9ab2bfc to edcd287CompareNovember 8, 2022 01:24
@ericsnowcurrentlyericsnowcurrently removed the request for review from a teamNovember 8, 2022 01:29
@ericsnowcurrentlyericsnowcurrentlyforce-pushed the move-allocators-to-runtime-state branch from edcd287 to aa8c9cbCompareNovember 8, 2022 18:58
@ericsnowcurrentlyericsnowcurrentlyforce-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

🤖 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
@ericsnowcurrentlyericsnowcurrently marked this pull request as ready for review November 10, 2022 17:33
@ericsnowcurrentlyericsnowcurrently merged commit 67807cf into python:mainNov 11, 2022
@ericsnowcurrentlyericsnowcurrently 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