summaryrefslogtreecommitdiffstats
path: root/Python/pylifecycle.c
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2021-12-14 01:04:05 (GMT)
committerGitHub <noreply@github.com>2021-12-14 01:04:05 (GMT)
commit121f1f893a39d0b58d3d2b5597505c154ecaac2a (patch)
tree2efda2489f892c98015cf80763369ea4f3505666 /Python/pylifecycle.c
parentcb589d1b6bad4b75852c2e2a471a3800d5efdca7 (diff)
downloadcpython-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 'Python/pylifecycle.c')
-rw-r--r--Python/pylifecycle.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c
index a9eb387..22281a3 100644
--- a/Python/pylifecycle.c
+++ b/Python/pylifecycle.c
@@ -676,8 +676,6 @@ pycore_init_global_objects(PyInterpreterState *interp)
{
PyStatus status;
- _PyLong_InitGlobalObjects(interp);
-
_PyFloat_InitState(interp);
status = _PyBytes_InitGlobalObjects(interp);