mirror of
https://github.com/python/cpython.git
synced 2025-12-10 11:00:14 +00:00
gh-125196: Add a free list to PyUnicodeWriter (#125227)
This commit is contained in:
parent
7a10cdec35
commit
1639d934b9
3 changed files with 12 additions and 4 deletions
|
|
@ -862,6 +862,7 @@ _PyObject_ClearFreeLists(struct _Py_freelists *freelists, int is_finalization)
|
|||
// stacks during GC, so emptying the free-list is counterproductive.
|
||||
clear_freelist(&freelists->object_stack_chunks, 1, PyMem_RawFree);
|
||||
}
|
||||
clear_freelist(&freelists->unicode_writers, is_finalization, PyMem_Free);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue