summaryrefslogtreecommitdiffstats
path: root/Include/listobject.h
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-11-14 23:00:12 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-11-14 23:00:12 (GMT)
commit9a812cbc899caeb25ab523e904dfac02e4da2999 (patch)
treed54805ed801f969bd6bbfc08640c9dfba076b90c /Include/listobject.h
parentd8b9ae6e8f6d9a562ccdf4700d24c0155979fb4f (diff)
downloadcpython-9a812cbc899caeb25ab523e904dfac02e4da2999.zip
cpython-9a812cbc899caeb25ab523e904dfac02e4da2999.tar.gz
cpython-9a812cbc899caeb25ab523e904dfac02e4da2999.tar.bz2
Issue #13389: Full garbage collection passes now clear the freelists for
list and dict objects. They already cleared other freelists in the interpreter.
Diffstat (limited to 'Include/listobject.h')
-rw-r--r--Include/listobject.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/listobject.h b/Include/listobject.h
index 949b1a3..6fd374b 100644
--- a/Include/listobject.h
+++ b/Include/listobject.h
@@ -62,6 +62,8 @@ PyAPI_FUNC(int) PyList_Reverse(PyObject *);
PyAPI_FUNC(PyObject *) PyList_AsTuple(PyObject *);
#ifndef Py_LIMITED_API
PyAPI_FUNC(PyObject *) _PyList_Extend(PyListObject *, PyObject *);
+
+PyAPI_FUNC(int) PyList_ClearFreeList(void);
#endif
/* Macro, trading safety for speed */