aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python
diff options
context:
space:
mode:
Diffstat (limited to 'Python')
-rw-r--r--Python/ceval.c1
-rw-r--r--Python/gc.c2
-rw-r--r--Python/gc_free_threading.c1
-rw-r--r--Python/instrumentation.c9
-rw-r--r--Python/pystate.c1
5 files changed, 10 insertions, 4 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 1720fff1040..7248e0bbc0e 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -15,6 +15,7 @@
#include "pycore_instruments.h"
#include "pycore_intrinsics.h"
#include "pycore_jit.h"
+#include "pycore_list.h" // _PyList_GetItemRef()
#include "pycore_long.h" // _PyLong_GetZero()
#include "pycore_moduleobject.h" // PyModuleObject
#include "pycore_object.h" // _PyObject_GC_TRACK()
diff --git a/Python/gc.c b/Python/gc.c
index f2a88657e8d..ff0fa636bd6 100644
--- a/Python/gc.c
+++ b/Python/gc.c
@@ -12,7 +12,9 @@
#include "pycore_object_alloc.h" // _PyObject_MallocWithType()
#include "pycore_pyerrors.h"
#include "pycore_pystate.h" // _PyThreadState_GET()
+#include "pycore_tuple.h" // _PyTuple_MaybeUntrack()
#include "pycore_weakref.h" // _PyWeakref_ClearRef()
+
#include "pydtrace.h"
#ifndef Py_GIL_DISABLED
diff --git a/Python/gc_free_threading.c b/Python/gc_free_threading.c
index 36b6eca1edd..713a48744df 100644
--- a/Python/gc_free_threading.c
+++ b/Python/gc_free_threading.c
@@ -10,6 +10,7 @@
#include "pycore_object_alloc.h" // _PyObject_MallocWithType()
#include "pycore_pystate.h" // _PyThreadState_GET()
#include "pycore_tstate.h" // _PyThreadStateImpl
+#include "pycore_tuple.h" // _PyTuple_MaybeUntrack()
#include "pycore_weakref.h" // _PyWeakref_ClearRef()
#include "pydtrace.h"
diff --git a/Python/instrumentation.c b/Python/instrumentation.c
index 299066d9c20..56035d6ae5a 100644
--- a/Python/instrumentation.c
+++ b/Python/instrumentation.c
@@ -1,7 +1,4 @@
#include "Python.h"
-
-#include "opcode_ids.h"
-
#include "pycore_bitutils.h" // _Py_popcount32
#include "pycore_call.h"
#include "pycore_ceval.h" // _PY_EVAL_EVENTS_BITS
@@ -18,7 +15,11 @@
#include "pycore_pyatomic_ft_wrappers.h" // FT_ATOMIC_STORE_UINTPTR_RELEASE
#include "pycore_pyerrors.h"
#include "pycore_pystate.h" // _PyInterpreterState_GET()
-#include "pycore_runtime_structs.h" // _PyCoMonitoringData
+#include "pycore_runtime_structs.h" // _PyCoMonitoringData
+#include "pycore_tuple.h" // _PyTuple_FromArraySteal()
+
+#include "opcode_ids.h"
+
/* Uncomment this to dump debugging output when assertions fail */
// #define INSTRUMENT_DEBUG 1
diff --git a/Python/pystate.c b/Python/pystate.c
index 68a7426a260..3aec10219b0 100644
--- a/Python/pystate.c
+++ b/Python/pystate.c
@@ -8,6 +8,7 @@
#include "pycore_audit.h" // _Py_AuditHookEntry
#include "pycore_ceval.h"
#include "pycore_code.h" // stats
+#include "pycore_codecs.h" // _PyCodec_Fini()
#include "pycore_critical_section.h" // _PyCriticalSection_Resume()
#include "pycore_dtoa.h" // _dtoa_state_INIT()
#include "pycore_emscripten_trampoline.h" // _Py_EmscriptenTrampoline_Init()