summaryrefslogtreecommitdiffstats
path: root/Include/objimpl.h
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2013-05-18 23:11:58 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2013-05-18 23:11:58 (GMT)
commitfef34e318697e53ea1b39a5da02308acdc5367f4 (patch)
tree8e0f466a86d5670014d783f222d497ad1bb144bc /Include/objimpl.h
parent20c1cdd64aba14cbe7a2484f4569f3e7e4e7132a (diff)
downloadcpython-fef34e318697e53ea1b39a5da02308acdc5367f4.zip
cpython-fef34e318697e53ea1b39a5da02308acdc5367f4.tar.gz
cpython-fef34e318697e53ea1b39a5da02308acdc5367f4.tar.bz2
Issue #17937: Try harder to collect cyclic garbage at shutdown.
Diffstat (limited to 'Include/objimpl.h')
-rw-r--r--Include/objimpl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Include/objimpl.h b/Include/objimpl.h
index b577be2..8f36360 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)