summaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2022-11-11 16:30:46 -0700
committerGitHub <noreply@github.com>2022-11-11 16:30:46 -0700
commit67807cfc87135fdce4992d38d2ffe3e44747e73b (patch)
treec6723686f91afa7963e1ac72729a417f2067f7f9 /Tools
parent55c96e8053689c29ae28a9d2117ae37934eace68 (diff)
downloadcpython-git-67807cfc87135fdce4992d38d2ffe3e44747e73b.tar.gz
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
Diffstat (limited to 'Tools')
-rw-r--r--Tools/c-analyzer/cpython/globals-to-fix.tsv15
1 files changed, 1 insertions, 14 deletions
diff --git a/Tools/c-analyzer/cpython/globals-to-fix.tsv b/Tools/c-analyzer/cpython/globals-to-fix.tsv
index bb05a2c469..53d42b7401 100644
--- a/Tools/c-analyzer/cpython/globals-to-fix.tsv
+++ b/Tools/c-analyzer/cpython/globals-to-fix.tsv
@@ -415,21 +415,8 @@ Python/pathconfig.c - _Py_path_config -
#-----------------------
# state
-# allocator
-Objects/obmalloc.c - _PyObject_Arena -
+# object allocator
Objects/obmalloc.c - _Py_tracemalloc_config -
-Objects/obmalloc.c - arena_map_bot_count -
-Objects/obmalloc.c - arena_map_mid_count -
-Objects/obmalloc.c - arena_map_root -
-Objects/obmalloc.c - arenas -
-Objects/obmalloc.c - maxarenas -
-Objects/obmalloc.c - narenas_currently_allocated -
-Objects/obmalloc.c - narenas_highwater -
-Objects/obmalloc.c - nfp2lasta -
-Objects/obmalloc.c - ntimes_arena_allocated -
-Objects/obmalloc.c - raw_allocated_blocks -
-Objects/obmalloc.c - unused_arena_objects -
-Objects/obmalloc.c - usable_arenas -
Objects/obmalloc.c new_arena debug_stats -
# pre-allocated memory