summaryrefslogtreecommitdiffstats
path: root/Include/internal/pycore_runtime_init.h
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2022-11-15 16:45:11 (GMT)
committerGitHub <noreply@github.com>2022-11-15 16:45:11 (GMT)
commit3c57971a2d3b6d2c6fd1f525ba2108fccb35add2 (patch)
tree697c28707c62e43c9a444af3069304b8fad2e54b /Include/internal/pycore_runtime_init.h
parent73943cbc4c5e97f71b76150c549d07e8ed00066b (diff)
downloadcpython-3c57971a2d3b6d2c6fd1f525ba2108fccb35add2.zip
cpython-3c57971a2d3b6d2c6fd1f525ba2108fccb35add2.tar.gz
cpython-3c57971a2d3b6d2c6fd1f525ba2108fccb35add2.tar.bz2
gh-81057: Move Globals in Core Code to _PyRuntimeState (gh-99496)
This is the first of several changes to consolidate non-object globals in core code. https://github.com/python/cpython/issues/81057
Diffstat (limited to 'Include/internal/pycore_runtime_init.h')
-rw-r--r--Include/internal/pycore_runtime_init.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Include/internal/pycore_runtime_init.h b/Include/internal/pycore_runtime_init.h
index 62d5063..6bdee36 100644
--- a/Include/internal/pycore_runtime_init.h
+++ b/Include/internal/pycore_runtime_init.h
@@ -36,6 +36,10 @@ extern "C" {
until _PyInterpreterState_Enable() is called. */ \
.next_id = -1, \
}, \
+ .tracemalloc = { \
+ .config = _PyTraceMalloc_Config_INIT, \
+ }, \
+ .dtoa = _dtoa_runtime_state_INIT(runtime), \
.types = { \
.next_version_tag = 1, \
}, \