diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2021-12-14 01:04:05 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-14 01:04:05 (GMT) |
commit | 121f1f893a39d0b58d3d2b5597505c154ecaac2a (patch) | |
tree | 2efda2489f892c98015cf80763369ea4f3505666 /PCbuild | |
parent | cb589d1b6bad4b75852c2e2a471a3800d5efdca7 (diff) | |
download | cpython-121f1f893a39d0b58d3d2b5597505c154ecaac2a.zip cpython-121f1f893a39d0b58d3d2b5597505c154ecaac2a.tar.gz cpython-121f1f893a39d0b58d3d2b5597505c154ecaac2a.tar.bz2 |
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
Diffstat (limited to 'PCbuild')
-rw-r--r-- | PCbuild/pythoncore.vcxproj | 2 | ||||
-rw-r--r-- | PCbuild/pythoncore.vcxproj.filters | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/PCbuild/pythoncore.vcxproj b/PCbuild/pythoncore.vcxproj index 098cc21..83ae2f0 100644 --- a/PCbuild/pythoncore.vcxproj +++ b/PCbuild/pythoncore.vcxproj @@ -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" /> diff --git a/PCbuild/pythoncore.vcxproj.filters b/PCbuild/pythoncore.vcxproj.filters index c995957..cc0a2b0 100644 --- a/PCbuild/pythoncore.vcxproj.filters +++ b/PCbuild/pythoncore.vcxproj.filters @@ -549,6 +549,9 @@ <ClInclude Include="..\Include\internal\pycore_gil.h"> <Filter>Include\internal</Filter> </ClInclude> + <ClInclude Include="..\Include\internal\pycore_global_objects.h"> + <Filter>Include\internal</Filter> + </ClInclude> <ClInclude Include="..\Include\internal\pycore_hamt.h"> <Filter>Include\internal</Filter> </ClInclude> @@ -573,9 +576,6 @@ <ClInclude Include="..\Include\internal\pycore_long.h"> <Filter>Include\internal</Filter> </ClInclude> - <ClInclude Include="..\Include\internal\pycore_long_state.h"> - <Filter>Include\internal</Filter> - </ClInclude> <ClInclude Include="..\Include\internal\pycore_moduleobject.h"> <Filter>Include\internal</Filter> </ClInclude> |