mirror of
https://github.com/python/cpython.git
synced 2025-08-22 17:55:18 +00: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
|
@ -676,8 +676,6 @@ pycore_init_global_objects(PyInterpreterState *interp)
|
|||
{
|
||||
PyStatus status;
|
||||
|
||||
_PyLong_InitGlobalObjects(interp);
|
||||
|
||||
_PyFloat_InitState(interp);
|
||||
|
||||
status = _PyBytes_InitGlobalObjects(interp);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue