mirror of
https://github.com/python/cpython.git
synced 2026-02-06 09:50:43 +00:00
gh-144068: fix JIT tracer memory leak when daemon thread exits (GH-144077)
This commit is contained in:
parent
6f579147e3
commit
29840247ff
3 changed files with 28 additions and 0 deletions
|
|
@ -1843,6 +1843,10 @@ PyThreadState_Clear(PyThreadState *tstate)
|
|||
|
||||
_PyThreadState_ClearMimallocHeaps(tstate);
|
||||
|
||||
#ifdef _Py_TIER2
|
||||
_PyJit_TracerFree((_PyThreadStateImpl *)tstate);
|
||||
#endif
|
||||
|
||||
tstate->_status.cleared = 1;
|
||||
|
||||
// XXX Call _PyThreadStateSwap(runtime, NULL) here if "current".
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue