diff options
author | Victor Stinner <vstinner@python.org> | 2020-06-04 23:39:24 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-04 23:39:24 (GMT) |
commit | 3744ed2c9c0b3905947602fc375de49533790cb9 (patch) | |
tree | f2086f04a9edd9875c6f0ec2eb1f2f0d6e85aa41 /Modules/gcmodule.c | |
parent | 7daba6f221e713f7f60c613b246459b07d179f91 (diff) | |
download | cpython-3744ed2c9c0b3905947602fc375de49533790cb9.zip cpython-3744ed2c9c0b3905947602fc375de49533790cb9.tar.gz cpython-3744ed2c9c0b3905947602fc375de49533790cb9.tar.bz2 |
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".
Diffstat (limited to 'Modules/gcmodule.c')
-rw-r--r-- | Modules/gcmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/gcmodule.c b/Modules/gcmodule.c index 0bad0f8..45dc89d 100644 --- a/Modules/gcmodule.c +++ b/Modules/gcmodule.c @@ -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(); |