diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2022-11-14 20:50:56 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-14 20:50:56 (GMT) |
commit | a088290f9d53a6bd078de6ee67b2fa296fc1cc14 (patch) | |
tree | cd464c7ed31b1fd4ea145eaa8cb073a7fac70985 /Include/internal/pycore_runtime_init.h | |
parent | 619cadcda6a8ba4a038c1807b6566a90e25db934 (diff) | |
download | cpython-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.h | 3 |
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, \ |