gh-111968: Use per-thread slice_cache in free-threading (gh-113972)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user