mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
bpo-45953: Statically initialize the small ints. (gh-30092)
The array of small PyLong objects has been statically declared. Here I also statically initialize them. Consequently they are no longer initialized dynamically during runtime init. I've also moved them under a new sub-struct in _PyRuntimeState, in preparation for static allocation and initialization of other global objects. https://bugs.python.org/issue45953
This commit is contained in:
parent
cb589d1b6b
commit
121f1f893a
9 changed files with 360 additions and 81 deletions
|
|
@ -213,6 +213,7 @@
|
|||
<ClInclude Include="..\Include\internal\pycore_genobject.h" />
|
||||
<ClInclude Include="..\Include\internal\pycore_getopt.h" />
|
||||
<ClInclude Include="..\Include\internal\pycore_gil.h" />
|
||||
<ClInclude Include="..\Include\internal\pycore_global_objects.h" />
|
||||
<ClInclude Include="..\Include\internal\pycore_hamt.h" />
|
||||
<ClInclude Include="..\Include\internal\pycore_hashtable.h" />
|
||||
<ClInclude Include="..\Include\internal\pycore_import.h" />
|
||||
|
|
@ -221,7 +222,6 @@
|
|||
<ClInclude Include="..\Include\internal\pycore_interpreteridobject.h" />
|
||||
<ClInclude Include="..\Include\internal\pycore_list.h" />
|
||||
<ClInclude Include="..\Include\internal\pycore_long.h" />
|
||||
<ClInclude Include="..\Include\internal\pycore_long_state.h" />
|
||||
<ClInclude Include="..\Include\internal\pycore_moduleobject.h" />
|
||||
<ClInclude Include="..\Include\internal\pycore_namespace.h" />
|
||||
<ClInclude Include="..\Include\internal\pycore_object.h" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue