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 /Python/pylifecycle.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 'Python/pylifecycle.c')
| -rw-r--r-- | Python/pylifecycle.c | 5 | 
1 files changed, 1 insertions, 4 deletions
diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c index ee9d698..1dbdbfd 100644 --- a/Python/pylifecycle.c +++ b/Python/pylifecycle.c @@ -1249,10 +1249,7 @@ flush_std_files(void)  static void  finalize_interp_types(PyThreadState *tstate, int is_main_interp)  { -    if (is_main_interp) { -        /* Sundry finalizers */ -        _PyFrame_Fini(); -    } +    _PyFrame_Fini(tstate);      _PyTuple_Fini(tstate);      if (is_main_interp) {          _PyList_Fini();  | 
