summaryrefslogtreecommitdiffstats
path: root/Modules/gcmodule.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2019-11-20 11:59:12 (GMT)
committerGitHub <noreply@github.com>2019-11-20 11:59:12 (GMT)
commit4dedd0f0ddc5a983a57bf0105eb34f948a91d2c4 (patch)
tree9b78468c58157901a86b70427eb97344b22634a4 /Modules/gcmodule.c
parent7247407c35330f3f6292f1d40606b7ba6afd5700 (diff)
downloadcpython-4dedd0f0ddc5a983a57bf0105eb34f948a91d2c4.zip
cpython-4dedd0f0ddc5a983a57bf0105eb34f948a91d2c4.tar.gz
cpython-4dedd0f0ddc5a983a57bf0105eb34f948a91d2c4.tar.bz2
bpo-37340: Remove PyMethod_ClearFreeList() and PyCFunction_ClearFreeList() (GH-17284)
Remove PyMethod_ClearFreeList() and PyCFunction_ClearFreeList() functions: the free lists of bound method objects have been removed. Remove also _PyMethod_Fini() and _PyCFunction_Fini() functions.
Diffstat (limited to 'Modules/gcmodule.c')
-rw-r--r--Modules/gcmodule.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/Modules/gcmodule.c b/Modules/gcmodule.c
index 967bbe9..d232179 100644
--- a/Modules/gcmodule.c
+++ b/Modules/gcmodule.c
@@ -1029,9 +1029,7 @@ delete_garbage(PyThreadState *tstate, GCState *gcstate,
static void
clear_freelists(void)
{
- (void)PyMethod_ClearFreeList();
(void)PyFrame_ClearFreeList();
- (void)PyCFunction_ClearFreeList();
(void)PyTuple_ClearFreeList();
(void)PyUnicode_ClearFreeList();
(void)PyFloat_ClearFreeList();