summaryrefslogtreecommitdiffstats
path: root/Modules/gcmodule.c
diff options
context:
space:
mode:
authorGregory P. Smith <greg@mad-scientist.com>2008-07-06 03:35:58 (GMT)
committerGregory P. Smith <greg@mad-scientist.com>2008-07-06 03:35:58 (GMT)
commit2fe77060eb2b322da925b50ffe3c471258736cee (patch)
tree0966f7b98ec52c58f6c58cf42ec75237c72dda0b /Modules/gcmodule.c
parent17f2e4acb963268fe8b3c4e822f33d9372460607 (diff)
downloadcpython-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 'Modules/gcmodule.c')
-rw-r--r--Modules/gcmodule.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/gcmodule.c b/Modules/gcmodule.c
index 4f8c85f..b8f9c31 100644
--- a/Modules/gcmodule.c
+++ b/Modules/gcmodule.c
@@ -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