mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
- Issue #2862: Make int and float freelist management consistent with other
freelists. Changes their CompactFreeList apis into ClearFreeList apis and calls them via gc.collect().
This commit is contained in:
parent
17f2e4acb9
commit
2fe77060eb
11 changed files with 62 additions and 107 deletions
|
@ -736,6 +736,8 @@ clear_freelists(void)
|
|||
(void)PyCFunction_ClearFreeList();
|
||||
(void)PyTuple_ClearFreeList();
|
||||
(void)PyUnicode_ClearFreeList();
|
||||
(void)PyInt_ClearFreeList();
|
||||
(void)PyFloat_ClearFreeList();
|
||||
}
|
||||
|
||||
/* This is the main function. Read this to understand how the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue