diff options
author | Gregory P. Smith <greg@mad-scientist.com> | 2008-07-06 03:35:58 (GMT) |
---|---|---|
committer | Gregory P. Smith <greg@mad-scientist.com> | 2008-07-06 03:35:58 (GMT) |
commit | 2fe77060eb2b322da925b50ffe3c471258736cee (patch) | |
tree | 0966f7b98ec52c58f6c58cf42ec75237c72dda0b /Doc/c-api/int.rst | |
parent | 17f2e4acb963268fe8b3c4e822f33d9372460607 (diff) | |
download | cpython-2fe77060eb2b322da925b50ffe3c471258736cee.zip cpython-2fe77060eb2b322da925b50ffe3c471258736cee.tar.gz cpython-2fe77060eb2b322da925b50ffe3c471258736cee.tar.bz2 |
- 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().
Diffstat (limited to 'Doc/c-api/int.rst')
-rw-r--r-- | Doc/c-api/int.rst | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Doc/c-api/int.rst b/Doc/c-api/int.rst index 94bf380..ef82100 100644 --- a/Doc/c-api/int.rst +++ b/Doc/c-api/int.rst @@ -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 |