mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
gh-126703: Add PyCFunction freelist (GH-128692)
This commit is contained in:
parent
561965fa5c
commit
29772b0647
4 changed files with 26 additions and 5 deletions
|
@ -942,6 +942,8 @@ _PyObject_ClearFreeLists(struct _Py_freelists *freelists, int is_finalization)
|
|||
}
|
||||
clear_freelist(&freelists->unicode_writers, is_finalization, PyMem_Free);
|
||||
clear_freelist(&freelists->ints, is_finalization, free_object);
|
||||
clear_freelist(&freelists->pycfunctionobject, is_finalization, PyObject_GC_Del);
|
||||
clear_freelist(&freelists->pycmethodobject, is_finalization, PyObject_GC_Del);
|
||||
clear_freelist(&freelists->pymethodobjects, is_finalization, free_object);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue