-
- Downloads
gh-81057: Move the Allocators to _PyRuntimeState (gh-99217)
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.) https://github.com/python/cpython/issues/81057
Showing
- Include/internal/pycore_obmalloc.h 689 additions, 0 deletionsInclude/internal/pycore_obmalloc.h
- Include/internal/pycore_obmalloc_init.h 68 additions, 0 deletionsInclude/internal/pycore_obmalloc_init.h
- Include/internal/pycore_pymem.h 21 additions, 14 deletionsInclude/internal/pycore_pymem.h
- Include/internal/pycore_pymem_init.h 85 additions, 0 deletionsInclude/internal/pycore_pymem_init.h
- Include/internal/pycore_runtime.h 5 additions, 0 deletionsInclude/internal/pycore_runtime.h
- Include/internal/pycore_runtime_init.h 9 additions, 1 deletionInclude/internal/pycore_runtime_init.h
- Makefile.pre.in 3 additions, 0 deletionsMakefile.pre.in
- Misc/NEWS.d/next/Core and Builtins/2022-11-07-14-16-59.gh-issue-81057.3uKlLQ.rst 3 additions, 0 deletions...nd Builtins/2022-11-07-14-16-59.gh-issue-81057.3uKlLQ.rst
- Objects/obmalloc.c 202 additions, 868 deletionsObjects/obmalloc.c
- PCbuild/pythoncore.vcxproj 3 additions, 0 deletionsPCbuild/pythoncore.vcxproj
- PCbuild/pythoncore.vcxproj.filters 9 additions, 0 deletionsPCbuild/pythoncore.vcxproj.filters
- Python/pylifecycle.c 1 addition, 1 deletionPython/pylifecycle.c
- Python/pystate.c 5 additions, 2 deletionsPython/pystate.c
- Tools/c-analyzer/cpython/globals-to-fix.tsv 1 addition, 14 deletionsTools/c-analyzer/cpython/globals-to-fix.tsv
Loading
Please register or sign in to comment