mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
gh-126703: Add freelist for PyComplexObject's (gh-135233)
This commit is contained in:
parent
eed827ed09
commit
c646846c1e
3 changed files with 25 additions and 6 deletions
|
@ -925,6 +925,7 @@ _PyObject_ClearFreeLists(struct _Py_freelists *freelists, int is_finalization)
|
|||
// In the free-threaded build, freelists are per-PyThreadState and cleared in PyThreadState_Clear()
|
||||
// In the default build, freelists are per-interpreter and cleared in finalize_interp_types()
|
||||
clear_freelist(&freelists->floats, is_finalization, free_object);
|
||||
clear_freelist(&freelists->complexes, is_finalization, free_object);
|
||||
for (Py_ssize_t i = 0; i < PyTuple_MAXSAVESIZE; i++) {
|
||||
clear_freelist(&freelists->tuples[i], is_finalization, free_object);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue