bpo-40521: Make float free list per-interpreter by vstinner · Pull Request #20636 · python/cpython
-
-
Notifications
You must be signed in to change notification settings - Fork 34.8k
Conversation
Each interpreter now has its own float free list:
- Move tuple numfree and free_list into PyInterpreterState.
- Add _Py_float_state structure.
- Add tstate parameter to _PyFloat_ClearFreeList()
and _PyFloat_Fini().
Each interpreter now has its own float free list: * Move tuple numfree and free_list into PyInterpreterState. * Add _Py_float_state structure. * Add tstate parameter to _PyFloat_ClearFreeList() and _PyFloat_Fini().
There no reference leak on the following tests which use subinterpreters:
./python -m test -j0 -R 3:3 test_capi test__xxsubinterpreters test_atexit test_threading
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters