gh-125196: Add a free list to PyUnicodeWriter (#125227)

This commit is contained in:
Victor Stinner 2024-10-10 12:11:06 +02:00 committed by GitHub
parent 7a10cdec35
commit 1639d934b9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 12 additions and 4 deletions

View file

@ -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);
}
/*