summaryrefslogtreecommitdiff
path: root/Tools/build/generate_global_objects.py
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2022-11-16 09:54:28 -0700
committerGitHub <noreply@github.com>2022-11-16 09:54:28 -0700
commit01fa907aa8e7c475a76b407f35c635b26c9f47f8 (patch)
treeedf9fe0b39615dcb616ea11046c39a0c0180a7f0 /Tools/build/generate_global_objects.py
parent5f55067e238c21de25f09ece9bb24ae8c42d02b4 (diff)
downloadcpython-git-01fa907aa8e7c475a76b407f35c635b26c9f47f8.tar.gz
gh-81057: Move contextvars-related Globals to _PyRuntimeState (gh-99400)
This is part of the effort to consolidate global variables, to make them easier to manage (and make it easier to later move some of them to PyInterpreterState). https://github.com/python/cpython/issues/81057
Diffstat (limited to 'Tools/build/generate_global_objects.py')
-rw-r--r--Tools/build/generate_global_objects.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Tools/build/generate_global_objects.py b/Tools/build/generate_global_objects.py
index b4243273ff..9ceae89878 100644
--- a/Tools/build/generate_global_objects.py
+++ b/Tools/build/generate_global_objects.py
@@ -127,6 +127,9 @@ NON_GENERATED_IMMORTAL_OBJECTS = [
# The generated ones come from generate_runtime_init().
'(PyObject *)&_Py_SINGLETON(bytes_empty)',
'(PyObject *)&_Py_SINGLETON(tuple_empty)',
+ '(PyObject *)&_Py_SINGLETON(hamt_bitmap_node_empty)',
+ '(PyObject *)&_Py_INTERP_SINGLETON(interp, hamt_empty)',
+ '(PyObject *)&_Py_SINGLETON(context_token_missing)',
]