mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
gh-111968: Use per-thread freelists for tuple in free-threading (gh-113921)
This commit is contained in:
parent
8717f7b495
commit
2e7577b622
8 changed files with 45 additions and 70 deletions
|
@ -14,7 +14,6 @@
|
|||
void
|
||||
_PyGC_ClearAllFreeLists(PyInterpreterState *interp)
|
||||
{
|
||||
_PyTuple_ClearFreeList(interp);
|
||||
_PyDict_ClearFreeList(interp);
|
||||
_PyAsyncGen_ClearFreeLists(interp);
|
||||
_PyContext_ClearFreeList(interp);
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
void
|
||||
_PyGC_ClearAllFreeLists(PyInterpreterState *interp)
|
||||
{
|
||||
_PyTuple_ClearFreeList(interp);
|
||||
_PyDict_ClearFreeList(interp);
|
||||
_PyAsyncGen_ClearFreeLists(interp);
|
||||
_PyContext_ClearFreeList(interp);
|
||||
|
|
|
@ -1752,13 +1752,13 @@ finalize_interp_types(PyInterpreterState *interp)
|
|||
_PyUnicode_ClearInterned(interp);
|
||||
|
||||
_PyDict_Fini(interp);
|
||||
_PyTuple_Fini(interp);
|
||||
|
||||
_PySlice_Fini(interp);
|
||||
|
||||
_PyUnicode_Fini(interp);
|
||||
|
||||
_PyFreeListState *state = _PyFreeListState_GET();
|
||||
_PyTuple_Fini(state);
|
||||
_PyList_Fini(state);
|
||||
_PyFloat_Fini(state);
|
||||
|
||||
|
|
|
@ -1459,6 +1459,7 @@ void
|
|||
_Py_ClearFreeLists(_PyFreeListState *state, int is_finalization)
|
||||
{
|
||||
_PyFloat_ClearFreeList(state, is_finalization);
|
||||
_PyTuple_ClearFreeList(state, is_finalization);
|
||||
_PyList_ClearFreeList(state, is_finalization);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue