summaryrefslogtreecommitdiff
path: root/Include
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2013-05-19 01:11:58 +0200
committerAntoine Pitrou <solipsis@pitrou.net>2013-05-19 01:11:58 +0200
commit4bb13f5d6801f4857651f13a800a964cb8b47223 (patch)
tree68db926bdb01367dfda252b31225159186ce328d /Include
parent9c01479e0bc1986a82850f216ec97e31473d8fd1 (diff)
downloadcpython-4bb13f5d6801f4857651f13a800a964cb8b47223.tar.gz
Issue #17937: Try harder to collect cyclic garbage at shutdown.
Diffstat (limited to 'Include')
-rw-r--r--Include/objimpl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Include/objimpl.h b/Include/objimpl.h
index b577be2df3..8f36360bbf 100644
--- a/Include/objimpl.h
+++ b/Include/objimpl.h
@@ -232,6 +232,10 @@ PyAPI_FUNC(PyVarObject *) _PyObject_NewVar(PyTypeObject *, Py_ssize_t);
/* C equivalent of gc.collect(). */
PyAPI_FUNC(Py_ssize_t) PyGC_Collect(void);
+#ifndef Py_LIMITED_API
+PyAPI_FUNC(Py_ssize_t) _PyGC_CollectNoFail(void);
+#endif
+
/* Test if a type has a GC head */
#define PyType_IS_GC(t) PyType_HasFeature((t), Py_TPFLAGS_HAVE_GC)