File tree Expand file tree Collapse file tree 10 files changed +23
-20
lines changed Expand file tree Collapse file tree 10 files changed +23
-20
lines changed Original file line number Diff line number Diff line change 1010#endif
1111
1212#include "pycore_code.h" // _PyCode_CODE()
13- #include "pycore_structs.h" // _PyStackRef
1413#include "pycore_stackref.h" // PyStackRef_AsPyObjectBorrow()
14+ #include "pycore_stats.h" // CALL_STAT_INC()
15+ #include "pycore_structs.h" // _PyStackRef
1516#include "pycore_typedefs.h" // _PyInterpreterFrame
1617
1718
Original file line number Diff line number Diff line change @@ -8,15 +8,17 @@ extern "C" {
88# error "this header requires Py_BUILD_CORE define"
99#endif
1010
11- #include <stdbool.h>
1211#include "pycore_emscripten_trampoline.h" // _PyCFunction_TrampolineCall()
13- #include "pycore_object_deferred .h" // _PyObject_HasDeferredRefcount
14- #include "pycore_pyatomic_ft_wrappers.h" // FT_ATOMIC_STORE_PTR_RELAXED
12+ #include "pycore_gc .h" // _PyObject_GC_TRACK()
13+ #include "pycore_pyatomic_ft_wrappers.h" // FT_ATOMIC_LOAD_PTR_ACQUIRE()
1514#include "pycore_pystate.h" // _PyInterpreterState_GET()
1615#include "pycore_runtime.h" // _PyRuntime
1716#include "pycore_typeobject.h" // _PyStaticType_GetState()
1817#include "pycore_uniqueid.h" // _PyObject_ThreadIncrefSlow()
1918
19+ #include <stdbool.h> // bool
20+
21+
2022// This value is added to `ob_ref_shared` for objects that use deferred
2123// reference counting so that they are not immediately deallocated when the
2224// non-deferred reference count drops to zero.
Original file line number Diff line number Diff line change @@ -13,11 +13,11 @@ extern "C" {
1313# error "this header requires Py_BUILD_CORE define"
1414#endif
1515
16- #include "pycore_object_deferred.h"
17- #include "pycore_object.h"
16+ #include "pycore_object.h" // Py_DECREF_MORTAL
17+ #include "pycore_object_deferred.h" // _PyObject_HasDeferredRefcount()
18+
19+ #include <stdbool.h> // bool
1820
19- #include <stddef.h>
20- #include <stdbool.h>
2121
2222/*
2323 This file introduces a new API for handling references on the stack, called
Original file line number Diff line number Diff line change @@ -8,10 +8,8 @@ extern "C" {
88# error "this header requires Py_BUILD_CORE define"
99#endif
1010
11- #include "pycore_function.h"
1211#include "pycore_interp_structs.h" // managed_static_type_state
1312#include "pycore_moduleobject.h" // PyModuleObject
14- #include "pycore_stats.h"
1513
1614
1715/* state */
Original file line number Diff line number Diff line change 55#include "pycore_fileutils.h" // _PyFile_Flush
66#include "pycore_interp.h" // _PyInterpreterState.threads.count
77#include "pycore_lock.h"
8- #include "pycore_moduleobject.h" // _PyModule_GetState()
98#include "pycore_modsupport.h" // _PyArg_NoKeywords()
9+ #include "pycore_moduleobject.h" // _PyModule_GetState()
10+ #include "pycore_object_deferred.h" // _PyObject_SetDeferredRefcount()
1011#include "pycore_pylifecycle.h"
1112#include "pycore_pystate.h" // _PyThreadState_SetCurrent()
1213#include "pycore_sysmodule.h" // _PySys_GetOptionalAttr()
Original file line number Diff line number Diff line change 22#include "opcode.h"
33
44#include "pycore_code.h" // _PyCodeConstructor
5+ #include "pycore_function.h" // _PyFunction_ClearCodeByVersion()
56#include "pycore_hashtable.h" // _Py_hashtable_t
67#include "pycore_index_pool.h" // _PyIndexPool_Fini()
78#include "pycore_initconfig.h" // _PyStatus_OK()
Original file line number Diff line number Diff line change 88#include "pycore_descrobject.h" // _PyMethodWrapper_Type
99#include "pycore_modsupport.h" // _PyArg_UnpackStack()
1010#include "pycore_object.h" // _PyObject_GC_UNTRACK()
11+ #include "pycore_object_deferred.h" // _PyObject_SetDeferredRefcount()
1112#include "pycore_pystate.h" // _PyThreadState_GET()
1213#include "pycore_tuple.h" // _PyTuple_ITEMS()
1314
Original file line number Diff line number Diff line change 1-
21/* Function object implementation */
32
43#include "Python.h"
5- #include "pycore_dict.h" // _Py_INCREF_DICT()
6- #include "pycore_long.h" // _PyLong_GetOne()
7- #include "pycore_modsupport.h" // _PyArg_NoKeywords()
8- #include "pycore_object.h" // _PyObject_GC_UNTRACK()
9- #include "pycore_pyerrors.h" // _PyErr_Occurred()
4+ #include "pycore_dict.h" // _Py_INCREF_DICT()
5+ #include "pycore_function.h" // _PyFunction_Vectorcall
6+ #include "pycore_long.h" // _PyLong_GetOne()
7+ #include "pycore_modsupport.h" // _PyArg_NoKeywords()
8+ #include "pycore_object.h" // _PyObject_GC_UNTRACK()
9+ #include "pycore_pyerrors.h" // _PyErr_Occurred()
1010#include "pycore_stats.h"
1111
1212
Original file line number Diff line number Diff line change 1-
21/* Module object implementation */
32
43#include "Python.h"
Original file line number Diff line number Diff line change 11/* Python's malloc wrappers (see pymem.h) */
22
33#include "Python.h"
4- #include "pycore_code.h" // stats
54#include "pycore_interp.h" // _PyInterpreterState_HasFeature
65#include "pycore_object.h" // _PyDebugAllocatorStats() definition
76#include "pycore_obmalloc.h"
7+ #include "pycore_obmalloc_init.h"
88#include "pycore_pyerrors.h" // _Py_FatalErrorFormat()
99#include "pycore_pymem.h"
1010#include "pycore_pystate.h" // _PyInterpreterState_GET
11- #include "pycore_obmalloc_init .h"
11+ #include "pycore_stats .h" // OBJECT_STAT_INC_COND()
1212
1313#include <stdlib.h> // malloc()
1414#include <stdbool.h>
You can’t perform that action at this time.
0 commit comments