summaryrefslogtreecommitdiffstats
path: root/Python/pylifecycle.c
diff options
context:
space:
mode:
authorPablo Galindo Salgado <Pablogsal@gmail.com>2023-12-01 16:05:31 (GMT)
committerGitHub <noreply@github.com>2023-12-01 16:05:31 (GMT)
commit11232c129942800a03ec93aae9ad6946f3ac8e9f (patch)
tree3c916fba11a6063e42a3a6782f34992808cef3b0 /Python/pylifecycle.c
parent4f919cf8b9ed07964e8b7b87a5a3e25b09b1ed9e (diff)
downloadcpython-11232c129942800a03ec93aae9ad6946f3ac8e9f.zip
cpython-11232c129942800a03ec93aae9ad6946f3ac8e9f.tar.gz
cpython-11232c129942800a03ec93aae9ad6946f3ac8e9f.tar.bz2
[3.12] gh-112367: Only free perf trampoline arenas at shutdown (GH-112368) (#112590)
(cherry picked from commit a73aa48e6bec900be7edd3431deaa5fc1d809e6f) Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
Diffstat (limited to 'Python/pylifecycle.c')
-rw-r--r--Python/pylifecycle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c
index ee0eb79..a0130fd 100644
--- a/Python/pylifecycle.c
+++ b/Python/pylifecycle.c
@@ -1755,6 +1755,7 @@ finalize_interp_clear(PyThreadState *tstate)
_Py_ClearFileSystemEncoding();
_Py_Deepfreeze_Fini();
_PyPerfTrampoline_Fini();
+ _PyPerfTrampoline_FreeArenas();
}
finalize_interp_types(tstate->interp);
@@ -1812,7 +1813,6 @@ Py_FinalizeEx(void)
*/
_PyAtExit_Call(tstate->interp);
- PyUnstable_PerfMapState_Fini();
/* Copy the core config, PyInterpreterState_Delete() free
the core config memory */