FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-81057: Move the Allocators to _PyRuntimeState by ericsnowcurrently · Pull Request #99217 · python/cpython · GitHub

/ cpython Public

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

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

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 removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Nov 9, 2022
ericsnowcurrently marked this pull request as ready for review November 10, 2022 17:33
ericsnowcurrently merged commit 67807cf into python:main Nov 11, 2022
ericsnowcurrently deleted the move-allocators-to-runtime-state branch November 11, 2022 23:30
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL