summaryrefslogtreecommitdiffstats
path: root/Include/internal/pycore_gc.h
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2022-01-14 00:17:28 (GMT)
committerGitHub <noreply@github.com>2022-01-14 00:17:28 (GMT)
commit322f962f3ee31d0dbde99e36379de8488ccc6804 (patch)
tree5ff4958e37f0f556294804c2918bdfeb9ea87417 /Include/internal/pycore_gc.h
parent324908ba936d5d262026deebb81f050803848c41 (diff)
downloadcpython-322f962f3ee31d0dbde99e36379de8488ccc6804.zip
cpython-322f962f3ee31d0dbde99e36379de8488ccc6804.tar.gz
cpython-322f962f3ee31d0dbde99e36379de8488ccc6804.tar.bz2
bpo-45953: Statically initialize all the non-object PyInterpreterState fields we can. (gh-30589)
https://bugs.python.org/issue45953
Diffstat (limited to 'Include/internal/pycore_gc.h')
-rw-r--r--Include/internal/pycore_gc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/internal/pycore_gc.h b/Include/internal/pycore_gc.h
index a23dca8..56a23e9 100644
--- a/Include/internal/pycore_gc.h
+++ b/Include/internal/pycore_gc.h
@@ -134,6 +134,7 @@ struct _gc_runtime_state {
/* Current call-stack depth of tp_dealloc calls. */
int trash_delete_nesting;
+ /* Is automatic collection enabled? */
int enabled;
int debug;
/* linked lists of container objects */
@@ -161,6 +162,7 @@ struct _gc_runtime_state {
Py_ssize_t long_lived_pending;
};
+
extern void _PyGC_InitState(struct _gc_runtime_state *);
extern Py_ssize_t _PyGC_CollectNoFail(PyThreadState *tstate);