Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-81057: Move the Allocators to _PyRuntimeState #99217

Merged

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

@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 gh-81057: Move the Allocators to _PyRuntimeState Nov 7, 2022
@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 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-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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants