mirror of
https://github.com/python/cpython.git
synced 2025-08-23 10:16:01 +00:00
gh-111968: Use per-thread slice_cache in free-threading (gh-113972)
This commit is contained in:
parent
44e47dfba5
commit
3eae76554b
7 changed files with 28 additions and 18 deletions
|
@ -1549,6 +1549,7 @@ PyThreadState_Clear(PyThreadState *tstate)
|
|||
// Each thread should clear own freelists in free-threading builds.
|
||||
_PyFreeListState *freelist_state = &((_PyThreadStateImpl*)tstate)->freelist_state;
|
||||
_Py_ClearFreeLists(freelist_state, 0);
|
||||
_PySlice_ClearCache(freelist_state);
|
||||
#endif
|
||||
|
||||
_PyThreadState_ClearMimallocHeaps(tstate);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue