mirror of
https://github.com/python/cpython.git
synced 2025-08-14 22:01:08 +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
|
@ -86,10 +86,9 @@ Floating Point Objects
|
|||
.. versionadded:: 2.6
|
||||
|
||||
|
||||
.. cfunction:: void PyFloat_CompactFreeList(size_t *bc, size_t *bf, size_t *sum)
|
||||
.. cfunction:: int PyFloat_ClearFreeList(void)
|
||||
|
||||
Compact the float free list. *bc* is the number of allocated blocks before
|
||||
blocks are freed, *bf* is the number of freed blocks and *sum* is the number
|
||||
of remaining objects in the blocks.
|
||||
Clear the float free list. Return the number of items that could not
|
||||
be freed.
|
||||
|
||||
.. versionadded:: 2.6
|
||||
|
|
|
@ -122,10 +122,9 @@ Plain Integer Objects
|
|||
(:const:`LONG_MAX`, as defined in the system header files).
|
||||
|
||||
|
||||
.. cfunction:: void PyInt_CompactFreeList(size_t *bc, size_t *bf, size_t *sum)
|
||||
.. cfunction:: int PyInt_ClearFreeList(void)
|
||||
|
||||
Compact the integer free list. *bc* is the number of allocated blocks before
|
||||
blocks are freed, *bf* is the number of freed blocks and *sum* is the number
|
||||
of remaining objects in the blocks.
|
||||
Clear the integer free list. Return the number of items that could not
|
||||
be freed.
|
||||
|
||||
.. versionadded:: 2.6
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue