summaryrefslogtreecommitdiffstats
path: root/Include/internal/pycore_runtime_init.h
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2022-11-14 20:50:56 (GMT)
committerGitHub <noreply@github.com>2022-11-14 20:50:56 (GMT)
commita088290f9d53a6bd078de6ee67b2fa296fc1cc14 (patch)
treecd464c7ed31b1fd4ea145eaa8cb073a7fac70985 /Include/internal/pycore_runtime_init.h
parent619cadcda6a8ba4a038c1807b6566a90e25db934 (diff)
downloadcpython-a088290f9d53a6bd078de6ee67b2fa296fc1cc14.zip
cpython-a088290f9d53a6bd078de6ee67b2fa296fc1cc14.tar.gz
cpython-a088290f9d53a6bd078de6ee67b2fa296fc1cc14.tar.bz2
gh-81057: Move Global Variables Holding Objects to _PyRuntimeState. (gh-99487)
This moves nearly all remaining object-holding globals in core code (other than static types). https://github.com/python/cpython/issues/81057
Diffstat (limited to 'Include/internal/pycore_runtime_init.h')
-rw-r--r--Include/internal/pycore_runtime_init.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Include/internal/pycore_runtime_init.h b/Include/internal/pycore_runtime_init.h
index 38c1747..9a2aad2 100644
--- a/Include/internal/pycore_runtime_init.h
+++ b/Include/internal/pycore_runtime_init.h
@@ -36,6 +36,9 @@ extern "C" {
until _PyInterpreterState_Enable() is called. */ \
.next_id = -1, \
}, \
+ .types = { \
+ .next_version_tag = 1, \
+ }, \
.global_objects = { \
.singletons = { \
.small_ints = _Py_small_ints_INIT, \