mirror of
https://github.com/python/cpython.git
synced 2025-08-24 10:45:53 +00:00
gh-112367: Only free perf trampoline arenas at shutdown (#112368)
Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
This commit is contained in:
parent
bfb576ee23
commit
a73aa48e6b
4 changed files with 39 additions and 6 deletions
|
@ -1797,6 +1797,7 @@ finalize_interp_clear(PyThreadState *tstate)
|
|||
_PyArg_Fini();
|
||||
_Py_ClearFileSystemEncoding();
|
||||
_PyPerfTrampoline_Fini();
|
||||
_PyPerfTrampoline_FreeArenas();
|
||||
}
|
||||
|
||||
finalize_interp_types(tstate->interp);
|
||||
|
@ -1854,7 +1855,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