diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2022-11-14 22:56:16 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-14 22:56:16 (GMT) |
commit | e874c2f1986ee01f53a9d9bdf26fa6979d8a6d35 (patch) | |
tree | ba3afc8d69a7701643bb59a9441e1766993c33a7 /Include/internal/pycore_runtime_init.h | |
parent | 4e4b13e8f6211abbc0d53056da11357756daa314 (diff) | |
download | cpython-e874c2f1986ee01f53a9d9bdf26fa6979d8a6d35.zip cpython-e874c2f1986ee01f53a9d9bdf26fa6979d8a6d35.tar.gz cpython-e874c2f1986ee01f53a9d9bdf26fa6979d8a6d35.tar.bz2 |
gh-81057: Move the Remaining Import State Globals to _PyRuntimeState (gh-99488)
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 | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Include/internal/pycore_runtime_init.h b/Include/internal/pycore_runtime_init.h index 9a2aad2..ea98c37 100644 --- a/Include/internal/pycore_runtime_init.h +++ b/Include/internal/pycore_runtime_init.h @@ -39,6 +39,16 @@ extern "C" { .types = { \ .next_version_tag = 1, \ }, \ + .imports = { \ + .lock = { \ + .mutex = NULL, \ + .thread = PYTHREAD_INVALID_THREAD_ID, \ + .level = 0, \ + }, \ + .find_and_load = { \ + .header = 1, \ + }, \ + }, \ .global_objects = { \ .singletons = { \ .small_ints = _Py_small_ints_INIT, \ |