mirror of
https://github.com/python/cpython.git
synced 2025-08-29 05:05:03 +00:00
[3.12] gh-112367: Only free perf trampoline arenas at shutdown (GH-112368) (#112590)
(cherry picked from commit a73aa48e6b
)
Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
This commit is contained in:
parent
4f919cf8b9
commit
11232c1299
4 changed files with 38 additions and 5 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue