summaryrefslogtreecommitdiff
path: root/Include/dictobject.h
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-11-15 00:00:12 +0100
committerAntoine Pitrou <solipsis@pitrou.net>2011-11-15 00:00:12 +0100
commit9a812cbc899caeb25ab523e904dfac02e4da2999 (patch)
treed54805ed801f969bd6bbfc08640c9dfba076b90c /Include/dictobject.h
parentd8b9ae6e8f6d9a562ccdf4700d24c0155979fb4f (diff)
downloadcpython-git-9a812cbc899caeb25ab523e904dfac02e4da2999.tar.gz
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/dictobject.h')
-rw-r--r--Include/dictobject.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/dictobject.h b/Include/dictobject.h
index b026785919..ed44e20a23 100644
--- a/Include/dictobject.h
+++ b/Include/dictobject.h
@@ -129,6 +129,8 @@ PyAPI_FUNC(int) _PyDict_Contains(PyObject *mp, PyObject *key, Py_hash_t hash);
PyAPI_FUNC(PyObject *) _PyDict_NewPresized(Py_ssize_t minused);
PyAPI_FUNC(void) _PyDict_MaybeUntrack(PyObject *mp);
PyAPI_FUNC(int) _PyDict_HasOnlyStringKeys(PyObject *mp);
+
+PyAPI_FUNC(int) PyDict_ClearFreeList(void);
#endif
/* PyDict_Update(mp, other) is equivalent to PyDict_Merge(mp, other, 1). */