File tree 10 files changed +23
-20
lines changed
10 files changed +23
-20
lines changed Original file line number Diff line number Diff line change 10
10
#endif
11
11
12
12
#include "pycore_code.h" // _PyCode_CODE()
13
- #include "pycore_structs.h" // _PyStackRef
14
13
#include "pycore_stackref.h" // PyStackRef_AsPyObjectBorrow()
14
+ #include "pycore_stats.h" // CALL_STAT_INC()
15
+ #include "pycore_structs.h" // _PyStackRef
15
16
#include "pycore_typedefs.h" // _PyInterpreterFrame
16
17
17
18
Original file line number Diff line number Diff line change @@ -8,15 +8,17 @@ extern "C" {
8
8
# error "this header requires Py_BUILD_CORE define"
9
9
#endif
10
10
11
- #include <stdbool.h>
12
11
#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()
15
14
#include "pycore_pystate.h" // _PyInterpreterState_GET()
16
15
#include "pycore_runtime.h" // _PyRuntime
17
16
#include "pycore_typeobject.h" // _PyStaticType_GetState()
18
17
#include "pycore_uniqueid.h" // _PyObject_ThreadIncrefSlow()
19
18
19
+ #include <stdbool.h> // bool
20
+
21
+
20
22
// This value is added to `ob_ref_shared` for objects that use deferred
21
23
// reference counting so that they are not immediately deallocated when the
22
24
// non-deferred reference count drops to zero.
Original file line number Diff line number Diff line change @@ -13,11 +13,11 @@ extern "C" {
13
13
# error "this header requires Py_BUILD_CORE define"
14
14
#endif
15
15
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
18
20
19
- #include <stddef.h>
20
- #include <stdbool.h>
21
21
22
22
/*
23
23
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" {
8
8
# error "this header requires Py_BUILD_CORE define"
9
9
#endif
10
10
11
- #include "pycore_function.h"
12
11
#include "pycore_interp_structs.h" // managed_static_type_state
13
12
#include "pycore_moduleobject.h" // PyModuleObject
14
- #include "pycore_stats.h"
15
13
16
14
17
15
/* state */
Original file line number Diff line number Diff line change 5
5
#include "pycore_fileutils.h" // _PyFile_Flush
6
6
#include "pycore_interp.h" // _PyInterpreterState.threads.count
7
7
#include "pycore_lock.h"
8
- #include "pycore_moduleobject.h" // _PyModule_GetState()
9
8
#include "pycore_modsupport.h" // _PyArg_NoKeywords()
9
+ #include "pycore_moduleobject.h" // _PyModule_GetState()
10
+ #include "pycore_object_deferred.h" // _PyObject_SetDeferredRefcount()
10
11
#include "pycore_pylifecycle.h"
11
12
#include "pycore_pystate.h" // _PyThreadState_SetCurrent()
12
13
#include "pycore_sysmodule.h" // _PySys_GetOptionalAttr()
Original file line number Diff line number Diff line change 2
2
#include "opcode.h"
3
3
4
4
#include "pycore_code.h" // _PyCodeConstructor
5
+ #include "pycore_function.h" // _PyFunction_ClearCodeByVersion()
5
6
#include "pycore_hashtable.h" // _Py_hashtable_t
6
7
#include "pycore_index_pool.h" // _PyIndexPool_Fini()
7
8
#include "pycore_initconfig.h" // _PyStatus_OK()
Original file line number Diff line number Diff line change 8
8
#include "pycore_descrobject.h" // _PyMethodWrapper_Type
9
9
#include "pycore_modsupport.h" // _PyArg_UnpackStack()
10
10
#include "pycore_object.h" // _PyObject_GC_UNTRACK()
11
+ #include "pycore_object_deferred.h" // _PyObject_SetDeferredRefcount()
11
12
#include "pycore_pystate.h" // _PyThreadState_GET()
12
13
#include "pycore_tuple.h" // _PyTuple_ITEMS()
13
14
Original file line number Diff line number Diff line change 1
-
2
1
/* Function object implementation */
3
2
4
3
#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()
10
10
#include "pycore_stats.h"
11
11
12
12
Original file line number Diff line number Diff line change 1
-
2
1
/* Module object implementation */
3
2
4
3
#include "Python.h"
Original file line number Diff line number Diff line change 1
1
/* Python's malloc wrappers (see pymem.h) */
2
2
3
3
#include "Python.h"
4
- #include "pycore_code.h" // stats
5
4
#include "pycore_interp.h" // _PyInterpreterState_HasFeature
6
5
#include "pycore_object.h" // _PyDebugAllocatorStats() definition
7
6
#include "pycore_obmalloc.h"
7
+ #include "pycore_obmalloc_init.h"
8
8
#include "pycore_pyerrors.h" // _Py_FatalErrorFormat()
9
9
#include "pycore_pymem.h"
10
10
#include "pycore_pystate.h" // _PyInterpreterState_GET
11
- #include "pycore_obmalloc_init .h"
11
+ #include "pycore_stats .h" // OBJECT_STAT_INC_COND()
12
12
13
13
#include <stdlib.h> // malloc()
14
14
#include <stdbool.h>
You can’t perform that action at this time.
0 commit comments