mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
bpo-40521: Make frame free list per-interpreter (GH-20638)
Each interpreter now has its own frame free list: * Move frame free list into PyInterpreterState. * Add _Py_frame_state structure. * Add tstate parameter to _PyFrame_ClearFreeList() and _PyFrame_Fini(). * Remove "#if PyFrame_MAXFREELIST > 0". * Remove "#ifdef EXPERIMENTAL_ISOLATED_SUBINTERPRETERS".
This commit is contained in:
parent
7daba6f221
commit
3744ed2c9c
7 changed files with 51 additions and 59 deletions
|
|
@ -1026,7 +1026,7 @@ static void
|
|||
clear_freelists(void)
|
||||
{
|
||||
PyThreadState *tstate = _PyThreadState_GET();
|
||||
_PyFrame_ClearFreeList();
|
||||
_PyFrame_ClearFreeList(tstate);
|
||||
_PyTuple_ClearFreeList(tstate);
|
||||
_PyFloat_ClearFreeList(tstate);
|
||||
_PyList_ClearFreeList();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue