diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2021-12-13 18:04:05 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-13 18:04:05 -0700 |
commit | 121f1f893a39d0b58d3d2b5597505c154ecaac2a (patch) | |
tree | 2efda2489f892c98015cf80763369ea4f3505666 /Python | |
parent | cb589d1b6bad4b75852c2e2a471a3800d5efdca7 (diff) | |
download | cpython-git-121f1f893a39d0b58d3d2b5597505c154ecaac2a.tar.gz |
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')
-rw-r--r-- | Python/pylifecycle.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c index a9eb38775c..22281a3119 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); |