mirror of
https://github.com/python/cpython.git
synced 2026-05-07 05:01:13 -04:00
gh-144068: fix JIT tracer memory leak when daemon thread exits (GH-144077)
This commit is contained in:
@@ -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".
|
||||
|
||||
Reference in New Issue
Block a user