/src/cpython/Include/refcount.h
Line | Count | Source |
1 | | #ifndef _Py_REFCOUNT_H |
2 | | #define _Py_REFCOUNT_H |
3 | | #ifdef __cplusplus |
4 | | extern "C" { |
5 | | #endif |
6 | | |
7 | | |
8 | | #if !defined(_Py_OPAQUE_PYOBJECT) |
9 | | /* |
10 | | Immortalization: |
11 | | |
12 | | The following indicates the immortalization strategy depending on the amount |
13 | | of available bits in the reference count field. All strategies are backwards |
14 | | compatible but the specific reference count value or immortalization check |
15 | | might change depending on the specializations for the underlying system. |
16 | | |
17 | | Proper deallocation of immortal instances requires distinguishing between |
18 | | statically allocated immortal instances vs those promoted by the runtime to be |
19 | | immortal. The latter should be the only instances that require |
20 | | cleanup during runtime finalization. |
21 | | */ |
22 | | |
23 | | #if SIZEOF_VOID_P > 4 |
24 | | /* |
25 | | In 64+ bit systems, any object whose 32 bit reference count is >= 2**31 |
26 | | will be treated as immortal. |
27 | | |
28 | | Using the lower 32 bits makes the value backwards compatible by allowing |
29 | | C-Extensions without the updated checks in Py_INCREF and Py_DECREF to safely |
30 | | increase and decrease the objects reference count. |
31 | | |
32 | | In order to offer sufficient resilience to C extensions using the stable ABI |
33 | | compiled against 3.11 or earlier, we set the initial value near the |
34 | | middle of the range (2**31, 2**32). That way the refcount can be |
35 | | off by ~1 billion without affecting immortality. |
36 | | |
37 | | Reference count increases will use saturated arithmetic, taking advantage of |
38 | | having all the lower 32 bits set, which will avoid the reference count to go |
39 | | beyond the refcount limit. Immortality checks for reference count decreases will |
40 | | be done by checking the bit sign flag in the lower 32 bits. |
41 | | |
42 | | To ensure that once an object becomes immortal, it remains immortal, the threshold |
43 | | for omitting increfs is much higher than for omitting decrefs. Consequently, once |
44 | | the refcount for an object exceeds _Py_IMMORTAL_MINIMUM_REFCNT it will gradually |
45 | | increase over time until it reaches _Py_IMMORTAL_INITIAL_REFCNT. |
46 | | */ |
47 | 10.2G | #define _Py_IMMORTAL_INITIAL_REFCNT (3ULL << 30) |
48 | 460 | #define _Py_IMMORTAL_MINIMUM_REFCNT (1ULL << 31) |
49 | 250M | #define _Py_STATIC_FLAG_BITS ((Py_ssize_t)(_Py_STATICALLY_ALLOCATED_FLAG | _Py_IMMORTAL_FLAGS)) |
50 | 250M | #define _Py_STATIC_IMMORTAL_INITIAL_REFCNT (((Py_ssize_t)_Py_IMMORTAL_INITIAL_REFCNT) | (_Py_STATIC_FLAG_BITS << 48)) |
51 | | |
52 | | #else |
53 | | /* |
54 | | In 32 bit systems, an object will be treated as immortal if its reference |
55 | | count equals or exceeds _Py_IMMORTAL_MINIMUM_REFCNT (2**30). |
56 | | |
57 | | Using the lower 30 bits makes the value backwards compatible by allowing |
58 | | C-Extensions without the updated checks in Py_INCREF and Py_DECREF to safely |
59 | | increase and decrease the objects reference count. The object would lose its |
60 | | immortality, but the execution would still be correct. |
61 | | |
62 | | Reference count increases and decreases will first go through an immortality |
63 | | check by comparing the reference count field to the minimum immortality refcount. |
64 | | */ |
65 | | #define _Py_IMMORTAL_INITIAL_REFCNT ((Py_ssize_t)(5L << 28)) |
66 | | #define _Py_IMMORTAL_MINIMUM_REFCNT ((Py_ssize_t)(1L << 30)) |
67 | | #define _Py_STATIC_IMMORTAL_INITIAL_REFCNT ((Py_ssize_t)(7L << 28)) |
68 | | #define _Py_STATIC_IMMORTAL_MINIMUM_REFCNT ((Py_ssize_t)(6L << 28)) |
69 | | #endif |
70 | | |
71 | | // Py_GIL_DISABLED builds indicate immortal objects using `ob_ref_local`, which is |
72 | | // always 32-bits. |
73 | | #ifdef Py_GIL_DISABLED |
74 | | #define _Py_IMMORTAL_REFCNT_LOCAL UINT32_MAX |
75 | | #endif |
76 | | |
77 | | |
78 | | #ifdef Py_GIL_DISABLED |
79 | | // The shared reference count uses the two least-significant bits to store |
80 | | // flags. The remaining bits are used to store the reference count. |
81 | | # define _Py_REF_SHARED_SHIFT 2 |
82 | | # define _Py_REF_SHARED_FLAG_MASK 0x3 |
83 | | |
84 | | // The shared flags are initialized to zero. |
85 | | # define _Py_REF_SHARED_INIT 0x0 |
86 | | # define _Py_REF_MAYBE_WEAKREF 0x1 |
87 | | # define _Py_REF_QUEUED 0x2 |
88 | | # define _Py_REF_MERGED 0x3 |
89 | | |
90 | | // Create a shared field from a refcnt and desired flags |
91 | | # define _Py_REF_SHARED(refcnt, flags) \ |
92 | | (((refcnt) << _Py_REF_SHARED_SHIFT) + (flags)) |
93 | | #endif // Py_GIL_DISABLED |
94 | | #endif // _Py_OPAQUE_PYOBJECT |
95 | | |
96 | | // Py_REFCNT() implementation for the stable ABI |
97 | | PyAPI_FUNC(Py_ssize_t) Py_REFCNT(PyObject *ob); |
98 | | |
99 | | #if defined(Py_LIMITED_API) && Py_LIMITED_API+0 >= 0x030e0000 |
100 | | // Stable ABI implements Py_REFCNT() as a function call |
101 | | // on limited C API version 3.14 and newer, and on abi3t. |
102 | | #elif defined(_Py_OPAQUE_PYOBJECT) |
103 | | // Py_REFCNT() is also a function call in abi3t. |
104 | | #else |
105 | 1.02G | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { |
106 | 1.02G | #if !defined(Py_GIL_DISABLED) |
107 | 1.02G | return ob->ob_refcnt; |
108 | | #else |
109 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); |
110 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { |
111 | | return _Py_IMMORTAL_INITIAL_REFCNT; |
112 | | } |
113 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); |
114 | | return _Py_STATIC_CAST(Py_ssize_t, local) + |
115 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); |
116 | | #endif |
117 | 1.02G | } Line | Count | Source | 105 | 3.97M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 3.97M | #if !defined(Py_GIL_DISABLED) | 107 | 3.97M | return ob->ob_refcnt; | 108 | | #else | 109 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 110 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 111 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 112 | | } | 113 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 114 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 115 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 116 | | #endif | 117 | 3.97M | } |
Unexecuted instantiation: call.c:_Py_REFCNT Unexecuted instantiation: exceptions.c:_Py_REFCNT Unexecuted instantiation: genericaliasobject.c:_Py_REFCNT Unexecuted instantiation: floatobject.c:_Py_REFCNT Line | Count | Source | 105 | 460 | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 460 | #if !defined(Py_GIL_DISABLED) | 107 | 460 | return ob->ob_refcnt; | 108 | | #else | 109 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 110 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 111 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 112 | | } | 113 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 114 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 115 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 116 | | #endif | 117 | 460 | } |
Line | Count | Source | 105 | 16.7k | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 16.7k | #if !defined(Py_GIL_DISABLED) | 107 | 16.7k | return ob->ob_refcnt; | 108 | | #else | 109 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 110 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 111 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 112 | | } | 113 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 114 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 115 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 116 | | #endif | 117 | 16.7k | } |
Line | Count | Source | 105 | 226M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 226M | #if !defined(Py_GIL_DISABLED) | 107 | 226M | return ob->ob_refcnt; | 108 | | #else | 109 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 110 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 111 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 112 | | } | 113 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 114 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 115 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 116 | | #endif | 117 | 226M | } |
Unexecuted instantiation: memoryobject.c:_Py_REFCNT Unexecuted instantiation: moduleobject.c:_Py_REFCNT Line | Count | Source | 105 | 139M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 139M | #if !defined(Py_GIL_DISABLED) | 107 | 139M | return ob->ob_refcnt; | 108 | | #else | 109 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 110 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 111 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 112 | | } | 113 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 114 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 115 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 116 | | #endif | 117 | 139M | } |
Unexecuted instantiation: obmalloc.c:_Py_REFCNT Unexecuted instantiation: picklebufobject.c:_Py_REFCNT Unexecuted instantiation: rangeobject.c:_Py_REFCNT Unexecuted instantiation: sentinelobject.c:_Py_REFCNT Line | Count | Source | 105 | 4.60k | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 4.60k | #if !defined(Py_GIL_DISABLED) | 107 | 4.60k | return ob->ob_refcnt; | 108 | | #else | 109 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 110 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 111 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 112 | | } | 113 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 114 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 115 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 116 | | #endif | 117 | 4.60k | } |
Unexecuted instantiation: sliceobject.c:_Py_REFCNT Unexecuted instantiation: structseq.c:_Py_REFCNT Unexecuted instantiation: templateobject.c:_Py_REFCNT Line | Count | Source | 105 | 129k | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 129k | #if !defined(Py_GIL_DISABLED) | 107 | 129k | return ob->ob_refcnt; | 108 | | #else | 109 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 110 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 111 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 112 | | } | 113 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 114 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 115 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 116 | | #endif | 117 | 129k | } |
Line | Count | Source | 105 | 364 | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 364 | #if !defined(Py_GIL_DISABLED) | 107 | 364 | return ob->ob_refcnt; | 108 | | #else | 109 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 110 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 111 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 112 | | } | 113 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 114 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 115 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 116 | | #endif | 117 | 364 | } |
Unexecuted instantiation: typevarobject.c:_Py_REFCNT unicode_format.c:_Py_REFCNT Line | Count | Source | 105 | 5.22M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 5.22M | #if !defined(Py_GIL_DISABLED) | 107 | 5.22M | return ob->ob_refcnt; | 108 | | #else | 109 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 110 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 111 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 112 | | } | 113 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 114 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 115 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 116 | | #endif | 117 | 5.22M | } |
Unexecuted instantiation: unicode_formatter.c:_Py_REFCNT Unexecuted instantiation: unicode_writer.c:_Py_REFCNT Unexecuted instantiation: unicodectype.c:_Py_REFCNT unicodeobject.c:_Py_REFCNT Line | Count | Source | 105 | 61.7M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 61.7M | #if !defined(Py_GIL_DISABLED) | 107 | 61.7M | return ob->ob_refcnt; | 108 | | #else | 109 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 110 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 111 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 112 | | } | 113 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 114 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 115 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 116 | | #endif | 117 | 61.7M | } |
Unexecuted instantiation: unionobject.c:_Py_REFCNT weakrefobject.c:_Py_REFCNT Line | Count | Source | 105 | 52.9M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 52.9M | #if !defined(Py_GIL_DISABLED) | 107 | 52.9M | return ob->ob_refcnt; | 108 | | #else | 109 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 110 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 111 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 112 | | } | 113 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 114 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 115 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 116 | | #endif | 117 | 52.9M | } |
Unexecuted instantiation: _warnings.c:_Py_REFCNT Line | Count | Source | 105 | 1.98M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 1.98M | #if !defined(Py_GIL_DISABLED) | 107 | 1.98M | return ob->ob_refcnt; | 108 | | #else | 109 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 110 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 111 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 112 | | } | 113 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 114 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 115 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 116 | | #endif | 117 | 1.98M | } |
Unexecuted instantiation: ceval.c:_Py_REFCNT Unexecuted instantiation: codecs.c:_Py_REFCNT Unexecuted instantiation: codegen.c:_Py_REFCNT Unexecuted instantiation: compile.c:_Py_REFCNT Unexecuted instantiation: context.c:_Py_REFCNT Unexecuted instantiation: errors.c:_Py_REFCNT Unexecuted instantiation: flowgraph.c:_Py_REFCNT Line | Count | Source | 105 | 58.7M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 58.7M | #if !defined(Py_GIL_DISABLED) | 107 | 58.7M | return ob->ob_refcnt; | 108 | | #else | 109 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 110 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 111 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 112 | | } | 113 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 114 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 115 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 116 | | #endif | 117 | 58.7M | } |
Unexecuted instantiation: future.c:_Py_REFCNT Line | Count | Source | 105 | 395M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 395M | #if !defined(Py_GIL_DISABLED) | 107 | 395M | return ob->ob_refcnt; | 108 | | #else | 109 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 110 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 111 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 112 | | } | 113 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 114 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 115 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 116 | | #endif | 117 | 395M | } |
Unexecuted instantiation: gc_gil.c:_Py_REFCNT Unexecuted instantiation: getargs.c:_Py_REFCNT Unexecuted instantiation: ceval_gil.c:_Py_REFCNT Unexecuted instantiation: hamt.c:_Py_REFCNT Unexecuted instantiation: hashtable.c:_Py_REFCNT Line | Count | Source | 105 | 36 | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 36 | #if !defined(Py_GIL_DISABLED) | 107 | 36 | return ob->ob_refcnt; | 108 | | #else | 109 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 110 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 111 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 112 | | } | 113 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 114 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 115 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 116 | | #endif | 117 | 36 | } |
Unexecuted instantiation: importdl.c:_Py_REFCNT Unexecuted instantiation: initconfig.c:_Py_REFCNT Unexecuted instantiation: instrumentation.c:_Py_REFCNT Unexecuted instantiation: instruction_sequence.c:_Py_REFCNT Unexecuted instantiation: intrinsics.c:_Py_REFCNT Unexecuted instantiation: legacy_tracing.c:_Py_REFCNT Unexecuted instantiation: lock.c:_Py_REFCNT Line | Count | Source | 105 | 56.4k | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 56.4k | #if !defined(Py_GIL_DISABLED) | 107 | 56.4k | return ob->ob_refcnt; | 108 | | #else | 109 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 110 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 111 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 112 | | } | 113 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 114 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 115 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 116 | | #endif | 117 | 56.4k | } |
Unexecuted instantiation: modsupport.c:_Py_REFCNT Unexecuted instantiation: mysnprintf.c:_Py_REFCNT Unexecuted instantiation: parking_lot.c:_Py_REFCNT Unexecuted instantiation: preconfig.c:_Py_REFCNT Unexecuted instantiation: pyarena.c:_Py_REFCNT Unexecuted instantiation: pyctype.c:_Py_REFCNT Unexecuted instantiation: pyhash.c:_Py_REFCNT Unexecuted instantiation: pylifecycle.c:_Py_REFCNT Unexecuted instantiation: pymath.c:_Py_REFCNT Unexecuted instantiation: pystate.c:_Py_REFCNT Unexecuted instantiation: pythonrun.c:_Py_REFCNT Unexecuted instantiation: pytime.c:_Py_REFCNT Unexecuted instantiation: qsbr.c:_Py_REFCNT Unexecuted instantiation: bootstrap_hash.c:_Py_REFCNT Unexecuted instantiation: specialize.c:_Py_REFCNT Unexecuted instantiation: slots.c:_Py_REFCNT Unexecuted instantiation: slots_generated.c:_Py_REFCNT Unexecuted instantiation: structmember.c:_Py_REFCNT Unexecuted instantiation: symtable.c:_Py_REFCNT Line | Count | Source | 105 | 4 | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 4 | #if !defined(Py_GIL_DISABLED) | 107 | 4 | return ob->ob_refcnt; | 108 | | #else | 109 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 110 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 111 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 112 | | } | 113 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 114 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 115 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 116 | | #endif | 117 | 4 | } |
Unexecuted instantiation: thread.c:_Py_REFCNT Unexecuted instantiation: traceback.c:_Py_REFCNT Unexecuted instantiation: tracemalloc.c:_Py_REFCNT Unexecuted instantiation: getopt.c:_Py_REFCNT Unexecuted instantiation: pystrcmp.c:_Py_REFCNT Unexecuted instantiation: pystrtod.c:_Py_REFCNT Unexecuted instantiation: pystrhex.c:_Py_REFCNT Unexecuted instantiation: dtoa.c:_Py_REFCNT Unexecuted instantiation: fileutils.c:_Py_REFCNT Unexecuted instantiation: suggestions.c:_Py_REFCNT Unexecuted instantiation: perf_trampoline.c:_Py_REFCNT Unexecuted instantiation: perf_jit_trampoline.c:_Py_REFCNT Unexecuted instantiation: jit_unwind.c:_Py_REFCNT Unexecuted instantiation: remote_debugging.c:_Py_REFCNT Unexecuted instantiation: dynload_shlib.c:_Py_REFCNT Unexecuted instantiation: config.c:_Py_REFCNT Unexecuted instantiation: gcmodule.c:_Py_REFCNT Unexecuted instantiation: _asynciomodule.c:_Py_REFCNT Unexecuted instantiation: atexitmodule.c:_Py_REFCNT Unexecuted instantiation: faulthandler.c:_Py_REFCNT Unexecuted instantiation: posixmodule.c:_Py_REFCNT Unexecuted instantiation: signalmodule.c:_Py_REFCNT Unexecuted instantiation: _tracemalloc.c:_Py_REFCNT Unexecuted instantiation: _suggestions.c:_Py_REFCNT Unexecuted instantiation: _datetimemodule.c:_Py_REFCNT Unexecuted instantiation: _codecsmodule.c:_Py_REFCNT Unexecuted instantiation: _collectionsmodule.c:_Py_REFCNT Unexecuted instantiation: errnomodule.c:_Py_REFCNT Unexecuted instantiation: _iomodule.c:_Py_REFCNT Line | Count | Source | 105 | 101k | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 101k | #if !defined(Py_GIL_DISABLED) | 107 | 101k | return ob->ob_refcnt; | 108 | | #else | 109 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 110 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 111 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 112 | | } | 113 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 114 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 115 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 116 | | #endif | 117 | 101k | } |
Unexecuted instantiation: fileio.c:_Py_REFCNT Line | Count | Source | 105 | 72.4k | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 72.4k | #if !defined(Py_GIL_DISABLED) | 107 | 72.4k | return ob->ob_refcnt; | 108 | | #else | 109 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 110 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 111 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 112 | | } | 113 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 114 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 115 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 116 | | #endif | 117 | 72.4k | } |
Unexecuted instantiation: bufferedio.c:_Py_REFCNT Unexecuted instantiation: textio.c:_Py_REFCNT Unexecuted instantiation: stringio.c:_Py_REFCNT itertoolsmodule.c:_Py_REFCNT Line | Count | Source | 105 | 830 | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 830 | #if !defined(Py_GIL_DISABLED) | 107 | 830 | return ob->ob_refcnt; | 108 | | #else | 109 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 110 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 111 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 112 | | } | 113 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 114 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 115 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 116 | | #endif | 117 | 830 | } |
Unexecuted instantiation: sre.c:_Py_REFCNT Unexecuted instantiation: _sysconfig.c:_Py_REFCNT Unexecuted instantiation: _threadmodule.c:_Py_REFCNT Unexecuted instantiation: timemodule.c:_Py_REFCNT Unexecuted instantiation: _typesmodule.c:_Py_REFCNT Unexecuted instantiation: _typingmodule.c:_Py_REFCNT Unexecuted instantiation: _weakref.c:_Py_REFCNT Unexecuted instantiation: _abc.c:_Py_REFCNT _functoolsmodule.c:_Py_REFCNT Line | Count | Source | 105 | 21.8k | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 21.8k | #if !defined(Py_GIL_DISABLED) | 107 | 21.8k | return ob->ob_refcnt; | 108 | | #else | 109 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 110 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 111 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 112 | | } | 113 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 114 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 115 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 116 | | #endif | 117 | 21.8k | } |
Unexecuted instantiation: _localemodule.c:_Py_REFCNT Unexecuted instantiation: _opcode.c:_Py_REFCNT Unexecuted instantiation: _operator.c:_Py_REFCNT Unexecuted instantiation: _stat.c:_Py_REFCNT Unexecuted instantiation: symtablemodule.c:_Py_REFCNT Unexecuted instantiation: pwdmodule.c:_Py_REFCNT Unexecuted instantiation: getpath.c:_Py_REFCNT Unexecuted instantiation: frozen.c:_Py_REFCNT Unexecuted instantiation: getbuildinfo.c:_Py_REFCNT Unexecuted instantiation: peg_api.c:_Py_REFCNT Unexecuted instantiation: file_tokenizer.c:_Py_REFCNT Unexecuted instantiation: helpers.c:_Py_REFCNT Unexecuted instantiation: myreadline.c:_Py_REFCNT Unexecuted instantiation: abstract.c:_Py_REFCNT Unexecuted instantiation: boolobject.c:_Py_REFCNT Unexecuted instantiation: bytes_methods.c:_Py_REFCNT Unexecuted instantiation: bytearrayobject.c:_Py_REFCNT Unexecuted instantiation: capsule.c:_Py_REFCNT Unexecuted instantiation: cellobject.c:_Py_REFCNT Unexecuted instantiation: classobject.c:_Py_REFCNT Line | Count | Source | 105 | 191k | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 191k | #if !defined(Py_GIL_DISABLED) | 107 | 191k | return ob->ob_refcnt; | 108 | | #else | 109 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 110 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 111 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 112 | | } | 113 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 114 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 115 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 116 | | #endif | 117 | 191k | } |
Unexecuted instantiation: complexobject.c:_Py_REFCNT Unexecuted instantiation: descrobject.c:_Py_REFCNT Line | Count | Source | 105 | 33.4M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 33.4M | #if !defined(Py_GIL_DISABLED) | 107 | 33.4M | return ob->ob_refcnt; | 108 | | #else | 109 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 110 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 111 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 112 | | } | 113 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 114 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 115 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 116 | | #endif | 117 | 33.4M | } |
Unexecuted instantiation: genobject.c:_Py_REFCNT Unexecuted instantiation: fileobject.c:_Py_REFCNT Unexecuted instantiation: frameobject.c:_Py_REFCNT Line | Count | Source | 105 | 43.1M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 43.1M | #if !defined(Py_GIL_DISABLED) | 107 | 43.1M | return ob->ob_refcnt; | 108 | | #else | 109 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 110 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 111 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 112 | | } | 113 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 114 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 115 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 116 | | #endif | 117 | 43.1M | } |
Unexecuted instantiation: interpolationobject.c:_Py_REFCNT Unexecuted instantiation: iterobject.c:_Py_REFCNT Unexecuted instantiation: lazyimportobject.c:_Py_REFCNT Line | Count | Source | 105 | 24 | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 24 | #if !defined(Py_GIL_DISABLED) | 107 | 24 | return ob->ob_refcnt; | 108 | | #else | 109 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 110 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 111 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 112 | | } | 113 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 114 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 115 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 116 | | #endif | 117 | 24 | } |
Unexecuted instantiation: methodobject.c:_Py_REFCNT Unexecuted instantiation: namespaceobject.c:_Py_REFCNT Unexecuted instantiation: _contextvars.c:_Py_REFCNT Unexecuted instantiation: Python-ast.c:_Py_REFCNT Unexecuted instantiation: Python-tokenize.c:_Py_REFCNT Unexecuted instantiation: asdl.c:_Py_REFCNT Unexecuted instantiation: assemble.c:_Py_REFCNT Unexecuted instantiation: ast.c:_Py_REFCNT Unexecuted instantiation: ast_preprocess.c:_Py_REFCNT Unexecuted instantiation: ast_unparse.c:_Py_REFCNT Unexecuted instantiation: critical_section.c:_Py_REFCNT Unexecuted instantiation: crossinterp.c:_Py_REFCNT Unexecuted instantiation: getcopyright.c:_Py_REFCNT Unexecuted instantiation: getplatform.c:_Py_REFCNT Unexecuted instantiation: getversion.c:_Py_REFCNT Unexecuted instantiation: optimizer.c:_Py_REFCNT Unexecuted instantiation: pathconfig.c:_Py_REFCNT Unexecuted instantiation: pegen.c:_Py_REFCNT Unexecuted instantiation: pegen_errors.c:_Py_REFCNT Unexecuted instantiation: parser.c:_Py_REFCNT Unexecuted instantiation: buffer.c:_Py_REFCNT Unexecuted instantiation: lexer.c:_Py_REFCNT Unexecuted instantiation: number.c:_Py_REFCNT Unexecuted instantiation: state.c:_Py_REFCNT Unexecuted instantiation: string.c:_Py_REFCNT Unexecuted instantiation: readline_tokenizer.c:_Py_REFCNT Unexecuted instantiation: string_tokenizer.c:_Py_REFCNT Unexecuted instantiation: utf8_tokenizer.c:_Py_REFCNT Unexecuted instantiation: getcompiler.c:_Py_REFCNT Unexecuted instantiation: mystrtoul.c:_Py_REFCNT Unexecuted instantiation: token.c:_Py_REFCNT Unexecuted instantiation: action_helpers.c:_Py_REFCNT Unexecuted instantiation: string_parser.c:_Py_REFCNT |
118 | | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000 |
119 | 843M | # define Py_REFCNT(ob) _Py_REFCNT(_PyObject_CAST(ob)) |
120 | | #else |
121 | | # define Py_REFCNT(ob) _Py_REFCNT(ob) |
122 | | #endif |
123 | | #endif |
124 | | |
125 | | #ifndef _Py_OPAQUE_PYOBJECT |
126 | | static inline Py_ALWAYS_INLINE int _Py_IsImmortal(PyObject *op) |
127 | 21.5G | { |
128 | | #if defined(Py_GIL_DISABLED) |
129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == |
130 | | _Py_IMMORTAL_REFCNT_LOCAL); |
131 | | #elif SIZEOF_VOID_P > 4 |
132 | 21.5G | return _Py_CAST(int32_t, op->ob_refcnt) < 0; |
133 | | #else |
134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; |
135 | | #endif |
136 | 21.5G | } bytesobject.c:_Py_IsImmortal Line | Count | Source | 127 | 32.8M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 32.8M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 32.8M | } |
Line | Count | Source | 127 | 230M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 230M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 230M | } |
exceptions.c:_Py_IsImmortal Line | Count | Source | 127 | 203M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 203M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 203M | } |
genericaliasobject.c:_Py_IsImmortal Line | Count | Source | 127 | 290 | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 290 | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 290 | } |
floatobject.c:_Py_IsImmortal Line | Count | Source | 127 | 56.5k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 56.5k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 56.5k | } |
listobject.c:_Py_IsImmortal Line | Count | Source | 127 | 2.11G | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 2.11G | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 2.11G | } |
longobject.c:_Py_IsImmortal Line | Count | Source | 127 | 68.3M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 68.3M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 68.3M | } |
dictobject.c:_Py_IsImmortal Line | Count | Source | 127 | 838M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 838M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 838M | } |
memoryobject.c:_Py_IsImmortal Line | Count | Source | 127 | 2.98M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 2.98M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 2.98M | } |
moduleobject.c:_Py_IsImmortal Line | Count | Source | 127 | 3.58M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 3.58M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 3.58M | } |
Line | Count | Source | 127 | 647M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 647M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 647M | } |
Unexecuted instantiation: obmalloc.c:_Py_IsImmortal Unexecuted instantiation: picklebufobject.c:_Py_IsImmortal rangeobject.c:_Py_IsImmortal Line | Count | Source | 127 | 47.6M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 47.6M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 47.6M | } |
sentinelobject.c:_Py_IsImmortal Line | Count | Source | 127 | 53 | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 53 | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 53 | } |
setobject.c:_Py_IsImmortal Line | Count | Source | 127 | 3.84M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 3.84M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 3.84M | } |
sliceobject.c:_Py_IsImmortal Line | Count | Source | 127 | 186M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 186M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 186M | } |
structseq.c:_Py_IsImmortal Line | Count | Source | 127 | 5.07M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 5.07M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 5.07M | } |
templateobject.c:_Py_IsImmortal Line | Count | Source | 127 | 22 | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 22 | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 22 | } |
tupleobject.c:_Py_IsImmortal Line | Count | Source | 127 | 2.33G | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 2.33G | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 2.33G | } |
typeobject.c:_Py_IsImmortal Line | Count | Source | 127 | 958M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 958M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 958M | } |
typevarobject.c:_Py_IsImmortal Line | Count | Source | 127 | 268k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 268k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 268k | } |
unicode_format.c:_Py_IsImmortal Line | Count | Source | 127 | 31.4M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 31.4M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 31.4M | } |
unicode_formatter.c:_Py_IsImmortal Line | Count | Source | 127 | 1.27k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 1.27k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 1.27k | } |
unicode_writer.c:_Py_IsImmortal Line | Count | Source | 127 | 23.6M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 23.6M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 23.6M | } |
Unexecuted instantiation: unicodectype.c:_Py_IsImmortal unicodeobject.c:_Py_IsImmortal Line | Count | Source | 127 | 177M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 177M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 177M | } |
unionobject.c:_Py_IsImmortal Line | Count | Source | 127 | 4.41k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 4.41k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 4.41k | } |
weakrefobject.c:_Py_IsImmortal Line | Count | Source | 127 | 2.65M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 2.65M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 2.65M | } |
_warnings.c:_Py_IsImmortal Line | Count | Source | 127 | 26.5M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 26.5M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 26.5M | } |
bltinmodule.c:_Py_IsImmortal Line | Count | Source | 127 | 1.57G | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 1.57G | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 1.57G | } |
Line | Count | Source | 127 | 9.37G | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 9.37G | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 9.37G | } |
Line | Count | Source | 127 | 15.2M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 15.2M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 15.2M | } |
Line | Count | Source | 127 | 62.4k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 62.4k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 62.4k | } |
Line | Count | Source | 127 | 321k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 321k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 321k | } |
Line | Count | Source | 127 | 72 | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 72 | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 72 | } |
Line | Count | Source | 127 | 94.2M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 94.2M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 94.2M | } |
flowgraph.c:_Py_IsImmortal Line | Count | Source | 127 | 59.7k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 59.7k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 59.7k | } |
Line | Count | Source | 127 | 128M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 128M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 128M | } |
Unexecuted instantiation: future.c:_Py_IsImmortal Line | Count | Source | 127 | 399M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 399M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 399M | } |
Unexecuted instantiation: gc_gil.c:_Py_IsImmortal Line | Count | Source | 127 | 9.57M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 9.57M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 9.57M | } |
Unexecuted instantiation: ceval_gil.c:_Py_IsImmortal Unexecuted instantiation: hamt.c:_Py_IsImmortal Unexecuted instantiation: hashtable.c:_Py_IsImmortal Line | Count | Source | 127 | 14.5M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 14.5M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 14.5M | } |
importdl.c:_Py_IsImmortal Line | Count | Source | 127 | 3.14k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 3.14k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 3.14k | } |
initconfig.c:_Py_IsImmortal Line | Count | Source | 127 | 5.11k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 5.11k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 5.11k | } |
instrumentation.c:_Py_IsImmortal Line | Count | Source | 127 | 864 | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 864 | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 864 | } |
instruction_sequence.c:_Py_IsImmortal Line | Count | Source | 127 | 1 | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 1 | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 1 | } |
intrinsics.c:_Py_IsImmortal Line | Count | Source | 127 | 83.7k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 83.7k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 83.7k | } |
Unexecuted instantiation: legacy_tracing.c:_Py_IsImmortal Unexecuted instantiation: lock.c:_Py_IsImmortal Line | Count | Source | 127 | 1.71M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 1.71M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 1.71M | } |
modsupport.c:_Py_IsImmortal Line | Count | Source | 127 | 90.9k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 90.9k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 90.9k | } |
Unexecuted instantiation: mysnprintf.c:_Py_IsImmortal Unexecuted instantiation: parking_lot.c:_Py_IsImmortal Unexecuted instantiation: preconfig.c:_Py_IsImmortal Line | Count | Source | 127 | 14.4M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 14.4M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 14.4M | } |
Unexecuted instantiation: pyctype.c:_Py_IsImmortal Unexecuted instantiation: pyhash.c:_Py_IsImmortal pylifecycle.c:_Py_IsImmortal Line | Count | Source | 127 | 1.29k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 1.29k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 1.29k | } |
Unexecuted instantiation: pymath.c:_Py_IsImmortal Unexecuted instantiation: pystate.c:_Py_IsImmortal pythonrun.c:_Py_IsImmortal Line | Count | Source | 127 | 1.87k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 1.87k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 1.87k | } |
Unexecuted instantiation: pytime.c:_Py_IsImmortal Unexecuted instantiation: qsbr.c:_Py_IsImmortal Unexecuted instantiation: bootstrap_hash.c:_Py_IsImmortal specialize.c:_Py_IsImmortal Line | Count | Source | 127 | 1.18M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 1.18M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 1.18M | } |
Unexecuted instantiation: slots.c:_Py_IsImmortal Unexecuted instantiation: slots_generated.c:_Py_IsImmortal structmember.c:_Py_IsImmortal Line | Count | Source | 127 | 17.5k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 17.5k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 17.5k | } |
symtable.c:_Py_IsImmortal Line | Count | Source | 127 | 375k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 375k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 375k | } |
sysmodule.c:_Py_IsImmortal Line | Count | Source | 127 | 2.21M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 2.21M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 2.21M | } |
Unexecuted instantiation: thread.c:_Py_IsImmortal traceback.c:_Py_IsImmortal Line | Count | Source | 127 | 184M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 184M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 184M | } |
Unexecuted instantiation: tracemalloc.c:_Py_IsImmortal Unexecuted instantiation: getopt.c:_Py_IsImmortal Unexecuted instantiation: pystrcmp.c:_Py_IsImmortal Unexecuted instantiation: pystrtod.c:_Py_IsImmortal Unexecuted instantiation: pystrhex.c:_Py_IsImmortal Unexecuted instantiation: dtoa.c:_Py_IsImmortal fileutils.c:_Py_IsImmortal Line | Count | Source | 127 | 90.9k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 90.9k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 90.9k | } |
Unexecuted instantiation: suggestions.c:_Py_IsImmortal Unexecuted instantiation: perf_trampoline.c:_Py_IsImmortal Unexecuted instantiation: perf_jit_trampoline.c:_Py_IsImmortal Unexecuted instantiation: jit_unwind.c:_Py_IsImmortal Unexecuted instantiation: remote_debugging.c:_Py_IsImmortal Unexecuted instantiation: dynload_shlib.c:_Py_IsImmortal Unexecuted instantiation: config.c:_Py_IsImmortal Unexecuted instantiation: gcmodule.c:_Py_IsImmortal Unexecuted instantiation: _asynciomodule.c:_Py_IsImmortal atexitmodule.c:_Py_IsImmortal Line | Count | Source | 127 | 4 | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 4 | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 4 | } |
Unexecuted instantiation: faulthandler.c:_Py_IsImmortal posixmodule.c:_Py_IsImmortal Line | Count | Source | 127 | 2.62M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 2.62M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 2.62M | } |
signalmodule.c:_Py_IsImmortal Line | Count | Source | 127 | 72 | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 72 | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 72 | } |
Unexecuted instantiation: _tracemalloc.c:_Py_IsImmortal Unexecuted instantiation: _suggestions.c:_Py_IsImmortal _datetimemodule.c:_Py_IsImmortal Line | Count | Source | 127 | 147k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 147k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 147k | } |
Unexecuted instantiation: _codecsmodule.c:_Py_IsImmortal _collectionsmodule.c:_Py_IsImmortal Line | Count | Source | 127 | 197k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 197k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 197k | } |
Unexecuted instantiation: errnomodule.c:_Py_IsImmortal _iomodule.c:_Py_IsImmortal Line | Count | Source | 127 | 1.54M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 1.54M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 1.54M | } |
Line | Count | Source | 127 | 1.74M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 1.74M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 1.74M | } |
Line | Count | Source | 127 | 73.5k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 73.5k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 73.5k | } |
Line | Count | Source | 127 | 343k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 343k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 343k | } |
bufferedio.c:_Py_IsImmortal Line | Count | Source | 127 | 7.65M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 7.65M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 7.65M | } |
Line | Count | Source | 127 | 364k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 364k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 364k | } |
stringio.c:_Py_IsImmortal Line | Count | Source | 127 | 286k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 286k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 286k | } |
itertoolsmodule.c:_Py_IsImmortal Line | Count | Source | 127 | 13.4k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 13.4k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 13.4k | } |
Line | Count | Source | 127 | 248M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 248M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 248M | } |
Unexecuted instantiation: _sysconfig.c:_Py_IsImmortal _threadmodule.c:_Py_IsImmortal Line | Count | Source | 127 | 16.5M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 16.5M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 16.5M | } |
Unexecuted instantiation: timemodule.c:_Py_IsImmortal Unexecuted instantiation: _typesmodule.c:_Py_IsImmortal Unexecuted instantiation: _typingmodule.c:_Py_IsImmortal Unexecuted instantiation: _weakref.c:_Py_IsImmortal Line | Count | Source | 127 | 457k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 457k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 457k | } |
_functoolsmodule.c:_Py_IsImmortal Line | Count | Source | 127 | 233k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 233k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 233k | } |
Unexecuted instantiation: _localemodule.c:_Py_IsImmortal Unexecuted instantiation: _opcode.c:_Py_IsImmortal _operator.c:_Py_IsImmortal Line | Count | Source | 127 | 609k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 609k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 609k | } |
Unexecuted instantiation: _stat.c:_Py_IsImmortal Unexecuted instantiation: symtablemodule.c:_Py_IsImmortal Unexecuted instantiation: pwdmodule.c:_Py_IsImmortal Line | Count | Source | 127 | 1.18k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 1.18k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 1.18k | } |
Unexecuted instantiation: frozen.c:_Py_IsImmortal Unexecuted instantiation: getbuildinfo.c:_Py_IsImmortal Unexecuted instantiation: peg_api.c:_Py_IsImmortal Unexecuted instantiation: file_tokenizer.c:_Py_IsImmortal Line | Count | Source | 127 | 33.1k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 33.1k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 33.1k | } |
Unexecuted instantiation: myreadline.c:_Py_IsImmortal abstract.c:_Py_IsImmortal Line | Count | Source | 127 | 571M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 571M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 571M | } |
Unexecuted instantiation: boolobject.c:_Py_IsImmortal Unexecuted instantiation: bytes_methods.c:_Py_IsImmortal bytearrayobject.c:_Py_IsImmortal Line | Count | Source | 127 | 27.1M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 27.1M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 27.1M | } |
Line | Count | Source | 127 | 28 | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 28 | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 28 | } |
cellobject.c:_Py_IsImmortal Line | Count | Source | 127 | 14.7M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 14.7M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 14.7M | } |
classobject.c:_Py_IsImmortal Line | Count | Source | 127 | 89.8M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 89.8M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 89.8M | } |
codeobject.c:_Py_IsImmortal Line | Count | Source | 127 | 1.11M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 1.11M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 1.11M | } |
Unexecuted instantiation: complexobject.c:_Py_IsImmortal descrobject.c:_Py_IsImmortal Line | Count | Source | 127 | 68.6M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 68.6M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 68.6M | } |
enumobject.c:_Py_IsImmortal Line | Count | Source | 127 | 131M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 131M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 131M | } |
genobject.c:_Py_IsImmortal Line | Count | Source | 127 | 160M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 160M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 160M | } |
fileobject.c:_Py_IsImmortal Line | Count | Source | 127 | 176k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 176k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 176k | } |
frameobject.c:_Py_IsImmortal Line | Count | Source | 127 | 42.0M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 42.0M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 42.0M | } |
funcobject.c:_Py_IsImmortal Line | Count | Source | 127 | 246M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 246M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 246M | } |
interpolationobject.c:_Py_IsImmortal Line | Count | Source | 127 | 52 | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 52 | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 52 | } |
iterobject.c:_Py_IsImmortal Line | Count | Source | 127 | 3.50M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 3.50M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 3.50M | } |
lazyimportobject.c:_Py_IsImmortal Line | Count | Source | 127 | 376 | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 376 | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 376 | } |
odictobject.c:_Py_IsImmortal Line | Count | Source | 127 | 353k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 353k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 353k | } |
methodobject.c:_Py_IsImmortal Line | Count | Source | 127 | 158M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 158M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 158M | } |
namespaceobject.c:_Py_IsImmortal Line | Count | Source | 127 | 60 | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 60 | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 60 | } |
Unexecuted instantiation: _contextvars.c:_Py_IsImmortal Python-ast.c:_Py_IsImmortal Line | Count | Source | 127 | 3.89M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 3.89M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 3.89M | } |
Python-tokenize.c:_Py_IsImmortal Line | Count | Source | 127 | 504 | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 504 | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 504 | } |
Unexecuted instantiation: asdl.c:_Py_IsImmortal assemble.c:_Py_IsImmortal Line | Count | Source | 127 | 29.5k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 29.5k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 29.5k | } |
Unexecuted instantiation: ast.c:_Py_IsImmortal Unexecuted instantiation: ast_preprocess.c:_Py_IsImmortal Unexecuted instantiation: ast_unparse.c:_Py_IsImmortal Unexecuted instantiation: critical_section.c:_Py_IsImmortal Unexecuted instantiation: crossinterp.c:_Py_IsImmortal Unexecuted instantiation: getcopyright.c:_Py_IsImmortal Unexecuted instantiation: getplatform.c:_Py_IsImmortal Unexecuted instantiation: getversion.c:_Py_IsImmortal Unexecuted instantiation: optimizer.c:_Py_IsImmortal Unexecuted instantiation: pathconfig.c:_Py_IsImmortal Line | Count | Source | 127 | 310k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 310k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 310k | } |
pegen_errors.c:_Py_IsImmortal Line | Count | Source | 127 | 273k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 273k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 273k | } |
Unexecuted instantiation: parser.c:_Py_IsImmortal Unexecuted instantiation: buffer.c:_Py_IsImmortal Line | Count | Source | 127 | 13.5k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 13.5k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 13.5k | } |
Unexecuted instantiation: number.c:_Py_IsImmortal Line | Count | Source | 127 | 101k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 101k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 101k | } |
Unexecuted instantiation: string.c:_Py_IsImmortal readline_tokenizer.c:_Py_IsImmortal Line | Count | Source | 127 | 348 | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 348 | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 348 | } |
string_tokenizer.c:_Py_IsImmortal Line | Count | Source | 127 | 2.33k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 2.33k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 2.33k | } |
Unexecuted instantiation: utf8_tokenizer.c:_Py_IsImmortal Unexecuted instantiation: getcompiler.c:_Py_IsImmortal Unexecuted instantiation: mystrtoul.c:_Py_IsImmortal Unexecuted instantiation: token.c:_Py_IsImmortal Unexecuted instantiation: action_helpers.c:_Py_IsImmortal string_parser.c:_Py_IsImmortal Line | Count | Source | 127 | 38.3k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 38.3k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 38.3k | } |
|
137 | 23.4G | #define _Py_IsImmortal(op) _Py_IsImmortal(_PyObject_CAST(op)) |
138 | | |
139 | | |
140 | | static inline Py_ALWAYS_INLINE int _Py_IsStaticImmortal(PyObject *op) |
141 | 0 | { |
142 | 0 | #if defined(Py_GIL_DISABLED) || SIZEOF_VOID_P > 4 |
143 | 0 | return (op->ob_flags & _Py_STATICALLY_ALLOCATED_FLAG) != 0; |
144 | | #else |
145 | | return op->ob_refcnt >= _Py_STATIC_IMMORTAL_MINIMUM_REFCNT; |
146 | | #endif |
147 | 0 | } Unexecuted instantiation: bytesobject.c:_Py_IsStaticImmortal Unexecuted instantiation: call.c:_Py_IsStaticImmortal Unexecuted instantiation: exceptions.c:_Py_IsStaticImmortal Unexecuted instantiation: genericaliasobject.c:_Py_IsStaticImmortal Unexecuted instantiation: floatobject.c:_Py_IsStaticImmortal Unexecuted instantiation: listobject.c:_Py_IsStaticImmortal Unexecuted instantiation: longobject.c:_Py_IsStaticImmortal Unexecuted instantiation: dictobject.c:_Py_IsStaticImmortal Unexecuted instantiation: memoryobject.c:_Py_IsStaticImmortal Unexecuted instantiation: moduleobject.c:_Py_IsStaticImmortal Unexecuted instantiation: object.c:_Py_IsStaticImmortal Unexecuted instantiation: obmalloc.c:_Py_IsStaticImmortal Unexecuted instantiation: picklebufobject.c:_Py_IsStaticImmortal Unexecuted instantiation: rangeobject.c:_Py_IsStaticImmortal Unexecuted instantiation: sentinelobject.c:_Py_IsStaticImmortal Unexecuted instantiation: setobject.c:_Py_IsStaticImmortal Unexecuted instantiation: sliceobject.c:_Py_IsStaticImmortal Unexecuted instantiation: structseq.c:_Py_IsStaticImmortal Unexecuted instantiation: templateobject.c:_Py_IsStaticImmortal Unexecuted instantiation: tupleobject.c:_Py_IsStaticImmortal Unexecuted instantiation: typeobject.c:_Py_IsStaticImmortal Unexecuted instantiation: typevarobject.c:_Py_IsStaticImmortal Unexecuted instantiation: unicode_format.c:_Py_IsStaticImmortal Unexecuted instantiation: unicode_formatter.c:_Py_IsStaticImmortal Unexecuted instantiation: unicode_writer.c:_Py_IsStaticImmortal Unexecuted instantiation: unicodectype.c:_Py_IsStaticImmortal Unexecuted instantiation: unicodeobject.c:_Py_IsStaticImmortal Unexecuted instantiation: unionobject.c:_Py_IsStaticImmortal Unexecuted instantiation: weakrefobject.c:_Py_IsStaticImmortal Unexecuted instantiation: _warnings.c:_Py_IsStaticImmortal Unexecuted instantiation: bltinmodule.c:_Py_IsStaticImmortal Unexecuted instantiation: ceval.c:_Py_IsStaticImmortal Unexecuted instantiation: codecs.c:_Py_IsStaticImmortal Unexecuted instantiation: codegen.c:_Py_IsStaticImmortal Unexecuted instantiation: compile.c:_Py_IsStaticImmortal Unexecuted instantiation: context.c:_Py_IsStaticImmortal Unexecuted instantiation: errors.c:_Py_IsStaticImmortal Unexecuted instantiation: flowgraph.c:_Py_IsStaticImmortal Unexecuted instantiation: frame.c:_Py_IsStaticImmortal Unexecuted instantiation: future.c:_Py_IsStaticImmortal Unexecuted instantiation: gc.c:_Py_IsStaticImmortal Unexecuted instantiation: gc_gil.c:_Py_IsStaticImmortal Unexecuted instantiation: getargs.c:_Py_IsStaticImmortal Unexecuted instantiation: ceval_gil.c:_Py_IsStaticImmortal Unexecuted instantiation: hamt.c:_Py_IsStaticImmortal Unexecuted instantiation: hashtable.c:_Py_IsStaticImmortal Unexecuted instantiation: import.c:_Py_IsStaticImmortal Unexecuted instantiation: importdl.c:_Py_IsStaticImmortal Unexecuted instantiation: initconfig.c:_Py_IsStaticImmortal Unexecuted instantiation: instrumentation.c:_Py_IsStaticImmortal Unexecuted instantiation: instruction_sequence.c:_Py_IsStaticImmortal Unexecuted instantiation: intrinsics.c:_Py_IsStaticImmortal Unexecuted instantiation: legacy_tracing.c:_Py_IsStaticImmortal Unexecuted instantiation: lock.c:_Py_IsStaticImmortal Unexecuted instantiation: marshal.c:_Py_IsStaticImmortal Unexecuted instantiation: modsupport.c:_Py_IsStaticImmortal Unexecuted instantiation: mysnprintf.c:_Py_IsStaticImmortal Unexecuted instantiation: parking_lot.c:_Py_IsStaticImmortal Unexecuted instantiation: preconfig.c:_Py_IsStaticImmortal Unexecuted instantiation: pyarena.c:_Py_IsStaticImmortal Unexecuted instantiation: pyctype.c:_Py_IsStaticImmortal Unexecuted instantiation: pyhash.c:_Py_IsStaticImmortal Unexecuted instantiation: pylifecycle.c:_Py_IsStaticImmortal Unexecuted instantiation: pymath.c:_Py_IsStaticImmortal Unexecuted instantiation: pystate.c:_Py_IsStaticImmortal Unexecuted instantiation: pythonrun.c:_Py_IsStaticImmortal Unexecuted instantiation: pytime.c:_Py_IsStaticImmortal Unexecuted instantiation: qsbr.c:_Py_IsStaticImmortal Unexecuted instantiation: bootstrap_hash.c:_Py_IsStaticImmortal Unexecuted instantiation: specialize.c:_Py_IsStaticImmortal Unexecuted instantiation: slots.c:_Py_IsStaticImmortal Unexecuted instantiation: slots_generated.c:_Py_IsStaticImmortal Unexecuted instantiation: structmember.c:_Py_IsStaticImmortal Unexecuted instantiation: symtable.c:_Py_IsStaticImmortal Unexecuted instantiation: sysmodule.c:_Py_IsStaticImmortal Unexecuted instantiation: thread.c:_Py_IsStaticImmortal Unexecuted instantiation: traceback.c:_Py_IsStaticImmortal Unexecuted instantiation: tracemalloc.c:_Py_IsStaticImmortal Unexecuted instantiation: getopt.c:_Py_IsStaticImmortal Unexecuted instantiation: pystrcmp.c:_Py_IsStaticImmortal Unexecuted instantiation: pystrtod.c:_Py_IsStaticImmortal Unexecuted instantiation: pystrhex.c:_Py_IsStaticImmortal Unexecuted instantiation: dtoa.c:_Py_IsStaticImmortal Unexecuted instantiation: fileutils.c:_Py_IsStaticImmortal Unexecuted instantiation: suggestions.c:_Py_IsStaticImmortal Unexecuted instantiation: perf_trampoline.c:_Py_IsStaticImmortal Unexecuted instantiation: perf_jit_trampoline.c:_Py_IsStaticImmortal Unexecuted instantiation: jit_unwind.c:_Py_IsStaticImmortal Unexecuted instantiation: remote_debugging.c:_Py_IsStaticImmortal Unexecuted instantiation: dynload_shlib.c:_Py_IsStaticImmortal Unexecuted instantiation: config.c:_Py_IsStaticImmortal Unexecuted instantiation: gcmodule.c:_Py_IsStaticImmortal Unexecuted instantiation: _asynciomodule.c:_Py_IsStaticImmortal Unexecuted instantiation: atexitmodule.c:_Py_IsStaticImmortal Unexecuted instantiation: faulthandler.c:_Py_IsStaticImmortal Unexecuted instantiation: posixmodule.c:_Py_IsStaticImmortal Unexecuted instantiation: signalmodule.c:_Py_IsStaticImmortal Unexecuted instantiation: _tracemalloc.c:_Py_IsStaticImmortal Unexecuted instantiation: _suggestions.c:_Py_IsStaticImmortal Unexecuted instantiation: _datetimemodule.c:_Py_IsStaticImmortal Unexecuted instantiation: _codecsmodule.c:_Py_IsStaticImmortal Unexecuted instantiation: _collectionsmodule.c:_Py_IsStaticImmortal Unexecuted instantiation: errnomodule.c:_Py_IsStaticImmortal Unexecuted instantiation: _iomodule.c:_Py_IsStaticImmortal Unexecuted instantiation: iobase.c:_Py_IsStaticImmortal Unexecuted instantiation: fileio.c:_Py_IsStaticImmortal Unexecuted instantiation: bytesio.c:_Py_IsStaticImmortal Unexecuted instantiation: bufferedio.c:_Py_IsStaticImmortal Unexecuted instantiation: textio.c:_Py_IsStaticImmortal Unexecuted instantiation: stringio.c:_Py_IsStaticImmortal Unexecuted instantiation: itertoolsmodule.c:_Py_IsStaticImmortal Unexecuted instantiation: sre.c:_Py_IsStaticImmortal Unexecuted instantiation: _sysconfig.c:_Py_IsStaticImmortal Unexecuted instantiation: _threadmodule.c:_Py_IsStaticImmortal Unexecuted instantiation: timemodule.c:_Py_IsStaticImmortal Unexecuted instantiation: _typesmodule.c:_Py_IsStaticImmortal Unexecuted instantiation: _typingmodule.c:_Py_IsStaticImmortal Unexecuted instantiation: _weakref.c:_Py_IsStaticImmortal Unexecuted instantiation: _abc.c:_Py_IsStaticImmortal Unexecuted instantiation: _functoolsmodule.c:_Py_IsStaticImmortal Unexecuted instantiation: _localemodule.c:_Py_IsStaticImmortal Unexecuted instantiation: _opcode.c:_Py_IsStaticImmortal Unexecuted instantiation: _operator.c:_Py_IsStaticImmortal Unexecuted instantiation: _stat.c:_Py_IsStaticImmortal Unexecuted instantiation: symtablemodule.c:_Py_IsStaticImmortal Unexecuted instantiation: pwdmodule.c:_Py_IsStaticImmortal Unexecuted instantiation: getpath.c:_Py_IsStaticImmortal Unexecuted instantiation: frozen.c:_Py_IsStaticImmortal Unexecuted instantiation: getbuildinfo.c:_Py_IsStaticImmortal Unexecuted instantiation: peg_api.c:_Py_IsStaticImmortal Unexecuted instantiation: file_tokenizer.c:_Py_IsStaticImmortal Unexecuted instantiation: helpers.c:_Py_IsStaticImmortal Unexecuted instantiation: myreadline.c:_Py_IsStaticImmortal Unexecuted instantiation: abstract.c:_Py_IsStaticImmortal Unexecuted instantiation: boolobject.c:_Py_IsStaticImmortal Unexecuted instantiation: bytes_methods.c:_Py_IsStaticImmortal Unexecuted instantiation: bytearrayobject.c:_Py_IsStaticImmortal Unexecuted instantiation: capsule.c:_Py_IsStaticImmortal Unexecuted instantiation: cellobject.c:_Py_IsStaticImmortal Unexecuted instantiation: classobject.c:_Py_IsStaticImmortal Unexecuted instantiation: codeobject.c:_Py_IsStaticImmortal Unexecuted instantiation: complexobject.c:_Py_IsStaticImmortal Unexecuted instantiation: descrobject.c:_Py_IsStaticImmortal Unexecuted instantiation: enumobject.c:_Py_IsStaticImmortal Unexecuted instantiation: genobject.c:_Py_IsStaticImmortal Unexecuted instantiation: fileobject.c:_Py_IsStaticImmortal Unexecuted instantiation: frameobject.c:_Py_IsStaticImmortal Unexecuted instantiation: funcobject.c:_Py_IsStaticImmortal Unexecuted instantiation: interpolationobject.c:_Py_IsStaticImmortal Unexecuted instantiation: iterobject.c:_Py_IsStaticImmortal Unexecuted instantiation: lazyimportobject.c:_Py_IsStaticImmortal Unexecuted instantiation: odictobject.c:_Py_IsStaticImmortal Unexecuted instantiation: methodobject.c:_Py_IsStaticImmortal Unexecuted instantiation: namespaceobject.c:_Py_IsStaticImmortal Unexecuted instantiation: _contextvars.c:_Py_IsStaticImmortal Unexecuted instantiation: Python-ast.c:_Py_IsStaticImmortal Unexecuted instantiation: Python-tokenize.c:_Py_IsStaticImmortal Unexecuted instantiation: asdl.c:_Py_IsStaticImmortal Unexecuted instantiation: assemble.c:_Py_IsStaticImmortal Unexecuted instantiation: ast.c:_Py_IsStaticImmortal Unexecuted instantiation: ast_preprocess.c:_Py_IsStaticImmortal Unexecuted instantiation: ast_unparse.c:_Py_IsStaticImmortal Unexecuted instantiation: critical_section.c:_Py_IsStaticImmortal Unexecuted instantiation: crossinterp.c:_Py_IsStaticImmortal Unexecuted instantiation: getcopyright.c:_Py_IsStaticImmortal Unexecuted instantiation: getplatform.c:_Py_IsStaticImmortal Unexecuted instantiation: getversion.c:_Py_IsStaticImmortal Unexecuted instantiation: optimizer.c:_Py_IsStaticImmortal Unexecuted instantiation: pathconfig.c:_Py_IsStaticImmortal Unexecuted instantiation: pegen.c:_Py_IsStaticImmortal Unexecuted instantiation: pegen_errors.c:_Py_IsStaticImmortal Unexecuted instantiation: parser.c:_Py_IsStaticImmortal Unexecuted instantiation: buffer.c:_Py_IsStaticImmortal Unexecuted instantiation: lexer.c:_Py_IsStaticImmortal Unexecuted instantiation: number.c:_Py_IsStaticImmortal Unexecuted instantiation: state.c:_Py_IsStaticImmortal Unexecuted instantiation: string.c:_Py_IsStaticImmortal Unexecuted instantiation: readline_tokenizer.c:_Py_IsStaticImmortal Unexecuted instantiation: string_tokenizer.c:_Py_IsStaticImmortal Unexecuted instantiation: utf8_tokenizer.c:_Py_IsStaticImmortal Unexecuted instantiation: getcompiler.c:_Py_IsStaticImmortal Unexecuted instantiation: mystrtoul.c:_Py_IsStaticImmortal Unexecuted instantiation: token.c:_Py_IsStaticImmortal Unexecuted instantiation: action_helpers.c:_Py_IsStaticImmortal Unexecuted instantiation: string_parser.c:_Py_IsStaticImmortal |
148 | 0 | #define _Py_IsStaticImmortal(op) _Py_IsStaticImmortal(_PyObject_CAST(op)) |
149 | | #endif // !defined(_Py_OPAQUE_PYOBJECT) |
150 | | |
151 | | // Py_SET_REFCNT() implementation for stable ABI |
152 | | PyAPI_FUNC(void) _Py_SetRefcnt(PyObject *ob, Py_ssize_t refcnt); |
153 | | |
154 | 361M | static inline void Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) { |
155 | 361M | assert(refcnt >= 0); |
156 | | #if (defined(Py_LIMITED_API) && Py_LIMITED_API+0 >= 0x030d0000) \ |
157 | | || defined(_Py_OPAQUE_PYOBJECT) |
158 | | // Stable ABI implements Py_SET_REFCNT() as a function call |
159 | | // on limited C API version 3.13 and newer, and abi3t. |
160 | | _Py_SetRefcnt(ob, refcnt); |
161 | | #else |
162 | | // This immortal check is for code that is unaware of immortal objects. |
163 | | // The runtime tracks these objects and we should avoid as much |
164 | | // as possible having extensions inadvertently change the refcnt |
165 | | // of an immortalized object. |
166 | 361M | if (_Py_IsImmortal(ob)) { |
167 | 1.07k | return; |
168 | 1.07k | } |
169 | 361M | #ifndef Py_GIL_DISABLED |
170 | 361M | #if SIZEOF_VOID_P > 4 |
171 | 361M | ob->ob_refcnt = (uint32_t)refcnt; |
172 | | #else |
173 | | ob->ob_refcnt = refcnt; |
174 | | #endif |
175 | | #else |
176 | | if (_Py_IsOwnedByCurrentThread(ob)) { |
177 | | if ((size_t)refcnt > (size_t)UINT32_MAX) { |
178 | | // On overflow, make the object immortal |
179 | | ob->ob_tid = _Py_UNOWNED_TID; |
180 | | ob->ob_ref_local = _Py_IMMORTAL_REFCNT_LOCAL; |
181 | | ob->ob_ref_shared = 0; |
182 | | } |
183 | | else { |
184 | | // Set local refcount to desired refcount and shared refcount |
185 | | // to zero, but preserve the shared refcount flags. |
186 | | ob->ob_ref_local = _Py_STATIC_CAST(uint32_t, refcnt); |
187 | | ob->ob_ref_shared &= _Py_REF_SHARED_FLAG_MASK; |
188 | | } |
189 | | } |
190 | | else { |
191 | | // Set local refcount to zero and shared refcount to desired refcount. |
192 | | // Mark the object as merged. |
193 | | ob->ob_tid = _Py_UNOWNED_TID; |
194 | | ob->ob_ref_local = 0; |
195 | | ob->ob_ref_shared = _Py_REF_SHARED(refcnt, _Py_REF_MERGED); |
196 | | } |
197 | | #endif // Py_GIL_DISABLED |
198 | 361M | #endif // Py_LIMITED_API |
199 | 361M | } Unexecuted instantiation: bytesobject.c:Py_SET_REFCNT Unexecuted instantiation: call.c:Py_SET_REFCNT Unexecuted instantiation: exceptions.c:Py_SET_REFCNT Unexecuted instantiation: genericaliasobject.c:Py_SET_REFCNT Unexecuted instantiation: floatobject.c:Py_SET_REFCNT Unexecuted instantiation: listobject.c:Py_SET_REFCNT Unexecuted instantiation: longobject.c:Py_SET_REFCNT dictobject.c:Py_SET_REFCNT Line | Count | Source | 154 | 224M | static inline void Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) { | 155 | 224M | assert(refcnt >= 0); | 156 | | #if (defined(Py_LIMITED_API) && Py_LIMITED_API+0 >= 0x030d0000) \ | 157 | | || defined(_Py_OPAQUE_PYOBJECT) | 158 | | // Stable ABI implements Py_SET_REFCNT() as a function call | 159 | | // on limited C API version 3.13 and newer, and abi3t. | 160 | | _Py_SetRefcnt(ob, refcnt); | 161 | | #else | 162 | | // This immortal check is for code that is unaware of immortal objects. | 163 | | // The runtime tracks these objects and we should avoid as much | 164 | | // as possible having extensions inadvertently change the refcnt | 165 | | // of an immortalized object. | 166 | 224M | if (_Py_IsImmortal(ob)) { | 167 | 0 | return; | 168 | 0 | } | 169 | 224M | #ifndef Py_GIL_DISABLED | 170 | 224M | #if SIZEOF_VOID_P > 4 | 171 | 224M | ob->ob_refcnt = (uint32_t)refcnt; | 172 | | #else | 173 | | ob->ob_refcnt = refcnt; | 174 | | #endif | 175 | | #else | 176 | | if (_Py_IsOwnedByCurrentThread(ob)) { | 177 | | if ((size_t)refcnt > (size_t)UINT32_MAX) { | 178 | | // On overflow, make the object immortal | 179 | | ob->ob_tid = _Py_UNOWNED_TID; | 180 | | ob->ob_ref_local = _Py_IMMORTAL_REFCNT_LOCAL; | 181 | | ob->ob_ref_shared = 0; | 182 | | } | 183 | | else { | 184 | | // Set local refcount to desired refcount and shared refcount | 185 | | // to zero, but preserve the shared refcount flags. | 186 | | ob->ob_ref_local = _Py_STATIC_CAST(uint32_t, refcnt); | 187 | | ob->ob_ref_shared &= _Py_REF_SHARED_FLAG_MASK; | 188 | | } | 189 | | } | 190 | | else { | 191 | | // Set local refcount to zero and shared refcount to desired refcount. | 192 | | // Mark the object as merged. | 193 | | ob->ob_tid = _Py_UNOWNED_TID; | 194 | | ob->ob_ref_local = 0; | 195 | | ob->ob_ref_shared = _Py_REF_SHARED(refcnt, _Py_REF_MERGED); | 196 | | } | 197 | | #endif // Py_GIL_DISABLED | 198 | 224M | #endif // Py_LIMITED_API | 199 | 224M | } |
Unexecuted instantiation: memoryobject.c:Py_SET_REFCNT moduleobject.c:Py_SET_REFCNT Line | Count | Source | 154 | 1.09k | static inline void Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) { | 155 | 1.09k | assert(refcnt >= 0); | 156 | | #if (defined(Py_LIMITED_API) && Py_LIMITED_API+0 >= 0x030d0000) \ | 157 | | || defined(_Py_OPAQUE_PYOBJECT) | 158 | | // Stable ABI implements Py_SET_REFCNT() as a function call | 159 | | // on limited C API version 3.13 and newer, and abi3t. | 160 | | _Py_SetRefcnt(ob, refcnt); | 161 | | #else | 162 | | // This immortal check is for code that is unaware of immortal objects. | 163 | | // The runtime tracks these objects and we should avoid as much | 164 | | // as possible having extensions inadvertently change the refcnt | 165 | | // of an immortalized object. | 166 | 1.09k | if (_Py_IsImmortal(ob)) { | 167 | 1.07k | return; | 168 | 1.07k | } | 169 | 12 | #ifndef Py_GIL_DISABLED | 170 | 12 | #if SIZEOF_VOID_P > 4 | 171 | 12 | ob->ob_refcnt = (uint32_t)refcnt; | 172 | | #else | 173 | | ob->ob_refcnt = refcnt; | 174 | | #endif | 175 | | #else | 176 | | if (_Py_IsOwnedByCurrentThread(ob)) { | 177 | | if ((size_t)refcnt > (size_t)UINT32_MAX) { | 178 | | // On overflow, make the object immortal | 179 | | ob->ob_tid = _Py_UNOWNED_TID; | 180 | | ob->ob_ref_local = _Py_IMMORTAL_REFCNT_LOCAL; | 181 | | ob->ob_ref_shared = 0; | 182 | | } | 183 | | else { | 184 | | // Set local refcount to desired refcount and shared refcount | 185 | | // to zero, but preserve the shared refcount flags. | 186 | | ob->ob_ref_local = _Py_STATIC_CAST(uint32_t, refcnt); | 187 | | ob->ob_ref_shared &= _Py_REF_SHARED_FLAG_MASK; | 188 | | } | 189 | | } | 190 | | else { | 191 | | // Set local refcount to zero and shared refcount to desired refcount. | 192 | | // Mark the object as merged. | 193 | | ob->ob_tid = _Py_UNOWNED_TID; | 194 | | ob->ob_ref_local = 0; | 195 | | ob->ob_ref_shared = _Py_REF_SHARED(refcnt, _Py_REF_MERGED); | 196 | | } | 197 | | #endif // Py_GIL_DISABLED | 198 | 12 | #endif // Py_LIMITED_API | 199 | 12 | } |
Line | Count | Source | 154 | 93.0M | static inline void Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) { | 155 | 93.0M | assert(refcnt >= 0); | 156 | | #if (defined(Py_LIMITED_API) && Py_LIMITED_API+0 >= 0x030d0000) \ | 157 | | || defined(_Py_OPAQUE_PYOBJECT) | 158 | | // Stable ABI implements Py_SET_REFCNT() as a function call | 159 | | // on limited C API version 3.13 and newer, and abi3t. | 160 | | _Py_SetRefcnt(ob, refcnt); | 161 | | #else | 162 | | // This immortal check is for code that is unaware of immortal objects. | 163 | | // The runtime tracks these objects and we should avoid as much | 164 | | // as possible having extensions inadvertently change the refcnt | 165 | | // of an immortalized object. | 166 | 93.0M | if (_Py_IsImmortal(ob)) { | 167 | 0 | return; | 168 | 0 | } | 169 | 93.0M | #ifndef Py_GIL_DISABLED | 170 | 93.0M | #if SIZEOF_VOID_P > 4 | 171 | 93.0M | ob->ob_refcnt = (uint32_t)refcnt; | 172 | | #else | 173 | | ob->ob_refcnt = refcnt; | 174 | | #endif | 175 | | #else | 176 | | if (_Py_IsOwnedByCurrentThread(ob)) { | 177 | | if ((size_t)refcnt > (size_t)UINT32_MAX) { | 178 | | // On overflow, make the object immortal | 179 | | ob->ob_tid = _Py_UNOWNED_TID; | 180 | | ob->ob_ref_local = _Py_IMMORTAL_REFCNT_LOCAL; | 181 | | ob->ob_ref_shared = 0; | 182 | | } | 183 | | else { | 184 | | // Set local refcount to desired refcount and shared refcount | 185 | | // to zero, but preserve the shared refcount flags. | 186 | | ob->ob_ref_local = _Py_STATIC_CAST(uint32_t, refcnt); | 187 | | ob->ob_ref_shared &= _Py_REF_SHARED_FLAG_MASK; | 188 | | } | 189 | | } | 190 | | else { | 191 | | // Set local refcount to zero and shared refcount to desired refcount. | 192 | | // Mark the object as merged. | 193 | | ob->ob_tid = _Py_UNOWNED_TID; | 194 | | ob->ob_ref_local = 0; | 195 | | ob->ob_ref_shared = _Py_REF_SHARED(refcnt, _Py_REF_MERGED); | 196 | | } | 197 | | #endif // Py_GIL_DISABLED | 198 | 93.0M | #endif // Py_LIMITED_API | 199 | 93.0M | } |
Unexecuted instantiation: obmalloc.c:Py_SET_REFCNT Unexecuted instantiation: picklebufobject.c:Py_SET_REFCNT Unexecuted instantiation: rangeobject.c:Py_SET_REFCNT Unexecuted instantiation: sentinelobject.c:Py_SET_REFCNT Unexecuted instantiation: setobject.c:Py_SET_REFCNT Unexecuted instantiation: sliceobject.c:Py_SET_REFCNT Unexecuted instantiation: structseq.c:Py_SET_REFCNT Unexecuted instantiation: templateobject.c:Py_SET_REFCNT Unexecuted instantiation: tupleobject.c:Py_SET_REFCNT Unexecuted instantiation: typeobject.c:Py_SET_REFCNT Unexecuted instantiation: typevarobject.c:Py_SET_REFCNT Unexecuted instantiation: unicode_format.c:Py_SET_REFCNT Unexecuted instantiation: unicode_formatter.c:Py_SET_REFCNT Unexecuted instantiation: unicode_writer.c:Py_SET_REFCNT Unexecuted instantiation: unicodectype.c:Py_SET_REFCNT unicodeobject.c:Py_SET_REFCNT Line | Count | Source | 154 | 695k | static inline void Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) { | 155 | 695k | assert(refcnt >= 0); | 156 | | #if (defined(Py_LIMITED_API) && Py_LIMITED_API+0 >= 0x030d0000) \ | 157 | | || defined(_Py_OPAQUE_PYOBJECT) | 158 | | // Stable ABI implements Py_SET_REFCNT() as a function call | 159 | | // on limited C API version 3.13 and newer, and abi3t. | 160 | | _Py_SetRefcnt(ob, refcnt); | 161 | | #else | 162 | | // This immortal check is for code that is unaware of immortal objects. | 163 | | // The runtime tracks these objects and we should avoid as much | 164 | | // as possible having extensions inadvertently change the refcnt | 165 | | // of an immortalized object. | 166 | 695k | if (_Py_IsImmortal(ob)) { | 167 | 0 | return; | 168 | 0 | } | 169 | 695k | #ifndef Py_GIL_DISABLED | 170 | 695k | #if SIZEOF_VOID_P > 4 | 171 | 695k | ob->ob_refcnt = (uint32_t)refcnt; | 172 | | #else | 173 | | ob->ob_refcnt = refcnt; | 174 | | #endif | 175 | | #else | 176 | | if (_Py_IsOwnedByCurrentThread(ob)) { | 177 | | if ((size_t)refcnt > (size_t)UINT32_MAX) { | 178 | | // On overflow, make the object immortal | 179 | | ob->ob_tid = _Py_UNOWNED_TID; | 180 | | ob->ob_ref_local = _Py_IMMORTAL_REFCNT_LOCAL; | 181 | | ob->ob_ref_shared = 0; | 182 | | } | 183 | | else { | 184 | | // Set local refcount to desired refcount and shared refcount | 185 | | // to zero, but preserve the shared refcount flags. | 186 | | ob->ob_ref_local = _Py_STATIC_CAST(uint32_t, refcnt); | 187 | | ob->ob_ref_shared &= _Py_REF_SHARED_FLAG_MASK; | 188 | | } | 189 | | } | 190 | | else { | 191 | | // Set local refcount to zero and shared refcount to desired refcount. | 192 | | // Mark the object as merged. | 193 | | ob->ob_tid = _Py_UNOWNED_TID; | 194 | | ob->ob_ref_local = 0; | 195 | | ob->ob_ref_shared = _Py_REF_SHARED(refcnt, _Py_REF_MERGED); | 196 | | } | 197 | | #endif // Py_GIL_DISABLED | 198 | 695k | #endif // Py_LIMITED_API | 199 | 695k | } |
Unexecuted instantiation: unionobject.c:Py_SET_REFCNT Unexecuted instantiation: weakrefobject.c:Py_SET_REFCNT Unexecuted instantiation: _warnings.c:Py_SET_REFCNT Unexecuted instantiation: bltinmodule.c:Py_SET_REFCNT Unexecuted instantiation: ceval.c:Py_SET_REFCNT Unexecuted instantiation: codecs.c:Py_SET_REFCNT Unexecuted instantiation: codegen.c:Py_SET_REFCNT Unexecuted instantiation: compile.c:Py_SET_REFCNT Unexecuted instantiation: context.c:Py_SET_REFCNT Unexecuted instantiation: errors.c:Py_SET_REFCNT Unexecuted instantiation: flowgraph.c:Py_SET_REFCNT Unexecuted instantiation: frame.c:Py_SET_REFCNT Unexecuted instantiation: future.c:Py_SET_REFCNT Unexecuted instantiation: gc.c:Py_SET_REFCNT Unexecuted instantiation: gc_gil.c:Py_SET_REFCNT Unexecuted instantiation: getargs.c:Py_SET_REFCNT Unexecuted instantiation: ceval_gil.c:Py_SET_REFCNT Unexecuted instantiation: hamt.c:Py_SET_REFCNT Unexecuted instantiation: hashtable.c:Py_SET_REFCNT Unexecuted instantiation: import.c:Py_SET_REFCNT Unexecuted instantiation: importdl.c:Py_SET_REFCNT Unexecuted instantiation: initconfig.c:Py_SET_REFCNT Unexecuted instantiation: instrumentation.c:Py_SET_REFCNT Unexecuted instantiation: instruction_sequence.c:Py_SET_REFCNT Unexecuted instantiation: intrinsics.c:Py_SET_REFCNT Unexecuted instantiation: legacy_tracing.c:Py_SET_REFCNT Unexecuted instantiation: lock.c:Py_SET_REFCNT Unexecuted instantiation: marshal.c:Py_SET_REFCNT Unexecuted instantiation: modsupport.c:Py_SET_REFCNT Unexecuted instantiation: mysnprintf.c:Py_SET_REFCNT Unexecuted instantiation: parking_lot.c:Py_SET_REFCNT Unexecuted instantiation: preconfig.c:Py_SET_REFCNT Unexecuted instantiation: pyarena.c:Py_SET_REFCNT Unexecuted instantiation: pyctype.c:Py_SET_REFCNT Unexecuted instantiation: pyhash.c:Py_SET_REFCNT Unexecuted instantiation: pylifecycle.c:Py_SET_REFCNT Unexecuted instantiation: pymath.c:Py_SET_REFCNT Unexecuted instantiation: pystate.c:Py_SET_REFCNT Unexecuted instantiation: pythonrun.c:Py_SET_REFCNT Unexecuted instantiation: pytime.c:Py_SET_REFCNT Unexecuted instantiation: qsbr.c:Py_SET_REFCNT Unexecuted instantiation: bootstrap_hash.c:Py_SET_REFCNT Unexecuted instantiation: specialize.c:Py_SET_REFCNT Unexecuted instantiation: slots.c:Py_SET_REFCNT Unexecuted instantiation: slots_generated.c:Py_SET_REFCNT Unexecuted instantiation: structmember.c:Py_SET_REFCNT Unexecuted instantiation: symtable.c:Py_SET_REFCNT Unexecuted instantiation: sysmodule.c:Py_SET_REFCNT Unexecuted instantiation: thread.c:Py_SET_REFCNT Unexecuted instantiation: traceback.c:Py_SET_REFCNT Unexecuted instantiation: tracemalloc.c:Py_SET_REFCNT Unexecuted instantiation: getopt.c:Py_SET_REFCNT Unexecuted instantiation: pystrcmp.c:Py_SET_REFCNT Unexecuted instantiation: pystrtod.c:Py_SET_REFCNT Unexecuted instantiation: pystrhex.c:Py_SET_REFCNT Unexecuted instantiation: dtoa.c:Py_SET_REFCNT Unexecuted instantiation: fileutils.c:Py_SET_REFCNT Unexecuted instantiation: suggestions.c:Py_SET_REFCNT Unexecuted instantiation: perf_trampoline.c:Py_SET_REFCNT Unexecuted instantiation: perf_jit_trampoline.c:Py_SET_REFCNT Unexecuted instantiation: jit_unwind.c:Py_SET_REFCNT Unexecuted instantiation: remote_debugging.c:Py_SET_REFCNT Unexecuted instantiation: dynload_shlib.c:Py_SET_REFCNT Unexecuted instantiation: config.c:Py_SET_REFCNT Unexecuted instantiation: gcmodule.c:Py_SET_REFCNT Unexecuted instantiation: _asynciomodule.c:Py_SET_REFCNT Unexecuted instantiation: atexitmodule.c:Py_SET_REFCNT Unexecuted instantiation: faulthandler.c:Py_SET_REFCNT Unexecuted instantiation: posixmodule.c:Py_SET_REFCNT Unexecuted instantiation: signalmodule.c:Py_SET_REFCNT Unexecuted instantiation: _tracemalloc.c:Py_SET_REFCNT Unexecuted instantiation: _suggestions.c:Py_SET_REFCNT Unexecuted instantiation: _datetimemodule.c:Py_SET_REFCNT Unexecuted instantiation: _codecsmodule.c:Py_SET_REFCNT Unexecuted instantiation: _collectionsmodule.c:Py_SET_REFCNT Unexecuted instantiation: errnomodule.c:Py_SET_REFCNT Unexecuted instantiation: _iomodule.c:Py_SET_REFCNT Unexecuted instantiation: iobase.c:Py_SET_REFCNT Unexecuted instantiation: fileio.c:Py_SET_REFCNT Unexecuted instantiation: bytesio.c:Py_SET_REFCNT Unexecuted instantiation: bufferedio.c:Py_SET_REFCNT Unexecuted instantiation: textio.c:Py_SET_REFCNT Unexecuted instantiation: stringio.c:Py_SET_REFCNT Unexecuted instantiation: itertoolsmodule.c:Py_SET_REFCNT Unexecuted instantiation: sre.c:Py_SET_REFCNT Unexecuted instantiation: _sysconfig.c:Py_SET_REFCNT Unexecuted instantiation: _threadmodule.c:Py_SET_REFCNT Unexecuted instantiation: timemodule.c:Py_SET_REFCNT Unexecuted instantiation: _typesmodule.c:Py_SET_REFCNT Unexecuted instantiation: _typingmodule.c:Py_SET_REFCNT Unexecuted instantiation: _weakref.c:Py_SET_REFCNT Unexecuted instantiation: _abc.c:Py_SET_REFCNT Unexecuted instantiation: _functoolsmodule.c:Py_SET_REFCNT Unexecuted instantiation: _localemodule.c:Py_SET_REFCNT Unexecuted instantiation: _opcode.c:Py_SET_REFCNT Unexecuted instantiation: _operator.c:Py_SET_REFCNT Unexecuted instantiation: _stat.c:Py_SET_REFCNT Unexecuted instantiation: symtablemodule.c:Py_SET_REFCNT Unexecuted instantiation: pwdmodule.c:Py_SET_REFCNT Unexecuted instantiation: getpath.c:Py_SET_REFCNT Unexecuted instantiation: frozen.c:Py_SET_REFCNT Unexecuted instantiation: getbuildinfo.c:Py_SET_REFCNT Unexecuted instantiation: peg_api.c:Py_SET_REFCNT Unexecuted instantiation: file_tokenizer.c:Py_SET_REFCNT Unexecuted instantiation: helpers.c:Py_SET_REFCNT Unexecuted instantiation: myreadline.c:Py_SET_REFCNT Unexecuted instantiation: abstract.c:Py_SET_REFCNT Unexecuted instantiation: boolobject.c:Py_SET_REFCNT Unexecuted instantiation: bytes_methods.c:Py_SET_REFCNT Unexecuted instantiation: bytearrayobject.c:Py_SET_REFCNT Unexecuted instantiation: capsule.c:Py_SET_REFCNT Unexecuted instantiation: cellobject.c:Py_SET_REFCNT Unexecuted instantiation: classobject.c:Py_SET_REFCNT codeobject.c:Py_SET_REFCNT Line | Count | Source | 154 | 191k | static inline void Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) { | 155 | 191k | assert(refcnt >= 0); | 156 | | #if (defined(Py_LIMITED_API) && Py_LIMITED_API+0 >= 0x030d0000) \ | 157 | | || defined(_Py_OPAQUE_PYOBJECT) | 158 | | // Stable ABI implements Py_SET_REFCNT() as a function call | 159 | | // on limited C API version 3.13 and newer, and abi3t. | 160 | | _Py_SetRefcnt(ob, refcnt); | 161 | | #else | 162 | | // This immortal check is for code that is unaware of immortal objects. | 163 | | // The runtime tracks these objects and we should avoid as much | 164 | | // as possible having extensions inadvertently change the refcnt | 165 | | // of an immortalized object. | 166 | 191k | if (_Py_IsImmortal(ob)) { | 167 | 0 | return; | 168 | 0 | } | 169 | 191k | #ifndef Py_GIL_DISABLED | 170 | 191k | #if SIZEOF_VOID_P > 4 | 171 | 191k | ob->ob_refcnt = (uint32_t)refcnt; | 172 | | #else | 173 | | ob->ob_refcnt = refcnt; | 174 | | #endif | 175 | | #else | 176 | | if (_Py_IsOwnedByCurrentThread(ob)) { | 177 | | if ((size_t)refcnt > (size_t)UINT32_MAX) { | 178 | | // On overflow, make the object immortal | 179 | | ob->ob_tid = _Py_UNOWNED_TID; | 180 | | ob->ob_ref_local = _Py_IMMORTAL_REFCNT_LOCAL; | 181 | | ob->ob_ref_shared = 0; | 182 | | } | 183 | | else { | 184 | | // Set local refcount to desired refcount and shared refcount | 185 | | // to zero, but preserve the shared refcount flags. | 186 | | ob->ob_ref_local = _Py_STATIC_CAST(uint32_t, refcnt); | 187 | | ob->ob_ref_shared &= _Py_REF_SHARED_FLAG_MASK; | 188 | | } | 189 | | } | 190 | | else { | 191 | | // Set local refcount to zero and shared refcount to desired refcount. | 192 | | // Mark the object as merged. | 193 | | ob->ob_tid = _Py_UNOWNED_TID; | 194 | | ob->ob_ref_local = 0; | 195 | | ob->ob_ref_shared = _Py_REF_SHARED(refcnt, _Py_REF_MERGED); | 196 | | } | 197 | | #endif // Py_GIL_DISABLED | 198 | 191k | #endif // Py_LIMITED_API | 199 | 191k | } |
Unexecuted instantiation: complexobject.c:Py_SET_REFCNT Unexecuted instantiation: descrobject.c:Py_SET_REFCNT Unexecuted instantiation: enumobject.c:Py_SET_REFCNT Unexecuted instantiation: genobject.c:Py_SET_REFCNT Unexecuted instantiation: fileobject.c:Py_SET_REFCNT Unexecuted instantiation: frameobject.c:Py_SET_REFCNT funcobject.c:Py_SET_REFCNT Line | Count | Source | 154 | 43.1M | static inline void Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) { | 155 | 43.1M | assert(refcnt >= 0); | 156 | | #if (defined(Py_LIMITED_API) && Py_LIMITED_API+0 >= 0x030d0000) \ | 157 | | || defined(_Py_OPAQUE_PYOBJECT) | 158 | | // Stable ABI implements Py_SET_REFCNT() as a function call | 159 | | // on limited C API version 3.13 and newer, and abi3t. | 160 | | _Py_SetRefcnt(ob, refcnt); | 161 | | #else | 162 | | // This immortal check is for code that is unaware of immortal objects. | 163 | | // The runtime tracks these objects and we should avoid as much | 164 | | // as possible having extensions inadvertently change the refcnt | 165 | | // of an immortalized object. | 166 | 43.1M | if (_Py_IsImmortal(ob)) { | 167 | 0 | return; | 168 | 0 | } | 169 | 43.1M | #ifndef Py_GIL_DISABLED | 170 | 43.1M | #if SIZEOF_VOID_P > 4 | 171 | 43.1M | ob->ob_refcnt = (uint32_t)refcnt; | 172 | | #else | 173 | | ob->ob_refcnt = refcnt; | 174 | | #endif | 175 | | #else | 176 | | if (_Py_IsOwnedByCurrentThread(ob)) { | 177 | | if ((size_t)refcnt > (size_t)UINT32_MAX) { | 178 | | // On overflow, make the object immortal | 179 | | ob->ob_tid = _Py_UNOWNED_TID; | 180 | | ob->ob_ref_local = _Py_IMMORTAL_REFCNT_LOCAL; | 181 | | ob->ob_ref_shared = 0; | 182 | | } | 183 | | else { | 184 | | // Set local refcount to desired refcount and shared refcount | 185 | | // to zero, but preserve the shared refcount flags. | 186 | | ob->ob_ref_local = _Py_STATIC_CAST(uint32_t, refcnt); | 187 | | ob->ob_ref_shared &= _Py_REF_SHARED_FLAG_MASK; | 188 | | } | 189 | | } | 190 | | else { | 191 | | // Set local refcount to zero and shared refcount to desired refcount. | 192 | | // Mark the object as merged. | 193 | | ob->ob_tid = _Py_UNOWNED_TID; | 194 | | ob->ob_ref_local = 0; | 195 | | ob->ob_ref_shared = _Py_REF_SHARED(refcnt, _Py_REF_MERGED); | 196 | | } | 197 | | #endif // Py_GIL_DISABLED | 198 | 43.1M | #endif // Py_LIMITED_API | 199 | 43.1M | } |
Unexecuted instantiation: interpolationobject.c:Py_SET_REFCNT Unexecuted instantiation: iterobject.c:Py_SET_REFCNT Unexecuted instantiation: lazyimportobject.c:Py_SET_REFCNT Unexecuted instantiation: odictobject.c:Py_SET_REFCNT Unexecuted instantiation: methodobject.c:Py_SET_REFCNT Unexecuted instantiation: namespaceobject.c:Py_SET_REFCNT Unexecuted instantiation: _contextvars.c:Py_SET_REFCNT Unexecuted instantiation: Python-ast.c:Py_SET_REFCNT Unexecuted instantiation: Python-tokenize.c:Py_SET_REFCNT Unexecuted instantiation: asdl.c:Py_SET_REFCNT Unexecuted instantiation: assemble.c:Py_SET_REFCNT Unexecuted instantiation: ast.c:Py_SET_REFCNT Unexecuted instantiation: ast_preprocess.c:Py_SET_REFCNT Unexecuted instantiation: ast_unparse.c:Py_SET_REFCNT Unexecuted instantiation: critical_section.c:Py_SET_REFCNT Unexecuted instantiation: crossinterp.c:Py_SET_REFCNT Unexecuted instantiation: getcopyright.c:Py_SET_REFCNT Unexecuted instantiation: getplatform.c:Py_SET_REFCNT Unexecuted instantiation: getversion.c:Py_SET_REFCNT Unexecuted instantiation: optimizer.c:Py_SET_REFCNT Unexecuted instantiation: pathconfig.c:Py_SET_REFCNT Unexecuted instantiation: pegen.c:Py_SET_REFCNT Unexecuted instantiation: pegen_errors.c:Py_SET_REFCNT Unexecuted instantiation: parser.c:Py_SET_REFCNT Unexecuted instantiation: buffer.c:Py_SET_REFCNT Unexecuted instantiation: lexer.c:Py_SET_REFCNT Unexecuted instantiation: number.c:Py_SET_REFCNT Unexecuted instantiation: state.c:Py_SET_REFCNT Unexecuted instantiation: string.c:Py_SET_REFCNT Unexecuted instantiation: readline_tokenizer.c:Py_SET_REFCNT Unexecuted instantiation: string_tokenizer.c:Py_SET_REFCNT Unexecuted instantiation: utf8_tokenizer.c:Py_SET_REFCNT Unexecuted instantiation: getcompiler.c:Py_SET_REFCNT Unexecuted instantiation: mystrtoul.c:Py_SET_REFCNT Unexecuted instantiation: token.c:Py_SET_REFCNT Unexecuted instantiation: action_helpers.c:Py_SET_REFCNT Unexecuted instantiation: string_parser.c:Py_SET_REFCNT |
200 | | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000 |
201 | 361M | # define Py_SET_REFCNT(ob, refcnt) Py_SET_REFCNT(_PyObject_CAST(ob), (refcnt)) |
202 | | #endif |
203 | | |
204 | | |
205 | | /* |
206 | | The macros Py_INCREF(op) and Py_DECREF(op) are used to increment or decrement |
207 | | reference counts. Py_DECREF calls the object's deallocator function when |
208 | | the refcount falls to 0; for |
209 | | objects that don't contain references to other objects or heap memory |
210 | | this can be the standard function free(). Both macros can be used |
211 | | wherever a void expression is allowed. The argument must not be a |
212 | | NULL pointer. If it may be NULL, use Py_XINCREF/Py_XDECREF instead. |
213 | | The macro _Py_NewReference(op) initialize reference counts to 1, and |
214 | | in special builds (Py_REF_DEBUG, Py_TRACE_REFS) performs additional |
215 | | bookkeeping appropriate to the special build. |
216 | | |
217 | | We assume that the reference count field can never overflow; this can |
218 | | be proven when the size of the field is the same as the pointer size, so |
219 | | we ignore the possibility. Provided a C int is at least 32 bits (which |
220 | | is implicitly assumed in many parts of this code), that's enough for |
221 | | about 2**31 references to an object. |
222 | | |
223 | | XXX The following became out of date in Python 2.2, but I'm not sure |
224 | | XXX what the full truth is now. Certainly, heap-allocated type objects |
225 | | XXX can and should be deallocated. |
226 | | Type objects should never be deallocated; the type pointer in an object |
227 | | is not considered to be a reference to the type object, to save |
228 | | complications in the deallocation function. (This is actually a |
229 | | decision that's up to the implementer of each new type so if you want, |
230 | | you can count such references to the type object.) |
231 | | */ |
232 | | |
233 | | #if defined(Py_REF_DEBUG) && !defined(Py_LIMITED_API) |
234 | | PyAPI_FUNC(void) _Py_NegativeRefcount(const char *filename, int lineno, |
235 | | PyObject *op); |
236 | | PyAPI_FUNC(void) _Py_INCREF_IncRefTotal(void); |
237 | | PyAPI_FUNC(void) _Py_DECREF_DecRefTotal(void); |
238 | | #endif // Py_REF_DEBUG && !Py_LIMITED_API |
239 | | |
240 | | PyAPI_FUNC(void) _Py_Dealloc(PyObject *); |
241 | | |
242 | | |
243 | | /* |
244 | | These are provided as conveniences to Python runtime embedders, so that |
245 | | they can have object code that is not dependent on Python compilation flags. |
246 | | */ |
247 | | PyAPI_FUNC(void) Py_IncRef(PyObject *); |
248 | | PyAPI_FUNC(void) Py_DecRef(PyObject *); |
249 | | |
250 | | // Similar to Py_IncRef() and Py_DecRef() but the argument must be non-NULL. |
251 | | // Private functions used by Py_INCREF() and Py_DECREF(). |
252 | | PyAPI_FUNC(void) _Py_IncRef(PyObject *); |
253 | | PyAPI_FUNC(void) _Py_DecRef(PyObject *); |
254 | | |
255 | | static inline Py_ALWAYS_INLINE void Py_INCREF(PyObject *op) |
256 | 9.95G | { |
257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ |
258 | | || defined(_Py_OPAQUE_PYOBJECT) |
259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API |
260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. |
261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. |
262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. |
263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 |
264 | | _Py_IncRef(op); |
265 | | # else |
266 | | Py_IncRef(op); |
267 | | # endif |
268 | | #else |
269 | | // Non-limited C API and limited C API for Python 3.9 and older access |
270 | | // directly PyObject.ob_refcnt. |
271 | | #if defined(Py_GIL_DISABLED) |
272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); |
273 | | uint32_t new_local = local + 1; |
274 | | if (new_local == 0) { |
275 | | _Py_INCREF_IMMORTAL_STAT_INC(); |
276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing |
277 | | return; |
278 | | } |
279 | | if (_Py_IsOwnedByCurrentThread(op)) { |
280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); |
281 | | } |
282 | | else { |
283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); |
284 | | } |
285 | | #elif SIZEOF_VOID_P > 4 |
286 | | uint32_t cur_refcnt = op->ob_refcnt; |
287 | 9.95G | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { |
288 | | // the object is immortal |
289 | 5.47G | _Py_INCREF_IMMORTAL_STAT_INC(); |
290 | 5.47G | return; |
291 | 5.47G | } |
292 | 4.48G | op->ob_refcnt = cur_refcnt + 1; |
293 | | #else |
294 | | if (_Py_IsImmortal(op)) { |
295 | | _Py_INCREF_IMMORTAL_STAT_INC(); |
296 | | return; |
297 | | } |
298 | | op->ob_refcnt++; |
299 | | #endif |
300 | 4.48G | _Py_INCREF_STAT_INC(); |
301 | | #ifdef Py_REF_DEBUG |
302 | | // Don't count the incref if the object is immortal. |
303 | | if (!_Py_IsImmortal(op)) { |
304 | | _Py_INCREF_IncRefTotal(); |
305 | | } |
306 | | #endif |
307 | 4.48G | #endif |
308 | 4.48G | } Line | Count | Source | 256 | 153M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 153M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 151M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 151M | return; | 291 | 151M | } | 292 | 2.49M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 2.49M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 2.49M | #endif | 308 | 2.49M | } |
Line | Count | Source | 256 | 33.2M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 33.2M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 18.6M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 18.6M | return; | 291 | 18.6M | } | 292 | 14.5M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 14.5M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 14.5M | #endif | 308 | 14.5M | } |
Line | Count | Source | 256 | 190M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 190M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 45.8M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 45.8M | return; | 291 | 45.8M | } | 292 | 144M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 144M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 144M | #endif | 308 | 144M | } |
genericaliasobject.c:Py_INCREF Line | Count | Source | 256 | 2.20k | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 2.20k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 1.64k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 1.64k | return; | 291 | 1.64k | } | 292 | 554 | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 554 | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 554 | #endif | 308 | 554 | } |
Line | Count | Source | 256 | 652k | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 652k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 652k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 652k | return; | 291 | 652k | } | 292 | 0 | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 0 | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 0 | #endif | 308 | 0 | } |
Line | Count | Source | 256 | 1.72G | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 1.72G | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 235M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 235M | return; | 291 | 235M | } | 292 | 1.48G | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 1.48G | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 1.48G | #endif | 308 | 1.48G | } |
Line | Count | Source | 256 | 96.0M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 96.0M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 96.0M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 96.0M | return; | 291 | 96.0M | } | 292 | 1.03k | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 1.03k | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 1.03k | #endif | 308 | 1.03k | } |
Line | Count | Source | 256 | 730M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 730M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 237M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 237M | return; | 291 | 237M | } | 292 | 492M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 492M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 492M | #endif | 308 | 492M | } |
Line | Count | Source | 256 | 2.78M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 2.78M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 1 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 1 | return; | 291 | 1 | } | 292 | 2.78M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 2.78M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 2.78M | #endif | 308 | 2.78M | } |
Line | Count | Source | 256 | 8.04k | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 8.04k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 6.55k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 6.55k | return; | 291 | 6.55k | } | 292 | 1.49k | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 1.49k | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 1.49k | #endif | 308 | 1.49k | } |
Line | Count | Source | 256 | 612M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 612M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 443M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 443M | return; | 291 | 443M | } | 292 | 169M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 169M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 169M | #endif | 308 | 169M | } |
Unexecuted instantiation: obmalloc.c:Py_INCREF Unexecuted instantiation: picklebufobject.c:Py_INCREF Line | Count | Source | 256 | 144 | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 144 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 108 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 108 | return; | 291 | 108 | } | 292 | 36 | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 36 | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 36 | #endif | 308 | 36 | } |
sentinelobject.c:Py_INCREF Line | Count | Source | 256 | 167 | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 167 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 159 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 159 | return; | 291 | 159 | } | 292 | 8 | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 8 | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 8 | #endif | 308 | 8 | } |
Line | Count | Source | 256 | 4.32M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 4.32M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 450k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 450k | return; | 291 | 450k | } | 292 | 3.87M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 3.87M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 3.87M | #endif | 308 | 3.87M | } |
Line | Count | Source | 256 | 186M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 186M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 96.7M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 96.7M | return; | 291 | 96.7M | } | 292 | 89.2M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 89.2M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 89.2M | #endif | 308 | 89.2M | } |
Line | Count | Source | 256 | 132k | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 132k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 120k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 120k | return; | 291 | 120k | } | 292 | 12.0k | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 12.0k | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 12.0k | #endif | 308 | 12.0k | } |
templateobject.c:Py_INCREF Line | Count | Source | 256 | 22 | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 22 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 7 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 7 | return; | 291 | 7 | } | 292 | 15 | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 15 | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 15 | #endif | 308 | 15 | } |
Line | Count | Source | 256 | 1.91G | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 1.91G | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 1.63G | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 1.63G | return; | 291 | 1.63G | } | 292 | 282M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 282M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 282M | #endif | 308 | 282M | } |
Line | Count | Source | 256 | 329M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 329M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 204M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 204M | return; | 291 | 204M | } | 292 | 125M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 125M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 125M | #endif | 308 | 125M | } |
typevarobject.c:Py_INCREF Line | Count | Source | 256 | 2.19k | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 2.19k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 778 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 778 | return; | 291 | 778 | } | 292 | 1.42k | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 1.42k | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 1.42k | #endif | 308 | 1.42k | } |
unicode_format.c:Py_INCREF Line | Count | Source | 256 | 15.7M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 15.7M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 6.64M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 6.64M | return; | 291 | 6.64M | } | 292 | 9.06M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 9.06M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 9.06M | #endif | 308 | 9.06M | } |
Unexecuted instantiation: unicode_formatter.c:Py_INCREF unicode_writer.c:Py_INCREF Line | Count | Source | 256 | 7.99k | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 7.99k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 0 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 0 | return; | 291 | 0 | } | 292 | 7.99k | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 7.99k | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 7.99k | #endif | 308 | 7.99k | } |
Unexecuted instantiation: unicodectype.c:Py_INCREF unicodeobject.c:Py_INCREF Line | Count | Source | 256 | 656M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 656M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 593M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 593M | return; | 291 | 593M | } | 292 | 62.2M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 62.2M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 62.2M | #endif | 308 | 62.2M | } |
Line | Count | Source | 256 | 920 | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 920 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 596 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 596 | return; | 291 | 596 | } | 292 | 324 | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 324 | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 324 | #endif | 308 | 324 | } |
weakrefobject.c:Py_INCREF Line | Count | Source | 256 | 3.46M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 3.46M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 120k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 120k | return; | 291 | 120k | } | 292 | 3.34M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 3.34M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 3.34M | #endif | 308 | 3.34M | } |
Line | Count | Source | 256 | 1.01M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 1.01M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 439k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 439k | return; | 291 | 439k | } | 292 | 573k | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 573k | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 573k | #endif | 308 | 573k | } |
Line | Count | Source | 256 | 84.6M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 84.6M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 48.8M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 48.8M | return; | 291 | 48.8M | } | 292 | 35.7M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 35.7M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 35.7M | #endif | 308 | 35.7M | } |
Line | Count | Source | 256 | 1.09G | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 1.09G | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 579M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 579M | return; | 291 | 579M | } | 292 | 516M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 516M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 516M | #endif | 308 | 516M | } |
Line | Count | Source | 256 | 7.10M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 7.10M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 762k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 762k | return; | 291 | 762k | } | 292 | 6.34M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 6.34M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 6.34M | #endif | 308 | 6.34M | } |
Line | Count | Source | 256 | 2.01k | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 2.01k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 2.01k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 2.01k | return; | 291 | 2.01k | } | 292 | 0 | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 0 | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 0 | #endif | 308 | 0 | } |
Line | Count | Source | 256 | 61.1k | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 61.1k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 30.4k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 30.4k | return; | 291 | 30.4k | } | 292 | 30.7k | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 30.7k | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 30.7k | #endif | 308 | 30.7k | } |
Line | Count | Source | 256 | 65 | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 65 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 29 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 29 | return; | 291 | 29 | } | 292 | 36 | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 36 | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 36 | #endif | 308 | 36 | } |
Line | Count | Source | 256 | 91.2M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 91.2M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 39.6M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 39.6M | return; | 291 | 39.6M | } | 292 | 51.6M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 51.6M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 51.6M | #endif | 308 | 51.6M | } |
Line | Count | Source | 256 | 63.8k | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 63.8k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 35.7k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 35.7k | return; | 291 | 35.7k | } | 292 | 28.1k | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 28.1k | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 28.1k | #endif | 308 | 28.1k | } |
Line | Count | Source | 256 | 62.8M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 62.8M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 0 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 0 | return; | 291 | 0 | } | 292 | 62.8M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 62.8M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 62.8M | #endif | 308 | 62.8M | } |
Unexecuted instantiation: future.c:Py_INCREF Line | Count | Source | 256 | 521M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 521M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 451M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 451M | return; | 291 | 451M | } | 292 | 70.5M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 70.5M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 70.5M | #endif | 308 | 70.5M | } |
Unexecuted instantiation: gc_gil.c:Py_INCREF Line | Count | Source | 256 | 2.16M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 2.16M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 1.46M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 1.46M | return; | 291 | 1.46M | } | 292 | 700k | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 700k | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 700k | #endif | 308 | 700k | } |
Unexecuted instantiation: ceval_gil.c:Py_INCREF Unexecuted instantiation: hamt.c:Py_INCREF Unexecuted instantiation: hashtable.c:Py_INCREF Line | Count | Source | 256 | 9.24M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 9.24M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 2.11M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 2.11M | return; | 291 | 2.11M | } | 292 | 7.12M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 7.12M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 7.12M | #endif | 308 | 7.12M | } |
Line | Count | Source | 256 | 1.35k | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 1.35k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 1.03k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 1.03k | return; | 291 | 1.03k | } | 292 | 317 | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 317 | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 317 | #endif | 308 | 317 | } |
Line | Count | Source | 256 | 612 | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 612 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 612 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 612 | return; | 291 | 612 | } | 292 | 0 | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 0 | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 0 | #endif | 308 | 0 | } |
Unexecuted instantiation: instrumentation.c:Py_INCREF Unexecuted instantiation: instruction_sequence.c:Py_INCREF Line | Count | Source | 256 | 64.7k | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 64.7k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 0 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 0 | return; | 291 | 0 | } | 292 | 64.7k | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 64.7k | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 64.7k | #endif | 308 | 64.7k | } |
Unexecuted instantiation: legacy_tracing.c:Py_INCREF Unexecuted instantiation: lock.c:Py_INCREF Line | Count | Source | 256 | 1.83M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 1.83M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 1.67M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 1.67M | return; | 291 | 1.67M | } | 292 | 160k | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 160k | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 160k | #endif | 308 | 160k | } |
Line | Count | Source | 256 | 2.43M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 2.43M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 397k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 397k | return; | 291 | 397k | } | 292 | 2.03M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 2.03M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 2.03M | #endif | 308 | 2.03M | } |
Unexecuted instantiation: mysnprintf.c:Py_INCREF Unexecuted instantiation: parking_lot.c:Py_INCREF Unexecuted instantiation: preconfig.c:Py_INCREF Unexecuted instantiation: pyarena.c:Py_INCREF Unexecuted instantiation: pyctype.c:Py_INCREF Unexecuted instantiation: pyhash.c:Py_INCREF Line | Count | Source | 256 | 36 | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 36 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 0 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 0 | return; | 291 | 0 | } | 292 | 36 | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 36 | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 36 | #endif | 308 | 36 | } |
Unexecuted instantiation: pymath.c:Py_INCREF Line | Count | Source | 256 | 176k | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 176k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 0 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 0 | return; | 291 | 0 | } | 292 | 176k | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 176k | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 176k | #endif | 308 | 176k | } |
Unexecuted instantiation: pythonrun.c:Py_INCREF Unexecuted instantiation: pytime.c:Py_INCREF Unexecuted instantiation: qsbr.c:Py_INCREF Unexecuted instantiation: bootstrap_hash.c:Py_INCREF Unexecuted instantiation: specialize.c:Py_INCREF Unexecuted instantiation: slots.c:Py_INCREF Unexecuted instantiation: slots_generated.c:Py_INCREF Line | Count | Source | 256 | 6.86M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 6.86M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 886k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 886k | return; | 291 | 886k | } | 292 | 5.98M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 5.98M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 5.98M | #endif | 308 | 5.98M | } |
Line | Count | Source | 256 | 116k | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 116k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 116k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 116k | return; | 291 | 116k | } | 292 | 278 | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 278 | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 278 | #endif | 308 | 278 | } |
Line | Count | Source | 256 | 3.95k | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 3.95k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 2.27k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 2.27k | return; | 291 | 2.27k | } | 292 | 1.67k | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 1.67k | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 1.67k | #endif | 308 | 1.67k | } |
Unexecuted instantiation: thread.c:Py_INCREF Line | Count | Source | 256 | 92.0M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 92.0M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 0 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 0 | return; | 291 | 0 | } | 292 | 92.0M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 92.0M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 92.0M | #endif | 308 | 92.0M | } |
Unexecuted instantiation: tracemalloc.c:Py_INCREF Unexecuted instantiation: getopt.c:Py_INCREF Unexecuted instantiation: pystrcmp.c:Py_INCREF Unexecuted instantiation: pystrtod.c:Py_INCREF Unexecuted instantiation: pystrhex.c:Py_INCREF Unexecuted instantiation: dtoa.c:Py_INCREF Unexecuted instantiation: fileutils.c:Py_INCREF Unexecuted instantiation: suggestions.c:Py_INCREF Unexecuted instantiation: perf_trampoline.c:Py_INCREF Unexecuted instantiation: perf_jit_trampoline.c:Py_INCREF Unexecuted instantiation: jit_unwind.c:Py_INCREF Unexecuted instantiation: remote_debugging.c:Py_INCREF Unexecuted instantiation: dynload_shlib.c:Py_INCREF Unexecuted instantiation: config.c:Py_INCREF Unexecuted instantiation: gcmodule.c:Py_INCREF Unexecuted instantiation: _asynciomodule.c:Py_INCREF Line | Count | Source | 256 | 2 | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 2 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 0 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 0 | return; | 291 | 0 | } | 292 | 2 | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 2 | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 2 | #endif | 308 | 2 | } |
Unexecuted instantiation: faulthandler.c:Py_INCREF Line | Count | Source | 256 | 2.08M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 2.08M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 384k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 384k | return; | 291 | 384k | } | 292 | 1.69M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 1.69M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 1.69M | #endif | 308 | 1.69M | } |
Line | Count | Source | 256 | 2.30k | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 2.30k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 2.30k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 2.30k | return; | 291 | 2.30k | } | 292 | 0 | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 0 | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 0 | #endif | 308 | 0 | } |
Unexecuted instantiation: _tracemalloc.c:Py_INCREF Unexecuted instantiation: _suggestions.c:Py_INCREF _datetimemodule.c:Py_INCREF Line | Count | Source | 256 | 36.8k | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 36.8k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 20.3k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 20.3k | return; | 291 | 20.3k | } | 292 | 16.5k | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 16.5k | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 16.5k | #endif | 308 | 16.5k | } |
Unexecuted instantiation: _codecsmodule.c:Py_INCREF _collectionsmodule.c:Py_INCREF Line | Count | Source | 256 | 23.3M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 23.3M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 21.0M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 21.0M | return; | 291 | 21.0M | } | 292 | 2.28M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 2.28M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 2.28M | #endif | 308 | 2.28M | } |
Unexecuted instantiation: errnomodule.c:Py_INCREF Line | Count | Source | 256 | 271 | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 271 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 245 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 245 | return; | 291 | 245 | } | 292 | 26 | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 26 | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 26 | #endif | 308 | 26 | } |
Line | Count | Source | 256 | 90.5k | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 90.5k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 0 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 0 | return; | 291 | 0 | } | 292 | 90.5k | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 90.5k | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 90.5k | #endif | 308 | 90.5k | } |
Unexecuted instantiation: fileio.c:Py_INCREF Line | Count | Source | 256 | 71.9k | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 71.9k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 2.48k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 2.48k | return; | 291 | 2.48k | } | 292 | 69.5k | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 69.5k | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 69.5k | #endif | 308 | 69.5k | } |
Line | Count | Source | 256 | 35.7k | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 35.7k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 0 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 0 | return; | 291 | 0 | } | 292 | 35.7k | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 35.7k | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 35.7k | #endif | 308 | 35.7k | } |
Line | Count | Source | 256 | 248k | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 248k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 19.9k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 19.9k | return; | 291 | 19.9k | } | 292 | 228k | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 228k | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 228k | #endif | 308 | 228k | } |
Line | Count | Source | 256 | 15.9k | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 15.9k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 50 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 50 | return; | 291 | 50 | } | 292 | 15.9k | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 15.9k | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 15.9k | #endif | 308 | 15.9k | } |
itertoolsmodule.c:Py_INCREF Line | Count | Source | 256 | 41.2k | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 41.2k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 39.8k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 39.8k | return; | 291 | 39.8k | } | 292 | 1.32k | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 1.32k | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 1.32k | #endif | 308 | 1.32k | } |
Line | Count | Source | 256 | 167M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 167M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 40.7M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 40.7M | return; | 291 | 40.7M | } | 292 | 126M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 126M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 126M | #endif | 308 | 126M | } |
Unexecuted instantiation: _sysconfig.c:Py_INCREF _threadmodule.c:Py_INCREF Line | Count | Source | 256 | 144 | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 144 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 72 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 72 | return; | 291 | 72 | } | 292 | 72 | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 72 | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 72 | #endif | 308 | 72 | } |
Unexecuted instantiation: timemodule.c:Py_INCREF Unexecuted instantiation: _typesmodule.c:Py_INCREF Unexecuted instantiation: _typingmodule.c:Py_INCREF Unexecuted instantiation: _weakref.c:Py_INCREF Line | Count | Source | 256 | 108k | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 108k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 107k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 107k | return; | 291 | 107k | } | 292 | 383 | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 383 | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 383 | #endif | 308 | 383 | } |
_functoolsmodule.c:Py_INCREF Line | Count | Source | 256 | 208k | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 208k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 23.5k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 23.5k | return; | 291 | 23.5k | } | 292 | 185k | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 185k | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 185k | #endif | 308 | 185k | } |
Unexecuted instantiation: _localemodule.c:Py_INCREF Unexecuted instantiation: _opcode.c:Py_INCREF Line | Count | Source | 256 | 1.43M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 1.43M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 1.40M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 1.40M | return; | 291 | 1.40M | } | 292 | 24.5k | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 24.5k | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 24.5k | #endif | 308 | 24.5k | } |
Unexecuted instantiation: _stat.c:Py_INCREF Unexecuted instantiation: symtablemodule.c:Py_INCREF Unexecuted instantiation: pwdmodule.c:Py_INCREF Line | Count | Source | 256 | 360 | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 360 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 360 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 360 | return; | 291 | 360 | } | 292 | 0 | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 0 | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 0 | #endif | 308 | 0 | } |
Unexecuted instantiation: frozen.c:Py_INCREF Unexecuted instantiation: getbuildinfo.c:Py_INCREF Unexecuted instantiation: peg_api.c:Py_INCREF Unexecuted instantiation: file_tokenizer.c:Py_INCREF Unexecuted instantiation: helpers.c:Py_INCREF Unexecuted instantiation: myreadline.c:Py_INCREF Line | Count | Source | 256 | 567M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 567M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 329M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 329M | return; | 291 | 329M | } | 292 | 237M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 237M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 237M | #endif | 308 | 237M | } |
Unexecuted instantiation: boolobject.c:Py_INCREF Unexecuted instantiation: bytes_methods.c:Py_INCREF bytearrayobject.c:Py_INCREF Line | Count | Source | 256 | 22.3M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 22.3M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 0 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 0 | return; | 291 | 0 | } | 292 | 22.3M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 22.3M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 22.3M | #endif | 308 | 22.3M | } |
Unexecuted instantiation: capsule.c:Py_INCREF Line | Count | Source | 256 | 5.73M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 5.73M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 1.00M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 1.00M | return; | 291 | 1.00M | } | 292 | 4.73M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 4.73M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 4.73M | #endif | 308 | 4.73M | } |
Line | Count | Source | 256 | 89.8M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 89.8M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 125 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 125 | return; | 291 | 125 | } | 292 | 89.8M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 89.8M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 89.8M | #endif | 308 | 89.8M | } |
Line | Count | Source | 256 | 2.07M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 2.07M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 831k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 831k | return; | 291 | 831k | } | 292 | 1.23M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 1.23M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 1.23M | #endif | 308 | 1.23M | } |
complexobject.c:Py_INCREF Line | Count | Source | 256 | 5.15k | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 5.15k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 5.15k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 5.15k | return; | 291 | 5.15k | } | 292 | 0 | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 0 | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 0 | #endif | 308 | 0 | } |
Line | Count | Source | 256 | 22.0M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 22.0M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 71.0k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 71.0k | return; | 291 | 71.0k | } | 292 | 21.9M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 21.9M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 21.9M | #endif | 308 | 21.9M | } |
Line | Count | Source | 256 | 33.4M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 33.4M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 12 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 12 | return; | 291 | 12 | } | 292 | 33.4M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 33.4M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 33.4M | #endif | 308 | 33.4M | } |
Line | Count | Source | 256 | 92.6M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 92.6M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 92.4M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 92.4M | return; | 291 | 92.4M | } | 292 | 166k | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 166k | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 166k | #endif | 308 | 166k | } |
Unexecuted instantiation: fileobject.c:Py_INCREF Line | Count | Source | 256 | 23.4M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 23.4M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 168 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 168 | return; | 291 | 168 | } | 292 | 23.4M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 23.4M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 23.4M | #endif | 308 | 23.4M | } |
Line | Count | Source | 256 | 108M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 108M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 64.9M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 64.9M | return; | 291 | 64.9M | } | 292 | 43.9M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 43.9M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 43.9M | #endif | 308 | 43.9M | } |
interpolationobject.c:Py_INCREF Line | Count | Source | 256 | 12 | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 12 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 12 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 12 | return; | 291 | 12 | } | 292 | 0 | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 0 | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 0 | #endif | 308 | 0 | } |
Line | Count | Source | 256 | 3.14M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 3.14M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 363k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 363k | return; | 291 | 363k | } | 292 | 2.77M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 2.77M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 2.77M | #endif | 308 | 2.77M | } |
lazyimportobject.c:Py_INCREF Line | Count | Source | 256 | 1.46k | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 1.46k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 532 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 532 | return; | 291 | 532 | } | 292 | 929 | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 929 | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 929 | #endif | 308 | 929 | } |
Line | Count | Source | 256 | 244k | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 244k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 136k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 136k | return; | 291 | 136k | } | 292 | 108k | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 108k | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 108k | #endif | 308 | 108k | } |
Line | Count | Source | 256 | 158M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 158M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 30.1M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 30.1M | return; | 291 | 30.1M | } | 292 | 128M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 128M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 128M | #endif | 308 | 128M | } |
Unexecuted instantiation: namespaceobject.c:Py_INCREF Unexecuted instantiation: _contextvars.c:Py_INCREF Line | Count | Source | 256 | 550k | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 550k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 244k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 244k | return; | 291 | 244k | } | 292 | 306k | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 306k | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 306k | #endif | 308 | 306k | } |
Unexecuted instantiation: Python-tokenize.c:Py_INCREF Unexecuted instantiation: asdl.c:Py_INCREF Line | Count | Source | 256 | 20.5k | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 20.5k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 20.4k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 20.4k | return; | 291 | 20.4k | } | 292 | 16 | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 16 | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 16 | #endif | 308 | 16 | } |
Unexecuted instantiation: ast.c:Py_INCREF Unexecuted instantiation: ast_preprocess.c:Py_INCREF Unexecuted instantiation: ast_unparse.c:Py_INCREF Unexecuted instantiation: critical_section.c:Py_INCREF Unexecuted instantiation: crossinterp.c:Py_INCREF Unexecuted instantiation: getcopyright.c:Py_INCREF Unexecuted instantiation: getplatform.c:Py_INCREF Unexecuted instantiation: getversion.c:Py_INCREF Unexecuted instantiation: optimizer.c:Py_INCREF Unexecuted instantiation: pathconfig.c:Py_INCREF Line | Count | Source | 256 | 101k | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 101k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 1.30k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 1.30k | return; | 291 | 1.30k | } | 292 | 100k | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 100k | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 100k | #endif | 308 | 100k | } |
Unexecuted instantiation: pegen_errors.c:Py_INCREF Unexecuted instantiation: parser.c:Py_INCREF Unexecuted instantiation: buffer.c:Py_INCREF Unexecuted instantiation: lexer.c:Py_INCREF Unexecuted instantiation: number.c:Py_INCREF Unexecuted instantiation: state.c:Py_INCREF Unexecuted instantiation: string.c:Py_INCREF readline_tokenizer.c:Py_INCREF Line | Count | Source | 256 | 20 | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 20 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 0 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 0 | return; | 291 | 0 | } | 292 | 20 | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 20 | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 20 | #endif | 308 | 20 | } |
Unexecuted instantiation: string_tokenizer.c:Py_INCREF Unexecuted instantiation: utf8_tokenizer.c:Py_INCREF Unexecuted instantiation: getcompiler.c:Py_INCREF Unexecuted instantiation: mystrtoul.c:Py_INCREF Unexecuted instantiation: token.c:Py_INCREF Unexecuted instantiation: action_helpers.c:Py_INCREF Unexecuted instantiation: string_parser.c:Py_INCREF |
309 | | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000 |
310 | 9.95G | # define Py_INCREF(op) Py_INCREF(_PyObject_CAST(op)) |
311 | | #endif |
312 | | |
313 | | #if !defined(Py_LIMITED_API) |
314 | | #if defined(Py_GIL_DISABLED) |
315 | | // Implements Py_DECREF on objects not owned by the current thread. |
316 | | PyAPI_FUNC(void) _Py_DecRefShared(PyObject *); |
317 | | PyAPI_FUNC(void) _Py_DecRefSharedDebug(PyObject *, const char *, int); |
318 | | |
319 | | // Called from Py_DECREF by the owning thread when the local refcount reaches |
320 | | // zero. The call will deallocate the object if the shared refcount is also |
321 | | // zero. Otherwise, the thread gives up ownership and merges the reference |
322 | | // count fields. |
323 | | PyAPI_FUNC(void) _Py_MergeZeroLocalRefcount(PyObject *); |
324 | | #endif // Py_GIL_DISABLED |
325 | | #endif // Py_LIMITED_API |
326 | | |
327 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ |
328 | | || defined(_Py_OPAQUE_PYOBJECT) |
329 | | // Stable ABI implements Py_DECREF() as a function call on limited C API |
330 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. |
331 | | // _Py_DecRef() was added to Python 3.10.0a7, use Py_DecRef() on older versions. |
332 | | // Py_DecRef() accepts NULL whereas _Py_DecRef() doesn't. |
333 | 9.90k | static inline void Py_DECREF(PyObject *op) { |
334 | 9.90k | # if Py_LIMITED_API+0 >= 0x030a00A7 |
335 | 9.90k | _Py_DecRef(op); |
336 | | # else |
337 | | Py_DecRef(op); |
338 | | # endif |
339 | 9.90k | } Line | Count | Source | 333 | 9.90k | static inline void Py_DECREF(PyObject *op) { | 334 | 9.90k | # if Py_LIMITED_API+0 >= 0x030a00A7 | 335 | 9.90k | _Py_DecRef(op); | 336 | | # else | 337 | | Py_DecRef(op); | 338 | | # endif | 339 | 9.90k | } |
Unexecuted instantiation: _stat.c:Py_DECREF |
340 | 9.90k | #define Py_DECREF(op) Py_DECREF(_PyObject_CAST(op)) |
341 | | |
342 | | #elif defined(Py_GIL_DISABLED) && defined(Py_REF_DEBUG) |
343 | | static inline void Py_DECREF(const char *filename, int lineno, PyObject *op) |
344 | | { |
345 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); |
346 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { |
347 | | _Py_DECREF_IMMORTAL_STAT_INC(); |
348 | | return; |
349 | | } |
350 | | _Py_DECREF_STAT_INC(); |
351 | | _Py_DECREF_DecRefTotal(); |
352 | | if (_Py_IsOwnedByCurrentThread(op)) { |
353 | | if (local == 0) { |
354 | | _Py_NegativeRefcount(filename, lineno, op); |
355 | | } |
356 | | local--; |
357 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, local); |
358 | | if (local == 0) { |
359 | | _Py_MergeZeroLocalRefcount(op); |
360 | | } |
361 | | } |
362 | | else { |
363 | | _Py_DecRefSharedDebug(op, filename, lineno); |
364 | | } |
365 | | } |
366 | | #define Py_DECREF(op) Py_DECREF(__FILE__, __LINE__, _PyObject_CAST(op)) |
367 | | |
368 | | #elif defined(Py_GIL_DISABLED) |
369 | | static inline void Py_DECREF(PyObject *op) |
370 | | { |
371 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); |
372 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { |
373 | | _Py_DECREF_IMMORTAL_STAT_INC(); |
374 | | return; |
375 | | } |
376 | | _Py_DECREF_STAT_INC(); |
377 | | if (_Py_IsOwnedByCurrentThread(op)) { |
378 | | local--; |
379 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, local); |
380 | | if (local == 0) { |
381 | | _Py_MergeZeroLocalRefcount(op); |
382 | | } |
383 | | } |
384 | | else { |
385 | | _Py_DecRefShared(op); |
386 | | } |
387 | | } |
388 | | #define Py_DECREF(op) Py_DECREF(_PyObject_CAST(op)) |
389 | | |
390 | | #elif defined(Py_REF_DEBUG) |
391 | | |
392 | | static inline void Py_DECREF(const char *filename, int lineno, PyObject *op) |
393 | | { |
394 | | #if SIZEOF_VOID_P > 4 |
395 | | /* If an object has been freed, it will have a negative full refcnt |
396 | | * If it has not it been freed, will have a very large refcnt */ |
397 | | if (op->ob_refcnt_full <= 0 || op->ob_refcnt > (((uint32_t)-1) - (1<<20))) { |
398 | | #else |
399 | | if (op->ob_refcnt <= 0) { |
400 | | #endif |
401 | | _Py_NegativeRefcount(filename, lineno, op); |
402 | | } |
403 | | if (_Py_IsImmortal(op)) { |
404 | | _Py_DECREF_IMMORTAL_STAT_INC(); |
405 | | return; |
406 | | } |
407 | | _Py_DECREF_STAT_INC(); |
408 | | _Py_DECREF_DecRefTotal(); |
409 | | if (--op->ob_refcnt == 0) { |
410 | | _Py_Dealloc(op); |
411 | | } |
412 | | } |
413 | | #define Py_DECREF(op) Py_DECREF(__FILE__, __LINE__, _PyObject_CAST(op)) |
414 | | |
415 | | #else |
416 | | |
417 | | static inline Py_ALWAYS_INLINE void Py_DECREF(PyObject *op) |
418 | 10.6G | { |
419 | | // Non-limited C API and limited C API for Python 3.9 and older access |
420 | | // directly PyObject.ob_refcnt. |
421 | 10.6G | if (_Py_IsImmortal(op)) { |
422 | 5.64G | _Py_DECREF_IMMORTAL_STAT_INC(); |
423 | 5.64G | return; |
424 | 5.64G | } |
425 | 4.95G | _Py_DECREF_STAT_INC(); |
426 | 4.95G | if (--op->ob_refcnt == 0) { |
427 | 1.17G | _Py_Dealloc(op); |
428 | 1.17G | } |
429 | 4.95G | } Line | Count | Source | 418 | 32.8M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 32.8M | if (_Py_IsImmortal(op)) { | 422 | 30.5M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 30.5M | return; | 424 | 30.5M | } | 425 | 2.30M | _Py_DECREF_STAT_INC(); | 426 | 2.30M | if (--op->ob_refcnt == 0) { | 427 | 171k | _Py_Dealloc(op); | 428 | 171k | } | 429 | 2.30M | } |
Line | Count | Source | 418 | 230M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 230M | if (_Py_IsImmortal(op)) { | 422 | 80.7M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 80.7M | return; | 424 | 80.7M | } | 425 | 149M | _Py_DECREF_STAT_INC(); | 426 | 149M | if (--op->ob_refcnt == 0) { | 427 | 112M | _Py_Dealloc(op); | 428 | 112M | } | 429 | 149M | } |
Line | Count | Source | 418 | 203M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 203M | if (_Py_IsImmortal(op)) { | 422 | 49.6M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 49.6M | return; | 424 | 49.6M | } | 425 | 153M | _Py_DECREF_STAT_INC(); | 426 | 153M | if (--op->ob_refcnt == 0) { | 427 | 90.8M | _Py_Dealloc(op); | 428 | 90.8M | } | 429 | 153M | } |
genericaliasobject.c:Py_DECREF Line | Count | Source | 418 | 290 | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 290 | if (_Py_IsImmortal(op)) { | 422 | 165 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 165 | return; | 424 | 165 | } | 425 | 125 | _Py_DECREF_STAT_INC(); | 426 | 125 | if (--op->ob_refcnt == 0) { | 427 | 125 | _Py_Dealloc(op); | 428 | 125 | } | 429 | 125 | } |
Line | Count | Source | 418 | 56.5k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 56.5k | if (_Py_IsImmortal(op)) { | 422 | 55.9k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 55.9k | return; | 424 | 55.9k | } | 425 | 602 | _Py_DECREF_STAT_INC(); | 426 | 602 | if (--op->ob_refcnt == 0) { | 427 | 19 | _Py_Dealloc(op); | 428 | 19 | } | 429 | 602 | } |
Line | Count | Source | 418 | 2.11G | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 2.11G | if (_Py_IsImmortal(op)) { | 422 | 479M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 479M | return; | 424 | 479M | } | 425 | 1.63G | _Py_DECREF_STAT_INC(); | 426 | 1.63G | if (--op->ob_refcnt == 0) { | 427 | 281M | _Py_Dealloc(op); | 428 | 281M | } | 429 | 1.63G | } |
Line | Count | Source | 418 | 41.3M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 41.3M | if (_Py_IsImmortal(op)) { | 422 | 32.1M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 32.1M | return; | 424 | 32.1M | } | 425 | 9.17M | _Py_DECREF_STAT_INC(); | 426 | 9.17M | if (--op->ob_refcnt == 0) { | 427 | 3.07M | _Py_Dealloc(op); | 428 | 3.07M | } | 429 | 9.17M | } |
Line | Count | Source | 418 | 574M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 574M | if (_Py_IsImmortal(op)) { | 422 | 266M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 266M | return; | 424 | 266M | } | 425 | 307M | _Py_DECREF_STAT_INC(); | 426 | 307M | if (--op->ob_refcnt == 0) { | 427 | 67.8M | _Py_Dealloc(op); | 428 | 67.8M | } | 429 | 307M | } |
Line | Count | Source | 418 | 2.98M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 2.98M | if (_Py_IsImmortal(op)) { | 422 | 122k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 122k | return; | 424 | 122k | } | 425 | 2.86M | _Py_DECREF_STAT_INC(); | 426 | 2.86M | if (--op->ob_refcnt == 0) { | 427 | 1.35M | _Py_Dealloc(op); | 428 | 1.35M | } | 429 | 2.86M | } |
Line | Count | Source | 418 | 3.58M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 3.58M | if (_Py_IsImmortal(op)) { | 422 | 3.54M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 3.54M | return; | 424 | 3.54M | } | 425 | 43.4k | _Py_DECREF_STAT_INC(); | 426 | 43.4k | if (--op->ob_refcnt == 0) { | 427 | 4.19k | _Py_Dealloc(op); | 428 | 4.19k | } | 429 | 43.4k | } |
Line | Count | Source | 418 | 553M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 553M | if (_Py_IsImmortal(op)) { | 422 | 423M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 423M | return; | 424 | 423M | } | 425 | 130M | _Py_DECREF_STAT_INC(); | 426 | 130M | if (--op->ob_refcnt == 0) { | 427 | 770 | _Py_Dealloc(op); | 428 | 770 | } | 429 | 130M | } |
Unexecuted instantiation: obmalloc.c:Py_DECREF Unexecuted instantiation: picklebufobject.c:Py_DECREF Line | Count | Source | 418 | 47.6M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 47.6M | if (_Py_IsImmortal(op)) { | 422 | 47.2M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 47.2M | return; | 424 | 47.2M | } | 425 | 307k | _Py_DECREF_STAT_INC(); | 426 | 307k | if (--op->ob_refcnt == 0) { | 427 | 152k | _Py_Dealloc(op); | 428 | 152k | } | 429 | 307k | } |
sentinelobject.c:Py_DECREF Line | Count | Source | 418 | 53 | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 53 | if (_Py_IsImmortal(op)) { | 422 | 53 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 53 | return; | 424 | 53 | } | 425 | 0 | _Py_DECREF_STAT_INC(); | 426 | 0 | if (--op->ob_refcnt == 0) { | 427 | 0 | _Py_Dealloc(op); | 428 | 0 | } | 429 | 0 | } |
Line | Count | Source | 418 | 3.84M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 3.84M | if (_Py_IsImmortal(op)) { | 422 | 451k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 451k | return; | 424 | 451k | } | 425 | 3.38M | _Py_DECREF_STAT_INC(); | 426 | 3.38M | if (--op->ob_refcnt == 0) { | 427 | 242k | _Py_Dealloc(op); | 428 | 242k | } | 429 | 3.38M | } |
Line | Count | Source | 418 | 186M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 186M | if (_Py_IsImmortal(op)) { | 422 | 96.9M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 96.9M | return; | 424 | 96.9M | } | 425 | 89.3M | _Py_DECREF_STAT_INC(); | 426 | 89.3M | if (--op->ob_refcnt == 0) { | 427 | 24.1k | _Py_Dealloc(op); | 428 | 24.1k | } | 429 | 89.3M | } |
Line | Count | Source | 418 | 5.07M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 5.07M | if (_Py_IsImmortal(op)) { | 422 | 1.55M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 1.55M | return; | 424 | 1.55M | } | 425 | 3.51M | _Py_DECREF_STAT_INC(); | 426 | 3.51M | if (--op->ob_refcnt == 0) { | 427 | 3.19M | _Py_Dealloc(op); | 428 | 3.19M | } | 429 | 3.51M | } |
templateobject.c:Py_DECREF Line | Count | Source | 418 | 22 | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 22 | if (_Py_IsImmortal(op)) { | 422 | 7 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 7 | return; | 424 | 7 | } | 425 | 15 | _Py_DECREF_STAT_INC(); | 426 | 15 | if (--op->ob_refcnt == 0) { | 427 | 4 | _Py_Dealloc(op); | 428 | 4 | } | 429 | 15 | } |
Line | Count | Source | 418 | 2.33G | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 2.33G | if (_Py_IsImmortal(op)) { | 422 | 1.73G | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 1.73G | return; | 424 | 1.73G | } | 425 | 604M | _Py_DECREF_STAT_INC(); | 426 | 604M | if (--op->ob_refcnt == 0) { | 427 | 122M | _Py_Dealloc(op); | 428 | 122M | } | 429 | 604M | } |
Line | Count | Source | 418 | 321M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 321M | if (_Py_IsImmortal(op)) { | 422 | 86.0M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 86.0M | return; | 424 | 86.0M | } | 425 | 235M | _Py_DECREF_STAT_INC(); | 426 | 235M | if (--op->ob_refcnt == 0) { | 427 | 37.3M | _Py_Dealloc(op); | 428 | 37.3M | } | 429 | 235M | } |
typevarobject.c:Py_DECREF Line | Count | Source | 418 | 268k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 268k | if (_Py_IsImmortal(op)) { | 422 | 364 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 364 | return; | 424 | 364 | } | 425 | 267k | _Py_DECREF_STAT_INC(); | 426 | 267k | if (--op->ob_refcnt == 0) { | 427 | 816 | _Py_Dealloc(op); | 428 | 816 | } | 429 | 267k | } |
unicode_format.c:Py_DECREF Line | Count | Source | 418 | 31.4M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 31.4M | if (_Py_IsImmortal(op)) { | 422 | 6.68M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 6.68M | return; | 424 | 6.68M | } | 425 | 24.7M | _Py_DECREF_STAT_INC(); | 426 | 24.7M | if (--op->ob_refcnt == 0) { | 427 | 10.4M | _Py_Dealloc(op); | 428 | 10.4M | } | 429 | 24.7M | } |
unicode_formatter.c:Py_DECREF Line | Count | Source | 418 | 1.27k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 1.27k | if (_Py_IsImmortal(op)) { | 422 | 954 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 954 | return; | 424 | 954 | } | 425 | 318 | _Py_DECREF_STAT_INC(); | 426 | 318 | if (--op->ob_refcnt == 0) { | 427 | 318 | _Py_Dealloc(op); | 428 | 318 | } | 429 | 318 | } |
unicode_writer.c:Py_DECREF Line | Count | Source | 418 | 23.6M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 23.6M | if (_Py_IsImmortal(op)) { | 422 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 0 | return; | 424 | 0 | } | 425 | 23.6M | _Py_DECREF_STAT_INC(); | 426 | 23.6M | if (--op->ob_refcnt == 0) { | 427 | 23.6M | _Py_Dealloc(op); | 428 | 23.6M | } | 429 | 23.6M | } |
Unexecuted instantiation: unicodectype.c:Py_DECREF unicodeobject.c:Py_DECREF Line | Count | Source | 418 | 170M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 170M | if (_Py_IsImmortal(op)) { | 422 | 91.2M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 91.2M | return; | 424 | 91.2M | } | 425 | 79.0M | _Py_DECREF_STAT_INC(); | 426 | 79.0M | if (--op->ob_refcnt == 0) { | 427 | 17.5M | _Py_Dealloc(op); | 428 | 17.5M | } | 429 | 79.0M | } |
Line | Count | Source | 418 | 4.41k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 4.41k | if (_Py_IsImmortal(op)) { | 422 | 572 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 572 | return; | 424 | 572 | } | 425 | 3.84k | _Py_DECREF_STAT_INC(); | 426 | 3.84k | if (--op->ob_refcnt == 0) { | 427 | 3.25k | _Py_Dealloc(op); | 428 | 3.25k | } | 429 | 3.84k | } |
weakrefobject.c:Py_DECREF Line | Count | Source | 418 | 2.65M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 2.65M | if (_Py_IsImmortal(op)) { | 422 | 148k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 148k | return; | 424 | 148k | } | 425 | 2.50M | _Py_DECREF_STAT_INC(); | 426 | 2.50M | if (--op->ob_refcnt == 0) { | 427 | 29.3k | _Py_Dealloc(op); | 428 | 29.3k | } | 429 | 2.50M | } |
Line | Count | Source | 418 | 26.5M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 26.5M | if (_Py_IsImmortal(op)) { | 422 | 973k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 973k | return; | 424 | 973k | } | 425 | 25.5M | _Py_DECREF_STAT_INC(); | 426 | 25.5M | if (--op->ob_refcnt == 0) { | 427 | 380k | _Py_Dealloc(op); | 428 | 380k | } | 429 | 25.5M | } |
Line | Count | Source | 418 | 1.57G | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 1.57G | if (_Py_IsImmortal(op)) { | 422 | 1.41G | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 1.41G | return; | 424 | 1.41G | } | 425 | 165M | _Py_DECREF_STAT_INC(); | 426 | 165M | if (--op->ob_refcnt == 0) { | 427 | 104M | _Py_Dealloc(op); | 428 | 104M | } | 429 | 165M | } |
Line | Count | Source | 418 | 122k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 122k | if (_Py_IsImmortal(op)) { | 422 | 723 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 723 | return; | 424 | 723 | } | 425 | 121k | _Py_DECREF_STAT_INC(); | 426 | 121k | if (--op->ob_refcnt == 0) { | 427 | 536 | _Py_Dealloc(op); | 428 | 536 | } | 429 | 121k | } |
Line | Count | Source | 418 | 15.2M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 15.2M | if (_Py_IsImmortal(op)) { | 422 | 5.24M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 5.24M | return; | 424 | 5.24M | } | 425 | 9.96M | _Py_DECREF_STAT_INC(); | 426 | 9.96M | if (--op->ob_refcnt == 0) { | 427 | 4.72M | _Py_Dealloc(op); | 428 | 4.72M | } | 429 | 9.96M | } |
Line | Count | Source | 418 | 62.4k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 62.4k | if (_Py_IsImmortal(op)) { | 422 | 54.8k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 54.8k | return; | 424 | 54.8k | } | 425 | 7.61k | _Py_DECREF_STAT_INC(); | 426 | 7.61k | if (--op->ob_refcnt == 0) { | 427 | 266 | _Py_Dealloc(op); | 428 | 266 | } | 429 | 7.61k | } |
Line | Count | Source | 418 | 321k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 321k | if (_Py_IsImmortal(op)) { | 422 | 166k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 166k | return; | 424 | 166k | } | 425 | 154k | _Py_DECREF_STAT_INC(); | 426 | 154k | if (--op->ob_refcnt == 0) { | 427 | 58.1k | _Py_Dealloc(op); | 428 | 58.1k | } | 429 | 154k | } |
Line | Count | Source | 418 | 72 | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 72 | if (_Py_IsImmortal(op)) { | 422 | 36 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 36 | return; | 424 | 36 | } | 425 | 36 | _Py_DECREF_STAT_INC(); | 426 | 36 | if (--op->ob_refcnt == 0) { | 427 | 0 | _Py_Dealloc(op); | 428 | 0 | } | 429 | 36 | } |
Line | Count | Source | 418 | 94.2M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 94.2M | if (_Py_IsImmortal(op)) { | 422 | 39.6M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 39.6M | return; | 424 | 39.6M | } | 425 | 54.6M | _Py_DECREF_STAT_INC(); | 426 | 54.6M | if (--op->ob_refcnt == 0) { | 427 | 18.6M | _Py_Dealloc(op); | 428 | 18.6M | } | 429 | 54.6M | } |
Line | Count | Source | 418 | 59.7k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 59.7k | if (_Py_IsImmortal(op)) { | 422 | 37.3k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 37.3k | return; | 424 | 37.3k | } | 425 | 22.4k | _Py_DECREF_STAT_INC(); | 426 | 22.4k | if (--op->ob_refcnt == 0) { | 427 | 121 | _Py_Dealloc(op); | 428 | 121 | } | 429 | 22.4k | } |
Line | Count | Source | 418 | 58.7M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 58.7M | if (_Py_IsImmortal(op)) { | 422 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 0 | return; | 424 | 0 | } | 425 | 58.7M | _Py_DECREF_STAT_INC(); | 426 | 58.7M | if (--op->ob_refcnt == 0) { | 427 | 16.6M | _Py_Dealloc(op); | 428 | 16.6M | } | 429 | 58.7M | } |
Unexecuted instantiation: future.c:Py_DECREF Line | Count | Source | 418 | 4.02M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 4.02M | if (_Py_IsImmortal(op)) { | 422 | 45.4k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 45.4k | return; | 424 | 45.4k | } | 425 | 3.98M | _Py_DECREF_STAT_INC(); | 426 | 3.98M | if (--op->ob_refcnt == 0) { | 427 | 857k | _Py_Dealloc(op); | 428 | 857k | } | 429 | 3.98M | } |
Unexecuted instantiation: gc_gil.c:Py_DECREF Line | Count | Source | 418 | 9.57M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 9.57M | if (_Py_IsImmortal(op)) { | 422 | 8.75M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 8.75M | return; | 424 | 8.75M | } | 425 | 827k | _Py_DECREF_STAT_INC(); | 426 | 827k | if (--op->ob_refcnt == 0) { | 427 | 0 | _Py_Dealloc(op); | 428 | 0 | } | 429 | 827k | } |
Unexecuted instantiation: ceval_gil.c:Py_DECREF Unexecuted instantiation: hamt.c:Py_DECREF Unexecuted instantiation: hashtable.c:Py_DECREF Line | Count | Source | 418 | 14.5M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 14.5M | if (_Py_IsImmortal(op)) { | 422 | 2.11M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 2.11M | return; | 424 | 2.11M | } | 425 | 12.3M | _Py_DECREF_STAT_INC(); | 426 | 12.3M | if (--op->ob_refcnt == 0) { | 427 | 122k | _Py_Dealloc(op); | 428 | 122k | } | 429 | 12.3M | } |
Line | Count | Source | 418 | 3.14k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 3.14k | if (_Py_IsImmortal(op)) { | 422 | 1.23k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 1.23k | return; | 424 | 1.23k | } | 425 | 1.91k | _Py_DECREF_STAT_INC(); | 426 | 1.91k | if (--op->ob_refcnt == 0) { | 427 | 1.15k | _Py_Dealloc(op); | 428 | 1.15k | } | 429 | 1.91k | } |
Line | Count | Source | 418 | 5.11k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 5.11k | if (_Py_IsImmortal(op)) { | 422 | 4.14k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 4.14k | return; | 424 | 4.14k | } | 425 | 972 | _Py_DECREF_STAT_INC(); | 426 | 972 | if (--op->ob_refcnt == 0) { | 427 | 0 | _Py_Dealloc(op); | 428 | 0 | } | 429 | 972 | } |
instrumentation.c:Py_DECREF Line | Count | Source | 418 | 864 | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 864 | if (_Py_IsImmortal(op)) { | 422 | 540 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 540 | return; | 424 | 540 | } | 425 | 324 | _Py_DECREF_STAT_INC(); | 426 | 324 | if (--op->ob_refcnt == 0) { | 427 | 0 | _Py_Dealloc(op); | 428 | 0 | } | 429 | 324 | } |
instruction_sequence.c:Py_DECREF Line | Count | Source | 418 | 1 | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 1 | if (_Py_IsImmortal(op)) { | 422 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 0 | return; | 424 | 0 | } | 425 | 1 | _Py_DECREF_STAT_INC(); | 426 | 1 | if (--op->ob_refcnt == 0) { | 427 | 1 | _Py_Dealloc(op); | 428 | 1 | } | 429 | 1 | } |
Line | Count | Source | 418 | 83.7k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 83.7k | if (_Py_IsImmortal(op)) { | 422 | 47.1k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 47.1k | return; | 424 | 47.1k | } | 425 | 36.6k | _Py_DECREF_STAT_INC(); | 426 | 36.6k | if (--op->ob_refcnt == 0) { | 427 | 342 | _Py_Dealloc(op); | 428 | 342 | } | 429 | 36.6k | } |
Unexecuted instantiation: legacy_tracing.c:Py_DECREF Unexecuted instantiation: lock.c:Py_DECREF Line | Count | Source | 418 | 1.71M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 1.71M | if (_Py_IsImmortal(op)) { | 422 | 708k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 708k | return; | 424 | 708k | } | 425 | 1.00M | _Py_DECREF_STAT_INC(); | 426 | 1.00M | if (--op->ob_refcnt == 0) { | 427 | 6.63k | _Py_Dealloc(op); | 428 | 6.63k | } | 429 | 1.00M | } |
Line | Count | Source | 418 | 90.9k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 90.9k | if (_Py_IsImmortal(op)) { | 422 | 40.1k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 40.1k | return; | 424 | 40.1k | } | 425 | 50.8k | _Py_DECREF_STAT_INC(); | 426 | 50.8k | if (--op->ob_refcnt == 0) { | 427 | 0 | _Py_Dealloc(op); | 428 | 0 | } | 429 | 50.8k | } |
Unexecuted instantiation: mysnprintf.c:Py_DECREF Unexecuted instantiation: parking_lot.c:Py_DECREF Unexecuted instantiation: preconfig.c:Py_DECREF Line | Count | Source | 418 | 14.4M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 14.4M | if (_Py_IsImmortal(op)) { | 422 | 13.7M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 13.7M | return; | 424 | 13.7M | } | 425 | 697k | _Py_DECREF_STAT_INC(); | 426 | 697k | if (--op->ob_refcnt == 0) { | 427 | 103k | _Py_Dealloc(op); | 428 | 103k | } | 429 | 697k | } |
Unexecuted instantiation: pyctype.c:Py_DECREF Unexecuted instantiation: pyhash.c:Py_DECREF Line | Count | Source | 418 | 1.29k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 1.29k | if (_Py_IsImmortal(op)) { | 422 | 252 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 252 | return; | 424 | 252 | } | 425 | 1.04k | _Py_DECREF_STAT_INC(); | 426 | 1.04k | if (--op->ob_refcnt == 0) { | 427 | 108 | _Py_Dealloc(op); | 428 | 108 | } | 429 | 1.04k | } |
Unexecuted instantiation: pymath.c:Py_DECREF Unexecuted instantiation: pystate.c:Py_DECREF Line | Count | Source | 418 | 1.87k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 1.87k | if (_Py_IsImmortal(op)) { | 422 | 414 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 414 | return; | 424 | 414 | } | 425 | 1.45k | _Py_DECREF_STAT_INC(); | 426 | 1.45k | if (--op->ob_refcnt == 0) { | 427 | 576 | _Py_Dealloc(op); | 428 | 576 | } | 429 | 1.45k | } |
Unexecuted instantiation: pytime.c:Py_DECREF Unexecuted instantiation: qsbr.c:Py_DECREF Unexecuted instantiation: bootstrap_hash.c:Py_DECREF Line | Count | Source | 418 | 1.18M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 1.18M | if (_Py_IsImmortal(op)) { | 422 | 329k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 329k | return; | 424 | 329k | } | 425 | 850k | _Py_DECREF_STAT_INC(); | 426 | 850k | if (--op->ob_refcnt == 0) { | 427 | 0 | _Py_Dealloc(op); | 428 | 0 | } | 429 | 850k | } |
Unexecuted instantiation: slots.c:Py_DECREF Unexecuted instantiation: slots_generated.c:Py_DECREF Line | Count | Source | 418 | 17.5k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 17.5k | if (_Py_IsImmortal(op)) { | 422 | 9.08k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 9.08k | return; | 424 | 9.08k | } | 425 | 8.42k | _Py_DECREF_STAT_INC(); | 426 | 8.42k | if (--op->ob_refcnt == 0) { | 427 | 404 | _Py_Dealloc(op); | 428 | 404 | } | 429 | 8.42k | } |
Line | Count | Source | 418 | 375k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 375k | if (_Py_IsImmortal(op)) { | 422 | 160k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 160k | return; | 424 | 160k | } | 425 | 215k | _Py_DECREF_STAT_INC(); | 426 | 215k | if (--op->ob_refcnt == 0) { | 427 | 115k | _Py_Dealloc(op); | 428 | 115k | } | 429 | 215k | } |
Line | Count | Source | 418 | 2.21M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 2.21M | if (_Py_IsImmortal(op)) { | 422 | 511k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 511k | return; | 424 | 511k | } | 425 | 1.70M | _Py_DECREF_STAT_INC(); | 426 | 1.70M | if (--op->ob_refcnt == 0) { | 427 | 1.26M | _Py_Dealloc(op); | 428 | 1.26M | } | 429 | 1.70M | } |
Unexecuted instantiation: thread.c:Py_DECREF Line | Count | Source | 418 | 184M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 184M | if (_Py_IsImmortal(op)) { | 422 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 0 | return; | 424 | 0 | } | 425 | 184M | _Py_DECREF_STAT_INC(); | 426 | 184M | if (--op->ob_refcnt == 0) { | 427 | 55.8M | _Py_Dealloc(op); | 428 | 55.8M | } | 429 | 184M | } |
Unexecuted instantiation: tracemalloc.c:Py_DECREF Unexecuted instantiation: getopt.c:Py_DECREF Unexecuted instantiation: pystrcmp.c:Py_DECREF Unexecuted instantiation: pystrtod.c:Py_DECREF Unexecuted instantiation: pystrhex.c:Py_DECREF Unexecuted instantiation: dtoa.c:Py_DECREF Line | Count | Source | 418 | 90.9k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 90.9k | if (_Py_IsImmortal(op)) { | 422 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 0 | return; | 424 | 0 | } | 425 | 90.9k | _Py_DECREF_STAT_INC(); | 426 | 90.9k | if (--op->ob_refcnt == 0) { | 427 | 90.9k | _Py_Dealloc(op); | 428 | 90.9k | } | 429 | 90.9k | } |
Unexecuted instantiation: suggestions.c:Py_DECREF Unexecuted instantiation: perf_trampoline.c:Py_DECREF Unexecuted instantiation: perf_jit_trampoline.c:Py_DECREF Unexecuted instantiation: jit_unwind.c:Py_DECREF Unexecuted instantiation: remote_debugging.c:Py_DECREF Unexecuted instantiation: dynload_shlib.c:Py_DECREF Unexecuted instantiation: config.c:Py_DECREF Unexecuted instantiation: gcmodule.c:Py_DECREF Unexecuted instantiation: _asynciomodule.c:Py_DECREF Line | Count | Source | 418 | 4 | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 4 | if (_Py_IsImmortal(op)) { | 422 | 2 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 2 | return; | 424 | 2 | } | 425 | 2 | _Py_DECREF_STAT_INC(); | 426 | 2 | if (--op->ob_refcnt == 0) { | 427 | 0 | _Py_Dealloc(op); | 428 | 0 | } | 429 | 2 | } |
Unexecuted instantiation: faulthandler.c:Py_DECREF Line | Count | Source | 418 | 2.62M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 2.62M | if (_Py_IsImmortal(op)) { | 422 | 923k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 923k | return; | 424 | 923k | } | 425 | 1.70M | _Py_DECREF_STAT_INC(); | 426 | 1.70M | if (--op->ob_refcnt == 0) { | 427 | 710k | _Py_Dealloc(op); | 428 | 710k | } | 429 | 1.70M | } |
Line | Count | Source | 418 | 72 | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 72 | if (_Py_IsImmortal(op)) { | 422 | 36 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 36 | return; | 424 | 36 | } | 425 | 36 | _Py_DECREF_STAT_INC(); | 426 | 36 | if (--op->ob_refcnt == 0) { | 427 | 0 | _Py_Dealloc(op); | 428 | 0 | } | 429 | 36 | } |
Unexecuted instantiation: _tracemalloc.c:Py_DECREF Unexecuted instantiation: _suggestions.c:Py_DECREF _datetimemodule.c:Py_DECREF Line | Count | Source | 418 | 147k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 147k | if (_Py_IsImmortal(op)) { | 422 | 22.1k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 22.1k | return; | 424 | 22.1k | } | 425 | 125k | _Py_DECREF_STAT_INC(); | 426 | 125k | if (--op->ob_refcnt == 0) { | 427 | 63.6k | _Py_Dealloc(op); | 428 | 63.6k | } | 429 | 125k | } |
Unexecuted instantiation: _codecsmodule.c:Py_DECREF _collectionsmodule.c:Py_DECREF Line | Count | Source | 418 | 197k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 197k | if (_Py_IsImmortal(op)) { | 422 | 99.3k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 99.3k | return; | 424 | 99.3k | } | 425 | 97.6k | _Py_DECREF_STAT_INC(); | 426 | 97.6k | if (--op->ob_refcnt == 0) { | 427 | 41.2k | _Py_Dealloc(op); | 428 | 41.2k | } | 429 | 97.6k | } |
Line | Count | Source | 418 | 1.54M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 1.54M | if (_Py_IsImmortal(op)) { | 422 | 1.44M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 1.44M | return; | 424 | 1.44M | } | 425 | 100k | _Py_DECREF_STAT_INC(); | 426 | 100k | if (--op->ob_refcnt == 0) { | 427 | 49.2k | _Py_Dealloc(op); | 428 | 49.2k | } | 429 | 100k | } |
Line | Count | Source | 418 | 1.74M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 1.74M | if (_Py_IsImmortal(op)) { | 422 | 1.64M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 1.64M | return; | 424 | 1.64M | } | 425 | 95.8k | _Py_DECREF_STAT_INC(); | 426 | 95.8k | if (--op->ob_refcnt == 0) { | 427 | 47.9k | _Py_Dealloc(op); | 428 | 47.9k | } | 429 | 95.8k | } |
Line | Count | Source | 418 | 73.5k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 73.5k | if (_Py_IsImmortal(op)) { | 422 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 0 | return; | 424 | 0 | } | 425 | 73.5k | _Py_DECREF_STAT_INC(); | 426 | 73.5k | if (--op->ob_refcnt == 0) { | 427 | 48.9k | _Py_Dealloc(op); | 428 | 48.9k | } | 429 | 73.5k | } |
Line | Count | Source | 418 | 343k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 343k | if (_Py_IsImmortal(op)) { | 422 | 152k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 152k | return; | 424 | 152k | } | 425 | 190k | _Py_DECREF_STAT_INC(); | 426 | 190k | if (--op->ob_refcnt == 0) { | 427 | 14.2k | _Py_Dealloc(op); | 428 | 14.2k | } | 429 | 190k | } |
Line | Count | Source | 418 | 7.65M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 7.65M | if (_Py_IsImmortal(op)) { | 422 | 7.40M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 7.40M | return; | 424 | 7.40M | } | 425 | 253k | _Py_DECREF_STAT_INC(); | 426 | 253k | if (--op->ob_refcnt == 0) { | 427 | 184k | _Py_Dealloc(op); | 428 | 184k | } | 429 | 253k | } |
Line | Count | Source | 418 | 364k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 364k | if (_Py_IsImmortal(op)) { | 422 | 105k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 105k | return; | 424 | 105k | } | 425 | 258k | _Py_DECREF_STAT_INC(); | 426 | 258k | if (--op->ob_refcnt == 0) { | 427 | 73.5k | _Py_Dealloc(op); | 428 | 73.5k | } | 429 | 258k | } |
Line | Count | Source | 418 | 286k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 286k | if (_Py_IsImmortal(op)) { | 422 | 147k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 147k | return; | 424 | 147k | } | 425 | 138k | _Py_DECREF_STAT_INC(); | 426 | 138k | if (--op->ob_refcnt == 0) { | 427 | 31.9k | _Py_Dealloc(op); | 428 | 31.9k | } | 429 | 138k | } |
itertoolsmodule.c:Py_DECREF Line | Count | Source | 418 | 13.4k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 13.4k | if (_Py_IsImmortal(op)) { | 422 | 5.45k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 5.45k | return; | 424 | 5.45k | } | 425 | 7.97k | _Py_DECREF_STAT_INC(); | 426 | 7.97k | if (--op->ob_refcnt == 0) { | 427 | 1.40k | _Py_Dealloc(op); | 428 | 1.40k | } | 429 | 7.97k | } |
Line | Count | Source | 418 | 248M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 248M | if (_Py_IsImmortal(op)) { | 422 | 40.5M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 40.5M | return; | 424 | 40.5M | } | 425 | 208M | _Py_DECREF_STAT_INC(); | 426 | 208M | if (--op->ob_refcnt == 0) { | 427 | 10.4M | _Py_Dealloc(op); | 428 | 10.4M | } | 429 | 208M | } |
Unexecuted instantiation: _sysconfig.c:Py_DECREF _threadmodule.c:Py_DECREF Line | Count | Source | 418 | 16.5M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 16.5M | if (_Py_IsImmortal(op)) { | 422 | 4 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 4 | return; | 424 | 4 | } | 425 | 16.5M | _Py_DECREF_STAT_INC(); | 426 | 16.5M | if (--op->ob_refcnt == 0) { | 427 | 8 | _Py_Dealloc(op); | 428 | 8 | } | 429 | 16.5M | } |
Unexecuted instantiation: timemodule.c:Py_DECREF Unexecuted instantiation: _typesmodule.c:Py_DECREF Unexecuted instantiation: _typingmodule.c:Py_DECREF Unexecuted instantiation: _weakref.c:Py_DECREF Line | Count | Source | 418 | 457k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 457k | if (_Py_IsImmortal(op)) { | 422 | 117k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 117k | return; | 424 | 117k | } | 425 | 339k | _Py_DECREF_STAT_INC(); | 426 | 339k | if (--op->ob_refcnt == 0) { | 427 | 7.25k | _Py_Dealloc(op); | 428 | 7.25k | } | 429 | 339k | } |
_functoolsmodule.c:Py_DECREF Line | Count | Source | 418 | 233k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 233k | if (_Py_IsImmortal(op)) { | 422 | 21.8k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 21.8k | return; | 424 | 21.8k | } | 425 | 211k | _Py_DECREF_STAT_INC(); | 426 | 211k | if (--op->ob_refcnt == 0) { | 427 | 29.3k | _Py_Dealloc(op); | 428 | 29.3k | } | 429 | 211k | } |
Unexecuted instantiation: _localemodule.c:Py_DECREF Unexecuted instantiation: _opcode.c:Py_DECREF Line | Count | Source | 418 | 609k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 609k | if (_Py_IsImmortal(op)) { | 422 | 304k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 304k | return; | 424 | 304k | } | 425 | 304k | _Py_DECREF_STAT_INC(); | 426 | 304k | if (--op->ob_refcnt == 0) { | 427 | 0 | _Py_Dealloc(op); | 428 | 0 | } | 429 | 304k | } |
Unexecuted instantiation: symtablemodule.c:Py_DECREF Unexecuted instantiation: pwdmodule.c:Py_DECREF Line | Count | Source | 418 | 1.18k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 1.18k | if (_Py_IsImmortal(op)) { | 422 | 432 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 432 | return; | 424 | 432 | } | 425 | 756 | _Py_DECREF_STAT_INC(); | 426 | 756 | if (--op->ob_refcnt == 0) { | 427 | 36 | _Py_Dealloc(op); | 428 | 36 | } | 429 | 756 | } |
Unexecuted instantiation: frozen.c:Py_DECREF Unexecuted instantiation: getbuildinfo.c:Py_DECREF Unexecuted instantiation: peg_api.c:Py_DECREF Unexecuted instantiation: file_tokenizer.c:Py_DECREF Line | Count | Source | 418 | 33.1k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 33.1k | if (_Py_IsImmortal(op)) { | 422 | 2.80k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 2.80k | return; | 424 | 2.80k | } | 425 | 30.3k | _Py_DECREF_STAT_INC(); | 426 | 30.3k | if (--op->ob_refcnt == 0) { | 427 | 17.9k | _Py_Dealloc(op); | 428 | 17.9k | } | 429 | 30.3k | } |
Unexecuted instantiation: myreadline.c:Py_DECREF Line | Count | Source | 418 | 571M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 571M | if (_Py_IsImmortal(op)) { | 422 | 390M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 390M | return; | 424 | 390M | } | 425 | 181M | _Py_DECREF_STAT_INC(); | 426 | 181M | if (--op->ob_refcnt == 0) { | 427 | 7.13M | _Py_Dealloc(op); | 428 | 7.13M | } | 429 | 181M | } |
Unexecuted instantiation: boolobject.c:Py_DECREF Unexecuted instantiation: bytes_methods.c:Py_DECREF bytearrayobject.c:Py_DECREF Line | Count | Source | 418 | 27.1M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 27.1M | if (_Py_IsImmortal(op)) { | 422 | 1.92M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 1.92M | return; | 424 | 1.92M | } | 425 | 25.2M | _Py_DECREF_STAT_INC(); | 426 | 25.2M | if (--op->ob_refcnt == 0) { | 427 | 25.2M | _Py_Dealloc(op); | 428 | 25.2M | } | 429 | 25.2M | } |
Line | Count | Source | 418 | 28 | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 28 | if (_Py_IsImmortal(op)) { | 422 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 0 | return; | 424 | 0 | } | 425 | 28 | _Py_DECREF_STAT_INC(); | 426 | 28 | if (--op->ob_refcnt == 0) { | 427 | 0 | _Py_Dealloc(op); | 428 | 0 | } | 429 | 28 | } |
Line | Count | Source | 418 | 14.7M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 14.7M | if (_Py_IsImmortal(op)) { | 422 | 1.75M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 1.75M | return; | 424 | 1.75M | } | 425 | 12.9M | _Py_DECREF_STAT_INC(); | 426 | 12.9M | if (--op->ob_refcnt == 0) { | 427 | 6.56M | _Py_Dealloc(op); | 428 | 6.56M | } | 429 | 12.9M | } |
Line | Count | Source | 418 | 89.8M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 89.8M | if (_Py_IsImmortal(op)) { | 422 | 125 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 125 | return; | 424 | 125 | } | 425 | 89.8M | _Py_DECREF_STAT_INC(); | 426 | 89.8M | if (--op->ob_refcnt == 0) { | 427 | 12 | _Py_Dealloc(op); | 428 | 12 | } | 429 | 89.8M | } |
Line | Count | Source | 418 | 926k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 926k | if (_Py_IsImmortal(op)) { | 422 | 413k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 413k | return; | 424 | 413k | } | 425 | 512k | _Py_DECREF_STAT_INC(); | 426 | 512k | if (--op->ob_refcnt == 0) { | 427 | 398k | _Py_Dealloc(op); | 428 | 398k | } | 429 | 512k | } |
Unexecuted instantiation: complexobject.c:Py_DECREF Line | Count | Source | 418 | 68.6M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 68.6M | if (_Py_IsImmortal(op)) { | 422 | 11.0M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 11.0M | return; | 424 | 11.0M | } | 425 | 57.5M | _Py_DECREF_STAT_INC(); | 426 | 57.5M | if (--op->ob_refcnt == 0) { | 427 | 28.6M | _Py_Dealloc(op); | 428 | 28.6M | } | 429 | 57.5M | } |
Line | Count | Source | 418 | 131M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 131M | if (_Py_IsImmortal(op)) { | 422 | 20.3M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 20.3M | return; | 424 | 20.3M | } | 425 | 111M | _Py_DECREF_STAT_INC(); | 426 | 111M | if (--op->ob_refcnt == 0) { | 427 | 64.9M | _Py_Dealloc(op); | 428 | 64.9M | } | 429 | 111M | } |
Line | Count | Source | 418 | 104M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 104M | if (_Py_IsImmortal(op)) { | 422 | 104M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 104M | return; | 424 | 104M | } | 425 | 83.8k | _Py_DECREF_STAT_INC(); | 426 | 83.8k | if (--op->ob_refcnt == 0) { | 427 | 0 | _Py_Dealloc(op); | 428 | 0 | } | 429 | 83.8k | } |
Line | Count | Source | 418 | 176k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 176k | if (_Py_IsImmortal(op)) { | 422 | 169k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 169k | return; | 424 | 169k | } | 425 | 6.16k | _Py_DECREF_STAT_INC(); | 426 | 6.16k | if (--op->ob_refcnt == 0) { | 427 | 0 | _Py_Dealloc(op); | 428 | 0 | } | 429 | 6.16k | } |
Line | Count | Source | 418 | 42.0M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 42.0M | if (_Py_IsImmortal(op)) { | 422 | 84 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 84 | return; | 424 | 84 | } | 425 | 42.0M | _Py_DECREF_STAT_INC(); | 426 | 42.0M | if (--op->ob_refcnt == 0) { | 427 | 11.5M | _Py_Dealloc(op); | 428 | 11.5M | } | 429 | 42.0M | } |
Line | Count | Source | 418 | 203M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 203M | if (_Py_IsImmortal(op)) { | 422 | 113M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 113M | return; | 424 | 113M | } | 425 | 89.7M | _Py_DECREF_STAT_INC(); | 426 | 89.7M | if (--op->ob_refcnt == 0) { | 427 | 9.09M | _Py_Dealloc(op); | 428 | 9.09M | } | 429 | 89.7M | } |
interpolationobject.c:Py_DECREF Line | Count | Source | 418 | 52 | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 52 | if (_Py_IsImmortal(op)) { | 422 | 16 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 16 | return; | 424 | 16 | } | 425 | 36 | _Py_DECREF_STAT_INC(); | 426 | 36 | if (--op->ob_refcnt == 0) { | 427 | 0 | _Py_Dealloc(op); | 428 | 0 | } | 429 | 36 | } |
Line | Count | Source | 418 | 3.50M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 3.50M | if (_Py_IsImmortal(op)) { | 422 | 726k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 726k | return; | 424 | 726k | } | 425 | 2.77M | _Py_DECREF_STAT_INC(); | 426 | 2.77M | if (--op->ob_refcnt == 0) { | 427 | 363k | _Py_Dealloc(op); | 428 | 363k | } | 429 | 2.77M | } |
lazyimportobject.c:Py_DECREF Line | Count | Source | 418 | 376 | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 376 | if (_Py_IsImmortal(op)) { | 422 | 97 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 97 | return; | 424 | 97 | } | 425 | 279 | _Py_DECREF_STAT_INC(); | 426 | 279 | if (--op->ob_refcnt == 0) { | 427 | 4 | _Py_Dealloc(op); | 428 | 4 | } | 429 | 279 | } |
Line | Count | Source | 418 | 353k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 353k | if (_Py_IsImmortal(op)) { | 422 | 164k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 164k | return; | 424 | 164k | } | 425 | 189k | _Py_DECREF_STAT_INC(); | 426 | 189k | if (--op->ob_refcnt == 0) { | 427 | 44.4k | _Py_Dealloc(op); | 428 | 44.4k | } | 429 | 189k | } |
Line | Count | Source | 418 | 158M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 158M | if (_Py_IsImmortal(op)) { | 422 | 30.0M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 30.0M | return; | 424 | 30.0M | } | 425 | 128M | _Py_DECREF_STAT_INC(); | 426 | 128M | if (--op->ob_refcnt == 0) { | 427 | 33.8M | _Py_Dealloc(op); | 428 | 33.8M | } | 429 | 128M | } |
namespaceobject.c:Py_DECREF Line | Count | Source | 418 | 60 | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 60 | if (_Py_IsImmortal(op)) { | 422 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 0 | return; | 424 | 0 | } | 425 | 60 | _Py_DECREF_STAT_INC(); | 426 | 60 | if (--op->ob_refcnt == 0) { | 427 | 60 | _Py_Dealloc(op); | 428 | 60 | } | 429 | 60 | } |
Unexecuted instantiation: _contextvars.c:Py_DECREF Line | Count | Source | 418 | 3.89M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 3.89M | if (_Py_IsImmortal(op)) { | 422 | 2.04M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 2.04M | return; | 424 | 2.04M | } | 425 | 1.85M | _Py_DECREF_STAT_INC(); | 426 | 1.85M | if (--op->ob_refcnt == 0) { | 427 | 484k | _Py_Dealloc(op); | 428 | 484k | } | 429 | 1.85M | } |
Python-tokenize.c:Py_DECREF Line | Count | Source | 418 | 504 | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 504 | if (_Py_IsImmortal(op)) { | 422 | 196 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 196 | return; | 424 | 196 | } | 425 | 308 | _Py_DECREF_STAT_INC(); | 426 | 308 | if (--op->ob_refcnt == 0) { | 427 | 20 | _Py_Dealloc(op); | 428 | 20 | } | 429 | 308 | } |
Unexecuted instantiation: asdl.c:Py_DECREF Line | Count | Source | 418 | 29.5k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 29.5k | if (_Py_IsImmortal(op)) { | 422 | 6.93k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 6.93k | return; | 424 | 6.93k | } | 425 | 22.6k | _Py_DECREF_STAT_INC(); | 426 | 22.6k | if (--op->ob_refcnt == 0) { | 427 | 0 | _Py_Dealloc(op); | 428 | 0 | } | 429 | 22.6k | } |
Unexecuted instantiation: ast.c:Py_DECREF Unexecuted instantiation: ast_preprocess.c:Py_DECREF Unexecuted instantiation: ast_unparse.c:Py_DECREF Unexecuted instantiation: critical_section.c:Py_DECREF Unexecuted instantiation: crossinterp.c:Py_DECREF Unexecuted instantiation: getcopyright.c:Py_DECREF Unexecuted instantiation: getplatform.c:Py_DECREF Unexecuted instantiation: getversion.c:Py_DECREF Unexecuted instantiation: optimizer.c:Py_DECREF Unexecuted instantiation: pathconfig.c:Py_DECREF Line | Count | Source | 418 | 310k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 310k | if (_Py_IsImmortal(op)) { | 422 | 64.6k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 64.6k | return; | 424 | 64.6k | } | 425 | 246k | _Py_DECREF_STAT_INC(); | 426 | 246k | if (--op->ob_refcnt == 0) { | 427 | 224k | _Py_Dealloc(op); | 428 | 224k | } | 429 | 246k | } |
Line | Count | Source | 418 | 273k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 273k | if (_Py_IsImmortal(op)) { | 422 | 656 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 656 | return; | 424 | 656 | } | 425 | 272k | _Py_DECREF_STAT_INC(); | 426 | 272k | if (--op->ob_refcnt == 0) { | 427 | 777 | _Py_Dealloc(op); | 428 | 777 | } | 429 | 272k | } |
Unexecuted instantiation: parser.c:Py_DECREF Unexecuted instantiation: buffer.c:Py_DECREF Line | Count | Source | 418 | 13.5k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 13.5k | if (_Py_IsImmortal(op)) { | 422 | 1.18k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 1.18k | return; | 424 | 1.18k | } | 425 | 12.3k | _Py_DECREF_STAT_INC(); | 426 | 12.3k | if (--op->ob_refcnt == 0) { | 427 | 12.3k | _Py_Dealloc(op); | 428 | 12.3k | } | 429 | 12.3k | } |
Unexecuted instantiation: number.c:Py_DECREF Line | Count | Source | 418 | 101k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 101k | if (_Py_IsImmortal(op)) { | 422 | 789 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 789 | return; | 424 | 789 | } | 425 | 100k | _Py_DECREF_STAT_INC(); | 426 | 100k | if (--op->ob_refcnt == 0) { | 427 | 76 | _Py_Dealloc(op); | 428 | 76 | } | 429 | 100k | } |
Unexecuted instantiation: string.c:Py_DECREF readline_tokenizer.c:Py_DECREF Line | Count | Source | 418 | 348 | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 348 | if (_Py_IsImmortal(op)) { | 422 | 44 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 44 | return; | 424 | 44 | } | 425 | 304 | _Py_DECREF_STAT_INC(); | 426 | 304 | if (--op->ob_refcnt == 0) { | 427 | 68 | _Py_Dealloc(op); | 428 | 68 | } | 429 | 304 | } |
string_tokenizer.c:Py_DECREF Line | Count | Source | 418 | 2.33k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 2.33k | if (_Py_IsImmortal(op)) { | 422 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 0 | return; | 424 | 0 | } | 425 | 2.33k | _Py_DECREF_STAT_INC(); | 426 | 2.33k | if (--op->ob_refcnt == 0) { | 427 | 2.33k | _Py_Dealloc(op); | 428 | 2.33k | } | 429 | 2.33k | } |
Unexecuted instantiation: utf8_tokenizer.c:Py_DECREF Unexecuted instantiation: getcompiler.c:Py_DECREF Unexecuted instantiation: mystrtoul.c:Py_DECREF Unexecuted instantiation: token.c:Py_DECREF Unexecuted instantiation: action_helpers.c:Py_DECREF string_parser.c:Py_DECREF Line | Count | Source | 418 | 38.3k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 38.3k | if (_Py_IsImmortal(op)) { | 422 | 2.66k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 2.66k | return; | 424 | 2.66k | } | 425 | 35.6k | _Py_DECREF_STAT_INC(); | 426 | 35.6k | if (--op->ob_refcnt == 0) { | 427 | 35.6k | _Py_Dealloc(op); | 428 | 35.6k | } | 429 | 35.6k | } |
|
430 | 10.6G | #define Py_DECREF(op) Py_DECREF(_PyObject_CAST(op)) |
431 | | #endif |
432 | | |
433 | | |
434 | | /* Safely decref `op` and set `op` to NULL, especially useful in tp_clear |
435 | | * and tp_dealloc implementations. |
436 | | * |
437 | | * Note that "the obvious" code can be deadly: |
438 | | * |
439 | | * Py_XDECREF(op); |
440 | | * op = NULL; |
441 | | * |
442 | | * Typically, `op` is something like self->containee, and `self` is done |
443 | | * using its `containee` member. In the code sequence above, suppose |
444 | | * `containee` is non-NULL with a refcount of 1. Its refcount falls to |
445 | | * 0 on the first line, which can trigger an arbitrary amount of code, |
446 | | * possibly including finalizers (like __del__ methods or weakref callbacks) |
447 | | * coded in Python, which in turn can release the GIL and allow other threads |
448 | | * to run, etc. Such code may even invoke methods of `self` again, or cause |
449 | | * cyclic gc to trigger, but-- oops! --self->containee still points to the |
450 | | * object being torn down, and it may be in an insane state while being torn |
451 | | * down. This has in fact been a rich historic source of miserable (rare & |
452 | | * hard-to-diagnose) segfaulting (and other) bugs. |
453 | | * |
454 | | * The safe way is: |
455 | | * |
456 | | * Py_CLEAR(op); |
457 | | * |
458 | | * That arranges to set `op` to NULL _before_ decref'ing, so that any code |
459 | | * triggered as a side-effect of `op` getting torn down no longer believes |
460 | | * `op` points to a valid object. |
461 | | * |
462 | | * There are cases where it's safe to use the naive code, but they're brittle. |
463 | | * For example, if `op` points to a Python integer, you know that destroying |
464 | | * one of those can't cause problems -- but in part that relies on that |
465 | | * Python integers aren't currently weakly referencable. Best practice is |
466 | | * to use Py_CLEAR() even if you can't think of a reason for why you need to. |
467 | | * |
468 | | * gh-98724: Use a temporary variable to only evaluate the macro argument once, |
469 | | * to avoid the duplication of side effects if the argument has side effects. |
470 | | * |
471 | | * gh-99701: If the PyObject* type is used with casting arguments to PyObject*, |
472 | | * the code can be miscompiled with strict aliasing because of type punning. |
473 | | * With strict aliasing, a compiler considers that two pointers of different |
474 | | * types cannot read or write the same memory which enables optimization |
475 | | * opportunities. |
476 | | * |
477 | | * If available, use _Py_TYPEOF() to use the 'op' type for temporary variables, |
478 | | * and so avoid type punning. Otherwise, use memcpy() which causes type erasure |
479 | | * and so prevents the compiler to reuse an old cached 'op' value after |
480 | | * Py_CLEAR(). |
481 | | */ |
482 | | #ifdef _Py_TYPEOF |
483 | | #define Py_CLEAR(op) \ |
484 | 2.53G | do { \ |
485 | 2.53G | _Py_TYPEOF(op)* _tmp_op_ptr = &(op); \ |
486 | 2.53G | _Py_TYPEOF(op) _tmp_old_op = (*_tmp_op_ptr); \ |
487 | 2.53G | if (_tmp_old_op != NULL) { \ |
488 | 581M | *_tmp_op_ptr = _Py_NULL; \ |
489 | 581M | Py_DECREF(_tmp_old_op); \ |
490 | 581M | } \ |
491 | 2.53G | } while (0) |
492 | | #else |
493 | | #define Py_CLEAR(op) \ |
494 | | do { \ |
495 | | PyObject **_tmp_op_ptr = _Py_CAST(PyObject**, &(op)); \ |
496 | | PyObject *_tmp_old_op = (*_tmp_op_ptr); \ |
497 | | if (_tmp_old_op != NULL) { \ |
498 | | PyObject *_null_ptr = _Py_NULL; \ |
499 | | memcpy(_tmp_op_ptr, &_null_ptr, sizeof(PyObject*)); \ |
500 | | Py_DECREF(_tmp_old_op); \ |
501 | | } \ |
502 | | } while (0) |
503 | | #endif |
504 | | |
505 | | |
506 | | /* Function to use in case the object pointer can be NULL: */ |
507 | | static inline void Py_XINCREF(PyObject *op) |
508 | 1.45G | { |
509 | 1.45G | if (op != _Py_NULL) { |
510 | 796M | Py_INCREF(op); |
511 | 796M | } |
512 | 1.45G | } Unexecuted instantiation: bytesobject.c:Py_XINCREF Unexecuted instantiation: call.c:Py_XINCREF Line | Count | Source | 508 | 123M | { | 509 | 123M | if (op != _Py_NULL) { | 510 | 26.7M | Py_INCREF(op); | 511 | 26.7M | } | 512 | 123M | } |
Unexecuted instantiation: genericaliasobject.c:Py_XINCREF Unexecuted instantiation: floatobject.c:Py_XINCREF Line | Count | Source | 508 | 95.0M | { | 509 | 95.0M | if (op != _Py_NULL) { | 510 | 95.0M | Py_INCREF(op); | 511 | 95.0M | } | 512 | 95.0M | } |
Unexecuted instantiation: longobject.c:Py_XINCREF Line | Count | Source | 508 | 279M | { | 509 | 279M | if (op != _Py_NULL) { | 510 | 114M | Py_INCREF(op); | 511 | 114M | } | 512 | 279M | } |
memoryobject.c:Py_XINCREF Line | Count | Source | 508 | 1 | { | 509 | 1 | if (op != _Py_NULL) { | 510 | 1 | Py_INCREF(op); | 511 | 1 | } | 512 | 1 | } |
Unexecuted instantiation: moduleobject.c:Py_XINCREF Unexecuted instantiation: object.c:Py_XINCREF Unexecuted instantiation: obmalloc.c:Py_XINCREF Unexecuted instantiation: picklebufobject.c:Py_XINCREF Unexecuted instantiation: rangeobject.c:Py_XINCREF sentinelobject.c:Py_XINCREF Line | Count | Source | 508 | 53 | { | 509 | 53 | if (op != _Py_NULL) { | 510 | 8 | Py_INCREF(op); | 511 | 8 | } | 512 | 53 | } |
Unexecuted instantiation: setobject.c:Py_XINCREF Unexecuted instantiation: sliceobject.c:Py_XINCREF Unexecuted instantiation: structseq.c:Py_XINCREF Unexecuted instantiation: templateobject.c:Py_XINCREF Unexecuted instantiation: tupleobject.c:Py_XINCREF Line | Count | Source | 508 | 513k | { | 509 | 513k | if (op != _Py_NULL) { | 510 | 253k | Py_INCREF(op); | 511 | 253k | } | 512 | 513k | } |
typevarobject.c:Py_XINCREF Line | Count | Source | 508 | 1.20k | { | 509 | 1.20k | if (op != _Py_NULL) { | 510 | 245 | Py_INCREF(op); | 511 | 245 | } | 512 | 1.20k | } |
Unexecuted instantiation: unicode_format.c:Py_XINCREF Unexecuted instantiation: unicode_formatter.c:Py_XINCREF Unexecuted instantiation: unicode_writer.c:Py_XINCREF Unexecuted instantiation: unicodectype.c:Py_XINCREF Unexecuted instantiation: unicodeobject.c:Py_XINCREF Unexecuted instantiation: unionobject.c:Py_XINCREF weakrefobject.c:Py_XINCREF Line | Count | Source | 508 | 1.35M | { | 509 | 1.35M | if (op != _Py_NULL) { | 510 | 698k | Py_INCREF(op); | 511 | 698k | } | 512 | 1.35M | } |
Unexecuted instantiation: _warnings.c:Py_XINCREF Line | Count | Source | 508 | 1.19k | { | 509 | 1.19k | if (op != _Py_NULL) { | 510 | 1.19k | Py_INCREF(op); | 511 | 1.19k | } | 512 | 1.19k | } |
Line | Count | Source | 508 | 323M | { | 509 | 323M | if (op != _Py_NULL) { | 510 | 135M | Py_INCREF(op); | 511 | 135M | } | 512 | 323M | } |
Unexecuted instantiation: codecs.c:Py_XINCREF Unexecuted instantiation: codegen.c:Py_XINCREF Line | Count | Source | 508 | 7.35k | { | 509 | 7.35k | if (op != _Py_NULL) { | 510 | 2.61k | Py_INCREF(op); | 511 | 2.61k | } | 512 | 7.35k | } |
Line | Count | Source | 508 | 89.5k | { | 509 | 89.5k | if (op != _Py_NULL) { | 510 | 0 | Py_INCREF(op); | 511 | 0 | } | 512 | 89.5k | } |
Line | Count | Source | 508 | 42.9M | { | 509 | 42.9M | if (op != _Py_NULL) { | 510 | 42.8M | Py_INCREF(op); | 511 | 42.8M | } | 512 | 42.9M | } |
Unexecuted instantiation: flowgraph.c:Py_XINCREF Unexecuted instantiation: frame.c:Py_XINCREF Unexecuted instantiation: future.c:Py_XINCREF Unexecuted instantiation: gc.c:Py_XINCREF Unexecuted instantiation: gc_gil.c:Py_XINCREF Unexecuted instantiation: getargs.c:Py_XINCREF Unexecuted instantiation: ceval_gil.c:Py_XINCREF Unexecuted instantiation: hamt.c:Py_XINCREF Unexecuted instantiation: hashtable.c:Py_XINCREF Line | Count | Source | 508 | 32.9k | { | 509 | 32.9k | if (op != _Py_NULL) { | 510 | 26.9k | Py_INCREF(op); | 511 | 26.9k | } | 512 | 32.9k | } |
Unexecuted instantiation: importdl.c:Py_XINCREF Unexecuted instantiation: initconfig.c:Py_XINCREF Unexecuted instantiation: instrumentation.c:Py_XINCREF Unexecuted instantiation: instruction_sequence.c:Py_XINCREF Unexecuted instantiation: intrinsics.c:Py_XINCREF Unexecuted instantiation: legacy_tracing.c:Py_XINCREF Unexecuted instantiation: lock.c:Py_XINCREF Unexecuted instantiation: marshal.c:Py_XINCREF Unexecuted instantiation: modsupport.c:Py_XINCREF Unexecuted instantiation: mysnprintf.c:Py_XINCREF Unexecuted instantiation: parking_lot.c:Py_XINCREF Unexecuted instantiation: preconfig.c:Py_XINCREF Unexecuted instantiation: pyarena.c:Py_XINCREF Unexecuted instantiation: pyctype.c:Py_XINCREF Unexecuted instantiation: pyhash.c:Py_XINCREF Unexecuted instantiation: pylifecycle.c:Py_XINCREF Unexecuted instantiation: pymath.c:Py_XINCREF Line | Count | Source | 508 | 176k | { | 509 | 176k | if (op != _Py_NULL) { | 510 | 176k | Py_INCREF(op); | 511 | 176k | } | 512 | 176k | } |
Unexecuted instantiation: pythonrun.c:Py_XINCREF Unexecuted instantiation: pytime.c:Py_XINCREF Unexecuted instantiation: qsbr.c:Py_XINCREF Unexecuted instantiation: bootstrap_hash.c:Py_XINCREF Unexecuted instantiation: specialize.c:Py_XINCREF Unexecuted instantiation: slots.c:Py_XINCREF Unexecuted instantiation: slots_generated.c:Py_XINCREF structmember.c:Py_XINCREF Line | Count | Source | 508 | 7.16M | { | 509 | 7.16M | if (op != _Py_NULL) { | 510 | 6.70M | Py_INCREF(op); | 511 | 6.70M | } | 512 | 7.16M | } |
Unexecuted instantiation: symtable.c:Py_XINCREF Line | Count | Source | 508 | 206 | { | 509 | 206 | if (op != _Py_NULL) { | 510 | 206 | Py_INCREF(op); | 511 | 206 | } | 512 | 206 | } |
Unexecuted instantiation: thread.c:Py_XINCREF Line | Count | Source | 508 | 133M | { | 509 | 133M | if (op != _Py_NULL) { | 510 | 92.0M | Py_INCREF(op); | 511 | 92.0M | } | 512 | 133M | } |
Unexecuted instantiation: tracemalloc.c:Py_XINCREF Unexecuted instantiation: getopt.c:Py_XINCREF Unexecuted instantiation: pystrcmp.c:Py_XINCREF Unexecuted instantiation: pystrtod.c:Py_XINCREF Unexecuted instantiation: pystrhex.c:Py_XINCREF Unexecuted instantiation: dtoa.c:Py_XINCREF Unexecuted instantiation: fileutils.c:Py_XINCREF Unexecuted instantiation: suggestions.c:Py_XINCREF Unexecuted instantiation: perf_trampoline.c:Py_XINCREF Unexecuted instantiation: perf_jit_trampoline.c:Py_XINCREF Unexecuted instantiation: jit_unwind.c:Py_XINCREF Unexecuted instantiation: remote_debugging.c:Py_XINCREF Unexecuted instantiation: dynload_shlib.c:Py_XINCREF Unexecuted instantiation: config.c:Py_XINCREF Unexecuted instantiation: gcmodule.c:Py_XINCREF Unexecuted instantiation: _asynciomodule.c:Py_XINCREF Unexecuted instantiation: atexitmodule.c:Py_XINCREF Unexecuted instantiation: faulthandler.c:Py_XINCREF Line | Count | Source | 508 | 86.8k | { | 509 | 86.8k | if (op != _Py_NULL) { | 510 | 86.8k | Py_INCREF(op); | 511 | 86.8k | } | 512 | 86.8k | } |
Unexecuted instantiation: signalmodule.c:Py_XINCREF Unexecuted instantiation: _tracemalloc.c:Py_XINCREF Unexecuted instantiation: _suggestions.c:Py_XINCREF _datetimemodule.c:Py_XINCREF Line | Count | Source | 508 | 72 | { | 509 | 72 | if (op != _Py_NULL) { | 510 | 0 | Py_INCREF(op); | 511 | 0 | } | 512 | 72 | } |
Unexecuted instantiation: _codecsmodule.c:Py_XINCREF _collectionsmodule.c:Py_XINCREF Line | Count | Source | 508 | 21.0k | { | 509 | 21.0k | if (op != _Py_NULL) { | 510 | 21.0k | Py_INCREF(op); | 511 | 21.0k | } | 512 | 21.0k | } |
Unexecuted instantiation: errnomodule.c:Py_XINCREF Unexecuted instantiation: _iomodule.c:Py_XINCREF Unexecuted instantiation: iobase.c:Py_XINCREF Unexecuted instantiation: fileio.c:Py_XINCREF Unexecuted instantiation: bytesio.c:Py_XINCREF Line | Count | Source | 508 | 6.17k | { | 509 | 6.17k | if (op != _Py_NULL) { | 510 | 6.17k | Py_INCREF(op); | 511 | 6.17k | } | 512 | 6.17k | } |
Unexecuted instantiation: textio.c:Py_XINCREF Unexecuted instantiation: stringio.c:Py_XINCREF Unexecuted instantiation: itertoolsmodule.c:Py_XINCREF Unexecuted instantiation: sre.c:Py_XINCREF Unexecuted instantiation: _sysconfig.c:Py_XINCREF _threadmodule.c:Py_XINCREF Line | Count | Source | 508 | 144 | { | 509 | 144 | if (op != _Py_NULL) { | 510 | 72 | Py_INCREF(op); | 511 | 72 | } | 512 | 144 | } |
Unexecuted instantiation: timemodule.c:Py_XINCREF Unexecuted instantiation: _typesmodule.c:Py_XINCREF Unexecuted instantiation: _typingmodule.c:Py_XINCREF Unexecuted instantiation: _weakref.c:Py_XINCREF Line | Count | Source | 508 | 31.1k | { | 509 | 31.1k | if (op != _Py_NULL) { | 510 | 31.1k | Py_INCREF(op); | 511 | 31.1k | } | 512 | 31.1k | } |
_functoolsmodule.c:Py_XINCREF Line | Count | Source | 508 | 40 | { | 509 | 40 | if (op != _Py_NULL) { | 510 | 0 | Py_INCREF(op); | 511 | 0 | } | 512 | 40 | } |
Unexecuted instantiation: _localemodule.c:Py_XINCREF Unexecuted instantiation: _opcode.c:Py_XINCREF Unexecuted instantiation: _operator.c:Py_XINCREF Unexecuted instantiation: _stat.c:Py_XINCREF Unexecuted instantiation: symtablemodule.c:Py_XINCREF Unexecuted instantiation: pwdmodule.c:Py_XINCREF Line | Count | Source | 508 | 72 | { | 509 | 72 | if (op != _Py_NULL) { | 510 | 72 | Py_INCREF(op); | 511 | 72 | } | 512 | 72 | } |
Unexecuted instantiation: frozen.c:Py_XINCREF Unexecuted instantiation: getbuildinfo.c:Py_XINCREF Unexecuted instantiation: peg_api.c:Py_XINCREF Unexecuted instantiation: file_tokenizer.c:Py_XINCREF Unexecuted instantiation: helpers.c:Py_XINCREF Unexecuted instantiation: myreadline.c:Py_XINCREF Line | Count | Source | 508 | 115M | { | 509 | 115M | if (op != _Py_NULL) { | 510 | 114M | Py_INCREF(op); | 511 | 114M | } | 512 | 115M | } |
Unexecuted instantiation: boolobject.c:Py_XINCREF Unexecuted instantiation: bytes_methods.c:Py_XINCREF Unexecuted instantiation: bytearrayobject.c:Py_XINCREF Unexecuted instantiation: capsule.c:Py_XINCREF Line | Count | Source | 508 | 25.4M | { | 509 | 25.4M | if (op != _Py_NULL) { | 510 | 5.73M | Py_INCREF(op); | 511 | 5.73M | } | 512 | 25.4M | } |
Unexecuted instantiation: classobject.c:Py_XINCREF Line | Count | Source | 508 | 3.40k | { | 509 | 3.40k | if (op != _Py_NULL) { | 510 | 3.40k | Py_INCREF(op); | 511 | 3.40k | } | 512 | 3.40k | } |
Unexecuted instantiation: complexobject.c:Py_XINCREF Line | Count | Source | 508 | 109k | { | 509 | 109k | if (op != _Py_NULL) { | 510 | 104k | Py_INCREF(op); | 511 | 104k | } | 512 | 109k | } |
Unexecuted instantiation: enumobject.c:Py_XINCREF Line | Count | Source | 508 | 84.1k | { | 509 | 84.1k | if (op != _Py_NULL) { | 510 | 0 | Py_INCREF(op); | 511 | 0 | } | 512 | 84.1k | } |
Unexecuted instantiation: fileobject.c:Py_XINCREF Line | Count | Source | 508 | 11.6M | { | 509 | 11.6M | if (op != _Py_NULL) { | 510 | 11.6M | Py_INCREF(op); | 511 | 11.6M | } | 512 | 11.6M | } |
Line | Count | Source | 508 | 59.2k | { | 509 | 59.2k | if (op != _Py_NULL) { | 510 | 36.3k | Py_INCREF(op); | 511 | 36.3k | } | 512 | 59.2k | } |
Unexecuted instantiation: interpolationobject.c:Py_XINCREF Unexecuted instantiation: iterobject.c:Py_XINCREF lazyimportobject.c:Py_XINCREF Line | Count | Source | 508 | 838 | { | 509 | 838 | if (op != _Py_NULL) { | 510 | 623 | Py_INCREF(op); | 511 | 623 | } | 512 | 838 | } |
Unexecuted instantiation: odictobject.c:Py_XINCREF methodobject.c:Py_XINCREF Line | Count | Source | 508 | 300M | { | 509 | 300M | if (op != _Py_NULL) { | 510 | 150M | Py_INCREF(op); | 511 | 150M | } | 512 | 300M | } |
Unexecuted instantiation: namespaceobject.c:Py_XINCREF Unexecuted instantiation: _contextvars.c:Py_XINCREF Unexecuted instantiation: Python-ast.c:Py_XINCREF Unexecuted instantiation: Python-tokenize.c:Py_XINCREF Unexecuted instantiation: asdl.c:Py_XINCREF Unexecuted instantiation: assemble.c:Py_XINCREF Unexecuted instantiation: ast.c:Py_XINCREF Unexecuted instantiation: ast_preprocess.c:Py_XINCREF Unexecuted instantiation: ast_unparse.c:Py_XINCREF Unexecuted instantiation: critical_section.c:Py_XINCREF Unexecuted instantiation: crossinterp.c:Py_XINCREF Unexecuted instantiation: getcopyright.c:Py_XINCREF Unexecuted instantiation: getplatform.c:Py_XINCREF Unexecuted instantiation: getversion.c:Py_XINCREF Unexecuted instantiation: optimizer.c:Py_XINCREF Unexecuted instantiation: pathconfig.c:Py_XINCREF Line | Count | Source | 508 | 100k | { | 509 | 100k | if (op != _Py_NULL) { | 510 | 713 | Py_INCREF(op); | 511 | 713 | } | 512 | 100k | } |
Unexecuted instantiation: pegen_errors.c:Py_XINCREF Unexecuted instantiation: parser.c:Py_XINCREF Unexecuted instantiation: buffer.c:Py_XINCREF Unexecuted instantiation: lexer.c:Py_XINCREF Unexecuted instantiation: number.c:Py_XINCREF Unexecuted instantiation: state.c:Py_XINCREF Unexecuted instantiation: string.c:Py_XINCREF Unexecuted instantiation: readline_tokenizer.c:Py_XINCREF Unexecuted instantiation: string_tokenizer.c:Py_XINCREF Unexecuted instantiation: utf8_tokenizer.c:Py_XINCREF Unexecuted instantiation: getcompiler.c:Py_XINCREF Unexecuted instantiation: mystrtoul.c:Py_XINCREF Unexecuted instantiation: token.c:Py_XINCREF Unexecuted instantiation: action_helpers.c:Py_XINCREF Unexecuted instantiation: string_parser.c:Py_XINCREF |
513 | | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000 |
514 | 1.45G | # define Py_XINCREF(op) Py_XINCREF(_PyObject_CAST(op)) |
515 | | #endif |
516 | | |
517 | | static inline void Py_XDECREF(PyObject *op) |
518 | 6.33G | { |
519 | 6.33G | if (op != _Py_NULL) { |
520 | 5.36G | Py_DECREF(op); |
521 | 5.36G | } |
522 | 6.33G | } Line | Count | Source | 518 | 33.2M | { | 519 | 33.2M | if (op != _Py_NULL) { | 520 | 118k | Py_DECREF(op); | 521 | 118k | } | 522 | 33.2M | } |
Unexecuted instantiation: call.c:Py_XDECREF Line | Count | Source | 518 | 125M | { | 519 | 125M | if (op != _Py_NULL) { | 520 | 60.0M | Py_DECREF(op); | 521 | 60.0M | } | 522 | 125M | } |
genericaliasobject.c:Py_XDECREF Line | Count | Source | 518 | 547 | { | 519 | 547 | if (op != _Py_NULL) { | 520 | 290 | Py_DECREF(op); | 521 | 290 | } | 522 | 547 | } |
Line | Count | Source | 518 | 547k | { | 519 | 547k | if (op != _Py_NULL) { | 520 | 56.5k | Py_DECREF(op); | 521 | 56.5k | } | 522 | 547k | } |
Line | Count | Source | 518 | 2.07G | { | 519 | 2.07G | if (op != _Py_NULL) { | 520 | 2.03G | Py_DECREF(op); | 521 | 2.03G | } | 522 | 2.07G | } |
Line | Count | Source | 518 | 31.6M | { | 519 | 31.6M | if (op != _Py_NULL) { | 520 | 14.5M | Py_DECREF(op); | 521 | 14.5M | } | 522 | 31.6M | } |
Line | Count | Source | 518 | 279M | { | 519 | 279M | if (op != _Py_NULL) { | 520 | 272M | Py_DECREF(op); | 521 | 272M | } | 522 | 279M | } |
Unexecuted instantiation: memoryobject.c:Py_XDECREF moduleobject.c:Py_XDECREF Line | Count | Source | 518 | 18.9k | { | 519 | 18.9k | if (op != _Py_NULL) { | 520 | 9.87k | Py_DECREF(op); | 521 | 9.87k | } | 522 | 18.9k | } |
Line | Count | Source | 518 | 10.0M | { | 519 | 10.0M | if (op != _Py_NULL) { | 520 | 46.8k | Py_DECREF(op); | 521 | 46.8k | } | 522 | 10.0M | } |
Unexecuted instantiation: obmalloc.c:Py_XDECREF Unexecuted instantiation: picklebufobject.c:Py_XDECREF Line | Count | Source | 518 | 108 | { | 519 | 108 | if (op != _Py_NULL) { | 520 | 108 | Py_DECREF(op); | 521 | 108 | } | 522 | 108 | } |
Unexecuted instantiation: sentinelobject.c:Py_XDECREF Line | Count | Source | 518 | 73.0k | { | 519 | 73.0k | if (op != _Py_NULL) { | 520 | 396 | Py_DECREF(op); | 521 | 396 | } | 522 | 73.0k | } |
Unexecuted instantiation: sliceobject.c:Py_XDECREF Line | Count | Source | 518 | 4.80M | { | 519 | 4.80M | if (op != _Py_NULL) { | 520 | 4.80M | Py_DECREF(op); | 521 | 4.80M | } | 522 | 4.80M | } |
Unexecuted instantiation: templateobject.c:Py_XDECREF Line | Count | Source | 518 | 2.34G | { | 519 | 2.34G | if (op != _Py_NULL) { | 520 | 2.33G | Py_DECREF(op); | 521 | 2.33G | } | 522 | 2.34G | } |
Line | Count | Source | 518 | 29.3M | { | 519 | 29.3M | if (op != _Py_NULL) { | 520 | 15.1M | Py_DECREF(op); | 521 | 15.1M | } | 522 | 29.3M | } |
typevarobject.c:Py_XDECREF Line | Count | Source | 518 | 600 | { | 519 | 600 | if (op != _Py_NULL) { | 520 | 428 | Py_DECREF(op); | 521 | 428 | } | 522 | 600 | } |
unicode_format.c:Py_XDECREF Line | Count | Source | 518 | 21.8M | { | 519 | 21.8M | if (op != _Py_NULL) { | 520 | 51.5k | Py_DECREF(op); | 521 | 51.5k | } | 522 | 21.8M | } |
unicode_formatter.c:Py_XDECREF Line | Count | Source | 518 | 1.98k | { | 519 | 1.98k | if (op != _Py_NULL) { | 520 | 1.27k | Py_DECREF(op); | 521 | 1.27k | } | 522 | 1.98k | } |
Unexecuted instantiation: unicode_writer.c:Py_XDECREF Unexecuted instantiation: unicodectype.c:Py_XDECREF unicodeobject.c:Py_XDECREF Line | Count | Source | 518 | 96.9M | { | 519 | 96.9M | if (op != _Py_NULL) { | 520 | 46.5M | Py_DECREF(op); | 521 | 46.5M | } | 522 | 96.9M | } |
Line | Count | Source | 518 | 2.08k | { | 519 | 2.08k | if (op != _Py_NULL) { | 520 | 332 | Py_DECREF(op); | 521 | 332 | } | 522 | 2.08k | } |
weakrefobject.c:Py_XDECREF Line | Count | Source | 518 | 1.35M | { | 519 | 1.35M | if (op != _Py_NULL) { | 520 | 667k | Py_DECREF(op); | 521 | 667k | } | 522 | 1.35M | } |
Line | Count | Source | 518 | 1.12M | { | 519 | 1.12M | if (op != _Py_NULL) { | 520 | 1.02M | Py_DECREF(op); | 521 | 1.02M | } | 522 | 1.12M | } |
Line | Count | Source | 518 | 18.2M | { | 519 | 18.2M | if (op != _Py_NULL) { | 520 | 498k | Py_DECREF(op); | 521 | 498k | } | 522 | 18.2M | } |
Line | Count | Source | 518 | 9.14M | { | 519 | 9.14M | if (op != _Py_NULL) { | 520 | 122k | Py_DECREF(op); | 521 | 122k | } | 522 | 9.14M | } |
Line | Count | Source | 518 | 235k | { | 519 | 235k | if (op != _Py_NULL) { | 520 | 157k | Py_DECREF(op); | 521 | 157k | } | 522 | 235k | } |
Unexecuted instantiation: codegen.c:Py_XDECREF Line | Count | Source | 518 | 16.9k | { | 519 | 16.9k | if (op != _Py_NULL) { | 520 | 7.18k | Py_DECREF(op); | 521 | 7.18k | } | 522 | 16.9k | } |
Unexecuted instantiation: context.c:Py_XDECREF Line | Count | Source | 518 | 291M | { | 519 | 291M | if (op != _Py_NULL) { | 520 | 33.2M | Py_DECREF(op); | 521 | 33.2M | } | 522 | 291M | } |
Unexecuted instantiation: flowgraph.c:Py_XDECREF Unexecuted instantiation: frame.c:Py_XDECREF Unexecuted instantiation: future.c:Py_XDECREF Line | Count | Source | 518 | 188k | { | 519 | 188k | if (op != _Py_NULL) { | 520 | 5.89k | Py_DECREF(op); | 521 | 5.89k | } | 522 | 188k | } |
Unexecuted instantiation: gc_gil.c:Py_XDECREF Unexecuted instantiation: getargs.c:Py_XDECREF Unexecuted instantiation: ceval_gil.c:Py_XDECREF Unexecuted instantiation: hamt.c:Py_XDECREF Unexecuted instantiation: hashtable.c:Py_XDECREF Line | Count | Source | 518 | 4.72M | { | 519 | 4.72M | if (op != _Py_NULL) { | 520 | 4.70M | Py_DECREF(op); | 521 | 4.70M | } | 522 | 4.72M | } |
Unexecuted instantiation: importdl.c:Py_XDECREF Unexecuted instantiation: initconfig.c:Py_XDECREF Unexecuted instantiation: instrumentation.c:Py_XDECREF instruction_sequence.c:Py_XDECREF Line | Count | Source | 518 | 8.45k | { | 519 | 8.45k | if (op != _Py_NULL) { | 520 | 0 | Py_DECREF(op); | 521 | 0 | } | 522 | 8.45k | } |
Line | Count | Source | 518 | 40.0k | { | 519 | 40.0k | if (op != _Py_NULL) { | 520 | 40.0k | Py_DECREF(op); | 521 | 40.0k | } | 522 | 40.0k | } |
Unexecuted instantiation: legacy_tracing.c:Py_XDECREF Unexecuted instantiation: lock.c:Py_XDECREF Line | Count | Source | 518 | 1.69M | { | 519 | 1.69M | if (op != _Py_NULL) { | 520 | 1.69M | Py_DECREF(op); | 521 | 1.69M | } | 522 | 1.69M | } |
Line | Count | Source | 518 | 15.9k | { | 519 | 15.9k | if (op != _Py_NULL) { | 520 | 15.9k | Py_DECREF(op); | 521 | 15.9k | } | 522 | 15.9k | } |
Unexecuted instantiation: mysnprintf.c:Py_XDECREF Unexecuted instantiation: parking_lot.c:Py_XDECREF Unexecuted instantiation: preconfig.c:Py_XDECREF Unexecuted instantiation: pyarena.c:Py_XDECREF Unexecuted instantiation: pyctype.c:Py_XDECREF Unexecuted instantiation: pyhash.c:Py_XDECREF Line | Count | Source | 518 | 216 | { | 519 | 216 | if (op != _Py_NULL) { | 520 | 216 | Py_DECREF(op); | 521 | 216 | } | 522 | 216 | } |
Unexecuted instantiation: pymath.c:Py_XDECREF Unexecuted instantiation: pystate.c:Py_XDECREF Line | Count | Source | 518 | 1.72k | { | 519 | 1.72k | if (op != _Py_NULL) { | 520 | 1.15k | Py_DECREF(op); | 521 | 1.15k | } | 522 | 1.72k | } |
Unexecuted instantiation: pytime.c:Py_XDECREF Unexecuted instantiation: qsbr.c:Py_XDECREF Unexecuted instantiation: bootstrap_hash.c:Py_XDECREF Line | Count | Source | 518 | 2.64M | { | 519 | 2.64M | if (op != _Py_NULL) { | 520 | 1.17M | Py_DECREF(op); | 521 | 1.17M | } | 522 | 2.64M | } |
Unexecuted instantiation: slots.c:Py_XDECREF Unexecuted instantiation: slots_generated.c:Py_XDECREF structmember.c:Py_XDECREF Line | Count | Source | 518 | 6.54M | { | 519 | 6.54M | if (op != _Py_NULL) { | 520 | 17.5k | Py_DECREF(op); | 521 | 17.5k | } | 522 | 6.54M | } |
Line | Count | Source | 518 | 105k | { | 519 | 105k | if (op != _Py_NULL) { | 520 | 78.6k | Py_DECREF(op); | 521 | 78.6k | } | 522 | 105k | } |
Line | Count | Source | 518 | 1.70M | { | 519 | 1.70M | if (op != _Py_NULL) { | 520 | 1.28M | Py_DECREF(op); | 521 | 1.28M | } | 522 | 1.70M | } |
Unexecuted instantiation: thread.c:Py_XDECREF Line | Count | Source | 518 | 266M | { | 519 | 266M | if (op != _Py_NULL) { | 520 | 184M | Py_DECREF(op); | 521 | 184M | } | 522 | 266M | } |
Unexecuted instantiation: tracemalloc.c:Py_XDECREF Unexecuted instantiation: getopt.c:Py_XDECREF Unexecuted instantiation: pystrcmp.c:Py_XDECREF Unexecuted instantiation: pystrtod.c:Py_XDECREF Unexecuted instantiation: pystrhex.c:Py_XDECREF Unexecuted instantiation: dtoa.c:Py_XDECREF Unexecuted instantiation: fileutils.c:Py_XDECREF Unexecuted instantiation: suggestions.c:Py_XDECREF Unexecuted instantiation: perf_trampoline.c:Py_XDECREF Unexecuted instantiation: perf_jit_trampoline.c:Py_XDECREF Unexecuted instantiation: jit_unwind.c:Py_XDECREF Unexecuted instantiation: remote_debugging.c:Py_XDECREF Unexecuted instantiation: dynload_shlib.c:Py_XDECREF Unexecuted instantiation: config.c:Py_XDECREF Unexecuted instantiation: gcmodule.c:Py_XDECREF Unexecuted instantiation: _asynciomodule.c:Py_XDECREF Unexecuted instantiation: atexitmodule.c:Py_XDECREF Unexecuted instantiation: faulthandler.c:Py_XDECREF Line | Count | Source | 518 | 816k | { | 519 | 816k | if (op != _Py_NULL) { | 520 | 693k | Py_DECREF(op); | 521 | 693k | } | 522 | 816k | } |
signalmodule.c:Py_XDECREF Line | Count | Source | 518 | 2.30k | { | 519 | 2.30k | if (op != _Py_NULL) { | 520 | 0 | Py_DECREF(op); | 521 | 0 | } | 522 | 2.30k | } |
Unexecuted instantiation: _tracemalloc.c:Py_XDECREF Unexecuted instantiation: _suggestions.c:Py_XDECREF _datetimemodule.c:Py_XDECREF Line | Count | Source | 518 | 24.6k | { | 519 | 24.6k | if (op != _Py_NULL) { | 520 | 24.5k | Py_DECREF(op); | 521 | 24.5k | } | 522 | 24.6k | } |
Unexecuted instantiation: _codecsmodule.c:Py_XDECREF _collectionsmodule.c:Py_XDECREF Line | Count | Source | 518 | 21.0k | { | 519 | 21.0k | if (op != _Py_NULL) { | 520 | 0 | Py_DECREF(op); | 521 | 0 | } | 522 | 21.0k | } |
Unexecuted instantiation: errnomodule.c:Py_XDECREF Line | Count | Source | 518 | 22 | { | 519 | 22 | if (op != _Py_NULL) { | 520 | 11 | Py_DECREF(op); | 521 | 11 | } | 522 | 22 | } |
Unexecuted instantiation: iobase.c:Py_XDECREF Unexecuted instantiation: fileio.c:Py_XDECREF Line | Count | Source | 518 | 47.7k | { | 519 | 47.7k | if (op != _Py_NULL) { | 520 | 47.7k | Py_DECREF(op); | 521 | 47.7k | } | 522 | 47.7k | } |
Line | Count | Source | 518 | 48.1k | { | 519 | 48.1k | if (op != _Py_NULL) { | 520 | 6.19k | Py_DECREF(op); | 521 | 6.19k | } | 522 | 48.1k | } |
Line | Count | Source | 518 | 32.4k | { | 519 | 32.4k | if (op != _Py_NULL) { | 520 | 218 | Py_DECREF(op); | 521 | 218 | } | 522 | 32.4k | } |
Unexecuted instantiation: stringio.c:Py_XDECREF itertoolsmodule.c:Py_XDECREF Line | Count | Source | 518 | 5.77k | { | 519 | 5.77k | if (op != _Py_NULL) { | 520 | 5.18k | Py_DECREF(op); | 521 | 5.18k | } | 522 | 5.77k | } |
Line | Count | Source | 518 | 61.5M | { | 519 | 61.5M | if (op != _Py_NULL) { | 520 | 61.5M | Py_DECREF(op); | 521 | 61.5M | } | 522 | 61.5M | } |
Unexecuted instantiation: _sysconfig.c:Py_XDECREF Unexecuted instantiation: _threadmodule.c:Py_XDECREF Unexecuted instantiation: timemodule.c:Py_XDECREF Unexecuted instantiation: _typesmodule.c:Py_XDECREF Unexecuted instantiation: _typingmodule.c:Py_XDECREF Unexecuted instantiation: _weakref.c:Py_XDECREF Line | Count | Source | 518 | 200k | { | 519 | 200k | if (op != _Py_NULL) { | 520 | 168k | Py_DECREF(op); | 521 | 168k | } | 522 | 200k | } |
_functoolsmodule.c:Py_XDECREF Line | Count | Source | 518 | 7.45k | { | 519 | 7.45k | if (op != _Py_NULL) { | 520 | 0 | Py_DECREF(op); | 521 | 0 | } | 522 | 7.45k | } |
Unexecuted instantiation: _localemodule.c:Py_XDECREF Unexecuted instantiation: _opcode.c:Py_XDECREF Unexecuted instantiation: _operator.c:Py_XDECREF Unexecuted instantiation: _stat.c:Py_XDECREF Unexecuted instantiation: symtablemodule.c:Py_XDECREF Unexecuted instantiation: pwdmodule.c:Py_XDECREF Unexecuted instantiation: getpath.c:Py_XDECREF Unexecuted instantiation: frozen.c:Py_XDECREF Unexecuted instantiation: getbuildinfo.c:Py_XDECREF Unexecuted instantiation: peg_api.c:Py_XDECREF Unexecuted instantiation: file_tokenizer.c:Py_XDECREF Line | Count | Source | 518 | 13.2k | { | 519 | 13.2k | if (op != _Py_NULL) { | 520 | 12.3k | Py_DECREF(op); | 521 | 12.3k | } | 522 | 13.2k | } |
Unexecuted instantiation: myreadline.c:Py_XDECREF Line | Count | Source | 518 | 299k | { | 519 | 299k | if (op != _Py_NULL) { | 520 | 73.0k | Py_DECREF(op); | 521 | 73.0k | } | 522 | 299k | } |
Unexecuted instantiation: boolobject.c:Py_XDECREF Unexecuted instantiation: bytes_methods.c:Py_XDECREF bytearrayobject.c:Py_XDECREF Line | Count | Source | 518 | 27.1M | { | 519 | 27.1M | if (op != _Py_NULL) { | 520 | 27.1M | Py_DECREF(op); | 521 | 27.1M | } | 522 | 27.1M | } |
Line | Count | Source | 518 | 14 | { | 519 | 14 | if (op != _Py_NULL) { | 520 | 14 | Py_DECREF(op); | 521 | 14 | } | 522 | 14 | } |
Line | Count | Source | 518 | 25.4M | { | 519 | 25.4M | if (op != _Py_NULL) { | 520 | 11.7M | Py_DECREF(op); | 521 | 11.7M | } | 522 | 25.4M | } |
Line | Count | Source | 518 | 44.9M | { | 519 | 44.9M | if (op != _Py_NULL) { | 520 | 44.9M | Py_DECREF(op); | 521 | 44.9M | } | 522 | 44.9M | } |
Line | Count | Source | 518 | 1.09M | { | 519 | 1.09M | if (op != _Py_NULL) { | 520 | 909k | Py_DECREF(op); | 521 | 909k | } | 522 | 1.09M | } |
Unexecuted instantiation: complexobject.c:Py_XDECREF Line | Count | Source | 518 | 31.6M | { | 519 | 31.6M | if (op != _Py_NULL) { | 520 | 21.8M | Py_DECREF(op); | 521 | 21.8M | } | 522 | 31.6M | } |
Line | Count | Source | 518 | 32.7M | { | 519 | 32.7M | if (op != _Py_NULL) { | 520 | 21.8M | Py_DECREF(op); | 521 | 21.8M | } | 522 | 32.7M | } |
Line | Count | Source | 518 | 42.0k | { | 519 | 42.0k | if (op != _Py_NULL) { | 520 | 0 | Py_DECREF(op); | 521 | 0 | } | 522 | 42.0k | } |
Unexecuted instantiation: fileobject.c:Py_XDECREF Unexecuted instantiation: frameobject.c:Py_XDECREF Line | Count | Source | 518 | 67.6k | { | 519 | 67.6k | if (op != _Py_NULL) { | 520 | 32.8k | Py_DECREF(op); | 521 | 32.8k | } | 522 | 67.6k | } |
Unexecuted instantiation: interpolationobject.c:Py_XDECREF Line | Count | Source | 518 | 3.50M | { | 519 | 3.50M | if (op != _Py_NULL) { | 520 | 363k | Py_DECREF(op); | 521 | 363k | } | 522 | 3.50M | } |
Unexecuted instantiation: lazyimportobject.c:Py_XDECREF Line | Count | Source | 518 | 275k | { | 519 | 275k | if (op != _Py_NULL) { | 520 | 80.9k | Py_DECREF(op); | 521 | 80.9k | } | 522 | 275k | } |
methodobject.c:Py_XDECREF Line | Count | Source | 518 | 450M | { | 519 | 450M | if (op != _Py_NULL) { | 520 | 158M | Py_DECREF(op); | 521 | 158M | } | 522 | 450M | } |
Unexecuted instantiation: namespaceobject.c:Py_XDECREF Unexecuted instantiation: _contextvars.c:Py_XDECREF Line | Count | Source | 518 | 735 | { | 519 | 735 | if (op != _Py_NULL) { | 520 | 490 | Py_DECREF(op); | 521 | 490 | } | 522 | 735 | } |
Python-tokenize.c:Py_XDECREF Line | Count | Source | 518 | 340 | { | 519 | 340 | if (op != _Py_NULL) { | 520 | 320 | Py_DECREF(op); | 521 | 320 | } | 522 | 340 | } |
Unexecuted instantiation: asdl.c:Py_XDECREF Line | Count | Source | 518 | 29.5k | { | 519 | 29.5k | if (op != _Py_NULL) { | 520 | 29.5k | Py_DECREF(op); | 521 | 29.5k | } | 522 | 29.5k | } |
Unexecuted instantiation: ast.c:Py_XDECREF Unexecuted instantiation: ast_preprocess.c:Py_XDECREF Unexecuted instantiation: ast_unparse.c:Py_XDECREF Unexecuted instantiation: critical_section.c:Py_XDECREF Unexecuted instantiation: crossinterp.c:Py_XDECREF Unexecuted instantiation: getcopyright.c:Py_XDECREF Unexecuted instantiation: getplatform.c:Py_XDECREF Unexecuted instantiation: getversion.c:Py_XDECREF Unexecuted instantiation: optimizer.c:Py_XDECREF Unexecuted instantiation: pathconfig.c:Py_XDECREF Line | Count | Source | 518 | 192k | { | 519 | 192k | if (op != _Py_NULL) { | 520 | 1.64k | Py_DECREF(op); | 521 | 1.64k | } | 522 | 192k | } |
pegen_errors.c:Py_XDECREF Line | Count | Source | 518 | 1.96k | { | 519 | 1.96k | if (op != _Py_NULL) { | 520 | 1.31k | Py_DECREF(op); | 521 | 1.31k | } | 522 | 1.96k | } |
Unexecuted instantiation: parser.c:Py_XDECREF Unexecuted instantiation: buffer.c:Py_XDECREF Unexecuted instantiation: lexer.c:Py_XDECREF Unexecuted instantiation: number.c:Py_XDECREF Line | Count | Source | 518 | 605k | { | 519 | 605k | if (op != _Py_NULL) { | 520 | 101k | Py_DECREF(op); | 521 | 101k | } | 522 | 605k | } |
Unexecuted instantiation: string.c:Py_XDECREF Unexecuted instantiation: readline_tokenizer.c:Py_XDECREF Unexecuted instantiation: string_tokenizer.c:Py_XDECREF Unexecuted instantiation: utf8_tokenizer.c:Py_XDECREF Unexecuted instantiation: getcompiler.c:Py_XDECREF Unexecuted instantiation: mystrtoul.c:Py_XDECREF Unexecuted instantiation: token.c:Py_XDECREF Unexecuted instantiation: action_helpers.c:Py_XDECREF string_parser.c:Py_XDECREF Line | Count | Source | 518 | 29.2k | { | 519 | 29.2k | if (op != _Py_NULL) { | 520 | 29.2k | Py_DECREF(op); | 521 | 29.2k | } | 522 | 29.2k | } |
|
523 | | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000 |
524 | 6.34G | # define Py_XDECREF(op) Py_XDECREF(_PyObject_CAST(op)) |
525 | | #endif |
526 | | |
527 | | // Create a new strong reference to an object: |
528 | | // increment the reference count of the object and return the object. |
529 | | PyAPI_FUNC(PyObject*) Py_NewRef(PyObject *obj); |
530 | | |
531 | | // Similar to Py_NewRef(), but the object can be NULL. |
532 | | PyAPI_FUNC(PyObject*) Py_XNewRef(PyObject *obj); |
533 | | |
534 | | static inline PyObject* _Py_NewRef(PyObject *obj) |
535 | 6.49G | { |
536 | 6.49G | Py_INCREF(obj); |
537 | 6.49G | return obj; |
538 | 6.49G | } Line | Count | Source | 535 | 1.17M | { | 536 | 1.17M | Py_INCREF(obj); | 537 | 1.17M | return obj; | 538 | 1.17M | } |
Line | Count | Source | 535 | 33.2M | { | 536 | 33.2M | Py_INCREF(obj); | 537 | 33.2M | return obj; | 538 | 33.2M | } |
Line | Count | Source | 535 | 160M | { | 536 | 160M | Py_INCREF(obj); | 537 | 160M | return obj; | 538 | 160M | } |
genericaliasobject.c:_Py_NewRef Line | Count | Source | 535 | 1.91k | { | 536 | 1.91k | Py_INCREF(obj); | 537 | 1.91k | return obj; | 538 | 1.91k | } |
Unexecuted instantiation: floatobject.c:_Py_NewRef Line | Count | Source | 535 | 1.60G | { | 536 | 1.60G | Py_INCREF(obj); | 537 | 1.60G | return obj; | 538 | 1.60G | } |
Line | Count | Source | 535 | 20.1M | { | 536 | 20.1M | Py_INCREF(obj); | 537 | 20.1M | return obj; | 538 | 20.1M | } |
Line | Count | Source | 535 | 450M | { | 536 | 450M | Py_INCREF(obj); | 537 | 450M | return obj; | 538 | 450M | } |
memoryobject.c:_Py_NewRef Line | Count | Source | 535 | 2.78M | { | 536 | 2.78M | Py_INCREF(obj); | 537 | 2.78M | return obj; | 538 | 2.78M | } |
moduleobject.c:_Py_NewRef Line | Count | Source | 535 | 8.04k | { | 536 | 8.04k | Py_INCREF(obj); | 537 | 8.04k | return obj; | 538 | 8.04k | } |
Line | Count | Source | 535 | 78.6M | { | 536 | 78.6M | Py_INCREF(obj); | 537 | 78.6M | return obj; | 538 | 78.6M | } |
Unexecuted instantiation: obmalloc.c:_Py_NewRef Unexecuted instantiation: picklebufobject.c:_Py_NewRef Line | Count | Source | 535 | 108 | { | 536 | 108 | Py_INCREF(obj); | 537 | 108 | return obj; | 538 | 108 | } |
sentinelobject.c:_Py_NewRef Line | Count | Source | 535 | 159 | { | 536 | 159 | Py_INCREF(obj); | 537 | 159 | return obj; | 538 | 159 | } |
Line | Count | Source | 535 | 3.92M | { | 536 | 3.92M | Py_INCREF(obj); | 537 | 3.92M | return obj; | 538 | 3.92M | } |
Line | Count | Source | 535 | 186M | { | 536 | 186M | Py_INCREF(obj); | 537 | 186M | return obj; | 538 | 186M | } |
Line | Count | Source | 535 | 132k | { | 536 | 132k | Py_INCREF(obj); | 537 | 132k | return obj; | 538 | 132k | } |
templateobject.c:_Py_NewRef Line | Count | Source | 535 | 22 | { | 536 | 22 | Py_INCREF(obj); | 537 | 22 | return obj; | 538 | 22 | } |
Line | Count | Source | 535 | 1.91G | { | 536 | 1.91G | Py_INCREF(obj); | 537 | 1.91G | return obj; | 538 | 1.91G | } |
Line | Count | Source | 535 | 149M | { | 536 | 149M | Py_INCREF(obj); | 537 | 149M | return obj; | 538 | 149M | } |
typevarobject.c:_Py_NewRef Line | Count | Source | 535 | 1.95k | { | 536 | 1.95k | Py_INCREF(obj); | 537 | 1.95k | return obj; | 538 | 1.95k | } |
unicode_format.c:_Py_NewRef Line | Count | Source | 535 | 15.7M | { | 536 | 15.7M | Py_INCREF(obj); | 537 | 15.7M | return obj; | 538 | 15.7M | } |
Unexecuted instantiation: unicode_formatter.c:_Py_NewRef unicode_writer.c:_Py_NewRef Line | Count | Source | 535 | 7.99k | { | 536 | 7.99k | Py_INCREF(obj); | 537 | 7.99k | return obj; | 538 | 7.99k | } |
Unexecuted instantiation: unicodectype.c:_Py_NewRef unicodeobject.c:_Py_NewRef Line | Count | Source | 535 | 100M | { | 536 | 100M | Py_INCREF(obj); | 537 | 100M | return obj; | 538 | 100M | } |
Line | Count | Source | 535 | 920 | { | 536 | 920 | Py_INCREF(obj); | 537 | 920 | return obj; | 538 | 920 | } |
Unexecuted instantiation: weakrefobject.c:_Py_NewRef Line | Count | Source | 535 | 439k | { | 536 | 439k | Py_INCREF(obj); | 537 | 439k | return obj; | 538 | 439k | } |
Line | Count | Source | 535 | 38.5M | { | 536 | 38.5M | Py_INCREF(obj); | 537 | 38.5M | return obj; | 538 | 38.5M | } |
Line | Count | Source | 535 | 754M | { | 536 | 754M | Py_INCREF(obj); | 537 | 754M | return obj; | 538 | 754M | } |
Line | Count | Source | 535 | 7.10M | { | 536 | 7.10M | Py_INCREF(obj); | 537 | 7.10M | return obj; | 538 | 7.10M | } |
Line | Count | Source | 535 | 1.97k | { | 536 | 1.97k | Py_INCREF(obj); | 537 | 1.97k | return obj; | 538 | 1.97k | } |
Line | Count | Source | 535 | 58.5k | { | 536 | 58.5k | Py_INCREF(obj); | 537 | 58.5k | return obj; | 538 | 58.5k | } |
Line | Count | Source | 535 | 65 | { | 536 | 65 | Py_INCREF(obj); | 537 | 65 | return obj; | 538 | 65 | } |
Line | Count | Source | 535 | 43.0M | { | 536 | 43.0M | Py_INCREF(obj); | 537 | 43.0M | return obj; | 538 | 43.0M | } |
Line | Count | Source | 535 | 63.8k | { | 536 | 63.8k | Py_INCREF(obj); | 537 | 63.8k | return obj; | 538 | 63.8k | } |
Line | Count | Source | 535 | 42.0M | { | 536 | 42.0M | Py_INCREF(obj); | 537 | 42.0M | return obj; | 538 | 42.0M | } |
Unexecuted instantiation: future.c:_Py_NewRef Unexecuted instantiation: gc.c:_Py_NewRef Unexecuted instantiation: gc_gil.c:_Py_NewRef Line | Count | Source | 535 | 2.16M | { | 536 | 2.16M | Py_INCREF(obj); | 537 | 2.16M | return obj; | 538 | 2.16M | } |
Unexecuted instantiation: ceval_gil.c:_Py_NewRef Unexecuted instantiation: hamt.c:_Py_NewRef Unexecuted instantiation: hashtable.c:_Py_NewRef Line | Count | Source | 535 | 4.26M | { | 536 | 4.26M | Py_INCREF(obj); | 537 | 4.26M | return obj; | 538 | 4.26M | } |
Line | Count | Source | 535 | 1.14k | { | 536 | 1.14k | Py_INCREF(obj); | 537 | 1.14k | return obj; | 538 | 1.14k | } |
Line | Count | Source | 535 | 612 | { | 536 | 612 | Py_INCREF(obj); | 537 | 612 | return obj; | 538 | 612 | } |
Unexecuted instantiation: instrumentation.c:_Py_NewRef Unexecuted instantiation: instruction_sequence.c:_Py_NewRef Line | Count | Source | 535 | 64.7k | { | 536 | 64.7k | Py_INCREF(obj); | 537 | 64.7k | return obj; | 538 | 64.7k | } |
Unexecuted instantiation: legacy_tracing.c:_Py_NewRef Unexecuted instantiation: lock.c:_Py_NewRef Line | Count | Source | 535 | 1.83M | { | 536 | 1.83M | Py_INCREF(obj); | 537 | 1.83M | return obj; | 538 | 1.83M | } |
Line | Count | Source | 535 | 18 | { | 536 | 18 | Py_INCREF(obj); | 537 | 18 | return obj; | 538 | 18 | } |
Unexecuted instantiation: mysnprintf.c:_Py_NewRef Unexecuted instantiation: parking_lot.c:_Py_NewRef Unexecuted instantiation: preconfig.c:_Py_NewRef Unexecuted instantiation: pyarena.c:_Py_NewRef Unexecuted instantiation: pyctype.c:_Py_NewRef Unexecuted instantiation: pyhash.c:_Py_NewRef Line | Count | Source | 535 | 36 | { | 536 | 36 | Py_INCREF(obj); | 537 | 36 | return obj; | 538 | 36 | } |
Unexecuted instantiation: pymath.c:_Py_NewRef Unexecuted instantiation: pystate.c:_Py_NewRef Unexecuted instantiation: pythonrun.c:_Py_NewRef Unexecuted instantiation: pytime.c:_Py_NewRef Unexecuted instantiation: qsbr.c:_Py_NewRef Unexecuted instantiation: bootstrap_hash.c:_Py_NewRef Unexecuted instantiation: specialize.c:_Py_NewRef Unexecuted instantiation: slots.c:_Py_NewRef Unexecuted instantiation: slots_generated.c:_Py_NewRef Unexecuted instantiation: structmember.c:_Py_NewRef Line | Count | Source | 535 | 116k | { | 536 | 116k | Py_INCREF(obj); | 537 | 116k | return obj; | 538 | 116k | } |
Line | Count | Source | 535 | 1.88k | { | 536 | 1.88k | Py_INCREF(obj); | 537 | 1.88k | return obj; | 538 | 1.88k | } |
Unexecuted instantiation: thread.c:_Py_NewRef Unexecuted instantiation: traceback.c:_Py_NewRef Unexecuted instantiation: tracemalloc.c:_Py_NewRef Unexecuted instantiation: getopt.c:_Py_NewRef Unexecuted instantiation: pystrcmp.c:_Py_NewRef Unexecuted instantiation: pystrtod.c:_Py_NewRef Unexecuted instantiation: pystrhex.c:_Py_NewRef Unexecuted instantiation: dtoa.c:_Py_NewRef Unexecuted instantiation: fileutils.c:_Py_NewRef Unexecuted instantiation: suggestions.c:_Py_NewRef Unexecuted instantiation: perf_trampoline.c:_Py_NewRef Unexecuted instantiation: perf_jit_trampoline.c:_Py_NewRef Unexecuted instantiation: jit_unwind.c:_Py_NewRef Unexecuted instantiation: remote_debugging.c:_Py_NewRef Unexecuted instantiation: dynload_shlib.c:_Py_NewRef Unexecuted instantiation: config.c:_Py_NewRef Unexecuted instantiation: gcmodule.c:_Py_NewRef Unexecuted instantiation: _asynciomodule.c:_Py_NewRef atexitmodule.c:_Py_NewRef Line | Count | Source | 535 | 2 | { | 536 | 2 | Py_INCREF(obj); | 537 | 2 | return obj; | 538 | 2 | } |
Unexecuted instantiation: faulthandler.c:_Py_NewRef Line | Count | Source | 535 | 1.20M | { | 536 | 1.20M | Py_INCREF(obj); | 537 | 1.20M | return obj; | 538 | 1.20M | } |
signalmodule.c:_Py_NewRef Line | Count | Source | 535 | 2.30k | { | 536 | 2.30k | Py_INCREF(obj); | 537 | 2.30k | return obj; | 538 | 2.30k | } |
Unexecuted instantiation: _tracemalloc.c:_Py_NewRef Unexecuted instantiation: _suggestions.c:_Py_NewRef _datetimemodule.c:_Py_NewRef Line | Count | Source | 535 | 24.4k | { | 536 | 24.4k | Py_INCREF(obj); | 537 | 24.4k | return obj; | 538 | 24.4k | } |
Unexecuted instantiation: _codecsmodule.c:_Py_NewRef _collectionsmodule.c:_Py_NewRef Line | Count | Source | 535 | 23.3M | { | 536 | 23.3M | Py_INCREF(obj); | 537 | 23.3M | return obj; | 538 | 23.3M | } |
Unexecuted instantiation: errnomodule.c:_Py_NewRef Line | Count | Source | 535 | 271 | { | 536 | 271 | Py_INCREF(obj); | 537 | 271 | return obj; | 538 | 271 | } |
Line | Count | Source | 535 | 90.5k | { | 536 | 90.5k | Py_INCREF(obj); | 537 | 90.5k | return obj; | 538 | 90.5k | } |
Unexecuted instantiation: fileio.c:_Py_NewRef Line | Count | Source | 535 | 71.9k | { | 536 | 71.9k | Py_INCREF(obj); | 537 | 71.9k | return obj; | 538 | 71.9k | } |
Line | Count | Source | 535 | 11.1k | { | 536 | 11.1k | Py_INCREF(obj); | 537 | 11.1k | return obj; | 538 | 11.1k | } |
Line | Count | Source | 535 | 175k | { | 536 | 175k | Py_INCREF(obj); | 537 | 175k | return obj; | 538 | 175k | } |
Line | Count | Source | 535 | 15.9k | { | 536 | 15.9k | Py_INCREF(obj); | 537 | 15.9k | return obj; | 538 | 15.9k | } |
itertoolsmodule.c:_Py_NewRef Line | Count | Source | 535 | 39.6k | { | 536 | 39.6k | Py_INCREF(obj); | 537 | 39.6k | return obj; | 538 | 39.6k | } |
Line | Count | Source | 535 | 119M | { | 536 | 119M | Py_INCREF(obj); | 537 | 119M | return obj; | 538 | 119M | } |
Unexecuted instantiation: _sysconfig.c:_Py_NewRef _threadmodule.c:_Py_NewRef Line | Count | Source | 535 | 72 | { | 536 | 72 | Py_INCREF(obj); | 537 | 72 | return obj; | 538 | 72 | } |
Unexecuted instantiation: timemodule.c:_Py_NewRef Unexecuted instantiation: _typesmodule.c:_Py_NewRef Unexecuted instantiation: _typingmodule.c:_Py_NewRef Unexecuted instantiation: _weakref.c:_Py_NewRef Line | Count | Source | 535 | 52.8k | { | 536 | 52.8k | Py_INCREF(obj); | 537 | 52.8k | return obj; | 538 | 52.8k | } |
_functoolsmodule.c:_Py_NewRef Line | Count | Source | 535 | 139k | { | 536 | 139k | Py_INCREF(obj); | 537 | 139k | return obj; | 538 | 139k | } |
Unexecuted instantiation: _localemodule.c:_Py_NewRef Unexecuted instantiation: _opcode.c:_Py_NewRef Line | Count | Source | 535 | 1.43M | { | 536 | 1.43M | Py_INCREF(obj); | 537 | 1.43M | return obj; | 538 | 1.43M | } |
Unexecuted instantiation: _stat.c:_Py_NewRef Unexecuted instantiation: symtablemodule.c:_Py_NewRef Unexecuted instantiation: pwdmodule.c:_Py_NewRef Line | Count | Source | 535 | 288 | { | 536 | 288 | Py_INCREF(obj); | 537 | 288 | return obj; | 538 | 288 | } |
Unexecuted instantiation: frozen.c:_Py_NewRef Unexecuted instantiation: getbuildinfo.c:_Py_NewRef Unexecuted instantiation: peg_api.c:_Py_NewRef Unexecuted instantiation: file_tokenizer.c:_Py_NewRef Unexecuted instantiation: helpers.c:_Py_NewRef Unexecuted instantiation: myreadline.c:_Py_NewRef Line | Count | Source | 535 | 452M | { | 536 | 452M | Py_INCREF(obj); | 537 | 452M | return obj; | 538 | 452M | } |
Unexecuted instantiation: boolobject.c:_Py_NewRef Unexecuted instantiation: bytes_methods.c:_Py_NewRef bytearrayobject.c:_Py_NewRef Line | Count | Source | 535 | 22.3M | { | 536 | 22.3M | Py_INCREF(obj); | 537 | 22.3M | return obj; | 538 | 22.3M | } |
Unexecuted instantiation: capsule.c:_Py_NewRef Unexecuted instantiation: cellobject.c:_Py_NewRef Line | Count | Source | 535 | 89.8M | { | 536 | 89.8M | Py_INCREF(obj); | 537 | 89.8M | return obj; | 538 | 89.8M | } |
Line | Count | Source | 535 | 2.06M | { | 536 | 2.06M | Py_INCREF(obj); | 537 | 2.06M | return obj; | 538 | 2.06M | } |
Unexecuted instantiation: complexobject.c:_Py_NewRef Line | Count | Source | 535 | 21.9M | { | 536 | 21.9M | Py_INCREF(obj); | 537 | 21.9M | return obj; | 538 | 21.9M | } |
Line | Count | Source | 535 | 28 | { | 536 | 28 | Py_INCREF(obj); | 537 | 28 | return obj; | 538 | 28 | } |
Line | Count | Source | 535 | 92.5M | { | 536 | 92.5M | Py_INCREF(obj); | 537 | 92.5M | return obj; | 538 | 92.5M | } |
Unexecuted instantiation: fileobject.c:_Py_NewRef Line | Count | Source | 535 | 11.8M | { | 536 | 11.8M | Py_INCREF(obj); | 537 | 11.8M | return obj; | 538 | 11.8M | } |
Line | Count | Source | 535 | 22.2M | { | 536 | 22.2M | Py_INCREF(obj); | 537 | 22.2M | return obj; | 538 | 22.2M | } |
interpolationobject.c:_Py_NewRef Line | Count | Source | 535 | 12 | { | 536 | 12 | Py_INCREF(obj); | 537 | 12 | return obj; | 538 | 12 | } |
Line | Count | Source | 535 | 3.14M | { | 536 | 3.14M | Py_INCREF(obj); | 537 | 3.14M | return obj; | 538 | 3.14M | } |
lazyimportobject.c:_Py_NewRef Line | Count | Source | 535 | 838 | { | 536 | 838 | Py_INCREF(obj); | 537 | 838 | return obj; | 538 | 838 | } |
Line | Count | Source | 535 | 199k | { | 536 | 199k | Py_INCREF(obj); | 537 | 199k | return obj; | 538 | 199k | } |
methodobject.c:_Py_NewRef Line | Count | Source | 535 | 8.06M | { | 536 | 8.06M | Py_INCREF(obj); | 537 | 8.06M | return obj; | 538 | 8.06M | } |
Unexecuted instantiation: namespaceobject.c:_Py_NewRef Unexecuted instantiation: _contextvars.c:_Py_NewRef Line | Count | Source | 535 | 549k | { | 536 | 549k | Py_INCREF(obj); | 537 | 549k | return obj; | 538 | 549k | } |
Unexecuted instantiation: Python-tokenize.c:_Py_NewRef Unexecuted instantiation: asdl.c:_Py_NewRef Line | Count | Source | 535 | 20.5k | { | 536 | 20.5k | Py_INCREF(obj); | 537 | 20.5k | return obj; | 538 | 20.5k | } |
Unexecuted instantiation: ast.c:_Py_NewRef Unexecuted instantiation: ast_preprocess.c:_Py_NewRef Unexecuted instantiation: ast_unparse.c:_Py_NewRef Unexecuted instantiation: critical_section.c:_Py_NewRef Unexecuted instantiation: crossinterp.c:_Py_NewRef Unexecuted instantiation: getcopyright.c:_Py_NewRef Unexecuted instantiation: getplatform.c:_Py_NewRef Unexecuted instantiation: getversion.c:_Py_NewRef Unexecuted instantiation: optimizer.c:_Py_NewRef Unexecuted instantiation: pathconfig.c:_Py_NewRef Line | Count | Source | 535 | 100k | { | 536 | 100k | Py_INCREF(obj); | 537 | 100k | return obj; | 538 | 100k | } |
Unexecuted instantiation: pegen_errors.c:_Py_NewRef Unexecuted instantiation: parser.c:_Py_NewRef Unexecuted instantiation: buffer.c:_Py_NewRef Unexecuted instantiation: lexer.c:_Py_NewRef Unexecuted instantiation: number.c:_Py_NewRef Unexecuted instantiation: state.c:_Py_NewRef Unexecuted instantiation: string.c:_Py_NewRef Unexecuted instantiation: readline_tokenizer.c:_Py_NewRef Unexecuted instantiation: string_tokenizer.c:_Py_NewRef Unexecuted instantiation: utf8_tokenizer.c:_Py_NewRef Unexecuted instantiation: getcompiler.c:_Py_NewRef Unexecuted instantiation: mystrtoul.c:_Py_NewRef Unexecuted instantiation: token.c:_Py_NewRef Unexecuted instantiation: action_helpers.c:_Py_NewRef Unexecuted instantiation: string_parser.c:_Py_NewRef |
539 | | |
540 | | static inline PyObject* _Py_XNewRef(PyObject *obj) |
541 | 1.22G | { |
542 | 1.22G | Py_XINCREF(obj); |
543 | 1.22G | return obj; |
544 | 1.22G | } Unexecuted instantiation: bytesobject.c:_Py_XNewRef Unexecuted instantiation: call.c:_Py_XNewRef Line | Count | Source | 541 | 123M | { | 542 | 123M | Py_XINCREF(obj); | 543 | 123M | return obj; | 544 | 123M | } |
Unexecuted instantiation: genericaliasobject.c:_Py_XNewRef Unexecuted instantiation: floatobject.c:_Py_XNewRef Line | Count | Source | 541 | 95.0M | { | 542 | 95.0M | Py_XINCREF(obj); | 543 | 95.0M | return obj; | 544 | 95.0M | } |
Unexecuted instantiation: longobject.c:_Py_XNewRef Line | Count | Source | 541 | 279M | { | 542 | 279M | Py_XINCREF(obj); | 543 | 279M | return obj; | 544 | 279M | } |
memoryobject.c:_Py_XNewRef Line | Count | Source | 541 | 1 | { | 542 | 1 | Py_XINCREF(obj); | 543 | 1 | return obj; | 544 | 1 | } |
Unexecuted instantiation: moduleobject.c:_Py_XNewRef Unexecuted instantiation: object.c:_Py_XNewRef Unexecuted instantiation: obmalloc.c:_Py_XNewRef Unexecuted instantiation: picklebufobject.c:_Py_XNewRef Unexecuted instantiation: rangeobject.c:_Py_XNewRef sentinelobject.c:_Py_XNewRef Line | Count | Source | 541 | 53 | { | 542 | 53 | Py_XINCREF(obj); | 543 | 53 | return obj; | 544 | 53 | } |
Unexecuted instantiation: setobject.c:_Py_XNewRef Unexecuted instantiation: sliceobject.c:_Py_XNewRef Unexecuted instantiation: structseq.c:_Py_XNewRef Unexecuted instantiation: templateobject.c:_Py_XNewRef Unexecuted instantiation: tupleobject.c:_Py_XNewRef Line | Count | Source | 541 | 264k | { | 542 | 264k | Py_XINCREF(obj); | 543 | 264k | return obj; | 544 | 264k | } |
typevarobject.c:_Py_XNewRef Line | Count | Source | 541 | 1.20k | { | 542 | 1.20k | Py_XINCREF(obj); | 543 | 1.20k | return obj; | 544 | 1.20k | } |
Unexecuted instantiation: unicode_format.c:_Py_XNewRef Unexecuted instantiation: unicode_formatter.c:_Py_XNewRef Unexecuted instantiation: unicode_writer.c:_Py_XNewRef Unexecuted instantiation: unicodectype.c:_Py_XNewRef Unexecuted instantiation: unicodeobject.c:_Py_XNewRef Unexecuted instantiation: unionobject.c:_Py_XNewRef weakrefobject.c:_Py_XNewRef Line | Count | Source | 541 | 1.35M | { | 542 | 1.35M | Py_XINCREF(obj); | 543 | 1.35M | return obj; | 544 | 1.35M | } |
Unexecuted instantiation: _warnings.c:_Py_XNewRef bltinmodule.c:_Py_XNewRef Line | Count | Source | 541 | 1.19k | { | 542 | 1.19k | Py_XINCREF(obj); | 543 | 1.19k | return obj; | 544 | 1.19k | } |
Line | Count | Source | 541 | 135M | { | 542 | 135M | Py_XINCREF(obj); | 543 | 135M | return obj; | 544 | 135M | } |
Unexecuted instantiation: codecs.c:_Py_XNewRef Unexecuted instantiation: codegen.c:_Py_XNewRef Line | Count | Source | 541 | 7.35k | { | 542 | 7.35k | Py_XINCREF(obj); | 543 | 7.35k | return obj; | 544 | 7.35k | } |
Line | Count | Source | 541 | 65 | { | 542 | 65 | Py_XINCREF(obj); | 543 | 65 | return obj; | 544 | 65 | } |
Unexecuted instantiation: errors.c:_Py_XNewRef Unexecuted instantiation: flowgraph.c:_Py_XNewRef Unexecuted instantiation: frame.c:_Py_XNewRef Unexecuted instantiation: future.c:_Py_XNewRef Unexecuted instantiation: gc.c:_Py_XNewRef Unexecuted instantiation: gc_gil.c:_Py_XNewRef Unexecuted instantiation: getargs.c:_Py_XNewRef Unexecuted instantiation: ceval_gil.c:_Py_XNewRef Unexecuted instantiation: hamt.c:_Py_XNewRef Unexecuted instantiation: hashtable.c:_Py_XNewRef Line | Count | Source | 541 | 32.6k | { | 542 | 32.6k | Py_XINCREF(obj); | 543 | 32.6k | return obj; | 544 | 32.6k | } |
Unexecuted instantiation: importdl.c:_Py_XNewRef Unexecuted instantiation: initconfig.c:_Py_XNewRef Unexecuted instantiation: instrumentation.c:_Py_XNewRef Unexecuted instantiation: instruction_sequence.c:_Py_XNewRef Unexecuted instantiation: intrinsics.c:_Py_XNewRef Unexecuted instantiation: legacy_tracing.c:_Py_XNewRef Unexecuted instantiation: lock.c:_Py_XNewRef Unexecuted instantiation: marshal.c:_Py_XNewRef Unexecuted instantiation: modsupport.c:_Py_XNewRef Unexecuted instantiation: mysnprintf.c:_Py_XNewRef Unexecuted instantiation: parking_lot.c:_Py_XNewRef Unexecuted instantiation: preconfig.c:_Py_XNewRef Unexecuted instantiation: pyarena.c:_Py_XNewRef Unexecuted instantiation: pyctype.c:_Py_XNewRef Unexecuted instantiation: pyhash.c:_Py_XNewRef Unexecuted instantiation: pylifecycle.c:_Py_XNewRef Unexecuted instantiation: pymath.c:_Py_XNewRef Line | Count | Source | 541 | 176k | { | 542 | 176k | Py_XINCREF(obj); | 543 | 176k | return obj; | 544 | 176k | } |
Unexecuted instantiation: pythonrun.c:_Py_XNewRef Unexecuted instantiation: pytime.c:_Py_XNewRef Unexecuted instantiation: qsbr.c:_Py_XNewRef Unexecuted instantiation: bootstrap_hash.c:_Py_XNewRef Unexecuted instantiation: specialize.c:_Py_XNewRef Unexecuted instantiation: slots.c:_Py_XNewRef Unexecuted instantiation: slots_generated.c:_Py_XNewRef structmember.c:_Py_XNewRef Line | Count | Source | 541 | 6.54M | { | 542 | 6.54M | Py_XINCREF(obj); | 543 | 6.54M | return obj; | 544 | 6.54M | } |
Unexecuted instantiation: symtable.c:_Py_XNewRef Line | Count | Source | 541 | 206 | { | 542 | 206 | Py_XINCREF(obj); | 543 | 206 | return obj; | 544 | 206 | } |
Unexecuted instantiation: thread.c:_Py_XNewRef Line | Count | Source | 541 | 133M | { | 542 | 133M | Py_XINCREF(obj); | 543 | 133M | return obj; | 544 | 133M | } |
Unexecuted instantiation: tracemalloc.c:_Py_XNewRef Unexecuted instantiation: getopt.c:_Py_XNewRef Unexecuted instantiation: pystrcmp.c:_Py_XNewRef Unexecuted instantiation: pystrtod.c:_Py_XNewRef Unexecuted instantiation: pystrhex.c:_Py_XNewRef Unexecuted instantiation: dtoa.c:_Py_XNewRef Unexecuted instantiation: fileutils.c:_Py_XNewRef Unexecuted instantiation: suggestions.c:_Py_XNewRef Unexecuted instantiation: perf_trampoline.c:_Py_XNewRef Unexecuted instantiation: perf_jit_trampoline.c:_Py_XNewRef Unexecuted instantiation: jit_unwind.c:_Py_XNewRef Unexecuted instantiation: remote_debugging.c:_Py_XNewRef Unexecuted instantiation: dynload_shlib.c:_Py_XNewRef Unexecuted instantiation: config.c:_Py_XNewRef Unexecuted instantiation: gcmodule.c:_Py_XNewRef Unexecuted instantiation: _asynciomodule.c:_Py_XNewRef Unexecuted instantiation: atexitmodule.c:_Py_XNewRef Unexecuted instantiation: faulthandler.c:_Py_XNewRef posixmodule.c:_Py_XNewRef Line | Count | Source | 541 | 86.8k | { | 542 | 86.8k | Py_XINCREF(obj); | 543 | 86.8k | return obj; | 544 | 86.8k | } |
Unexecuted instantiation: signalmodule.c:_Py_XNewRef Unexecuted instantiation: _tracemalloc.c:_Py_XNewRef Unexecuted instantiation: _suggestions.c:_Py_XNewRef _datetimemodule.c:_Py_XNewRef Line | Count | Source | 541 | 72 | { | 542 | 72 | Py_XINCREF(obj); | 543 | 72 | return obj; | 544 | 72 | } |
Unexecuted instantiation: _codecsmodule.c:_Py_XNewRef _collectionsmodule.c:_Py_XNewRef Line | Count | Source | 541 | 21.0k | { | 542 | 21.0k | Py_XINCREF(obj); | 543 | 21.0k | return obj; | 544 | 21.0k | } |
Unexecuted instantiation: errnomodule.c:_Py_XNewRef Unexecuted instantiation: _iomodule.c:_Py_XNewRef Unexecuted instantiation: iobase.c:_Py_XNewRef Unexecuted instantiation: fileio.c:_Py_XNewRef Unexecuted instantiation: bytesio.c:_Py_XNewRef Unexecuted instantiation: bufferedio.c:_Py_XNewRef Unexecuted instantiation: textio.c:_Py_XNewRef Unexecuted instantiation: stringio.c:_Py_XNewRef Unexecuted instantiation: itertoolsmodule.c:_Py_XNewRef Unexecuted instantiation: sre.c:_Py_XNewRef Unexecuted instantiation: _sysconfig.c:_Py_XNewRef _threadmodule.c:_Py_XNewRef Line | Count | Source | 541 | 144 | { | 542 | 144 | Py_XINCREF(obj); | 543 | 144 | return obj; | 544 | 144 | } |
Unexecuted instantiation: timemodule.c:_Py_XNewRef Unexecuted instantiation: _typesmodule.c:_Py_XNewRef Unexecuted instantiation: _typingmodule.c:_Py_XNewRef Unexecuted instantiation: _weakref.c:_Py_XNewRef Line | Count | Source | 541 | 31.1k | { | 542 | 31.1k | Py_XINCREF(obj); | 543 | 31.1k | return obj; | 544 | 31.1k | } |
_functoolsmodule.c:_Py_XNewRef Line | Count | Source | 541 | 40 | { | 542 | 40 | Py_XINCREF(obj); | 543 | 40 | return obj; | 544 | 40 | } |
Unexecuted instantiation: _localemodule.c:_Py_XNewRef Unexecuted instantiation: _opcode.c:_Py_XNewRef Unexecuted instantiation: _operator.c:_Py_XNewRef Unexecuted instantiation: _stat.c:_Py_XNewRef Unexecuted instantiation: symtablemodule.c:_Py_XNewRef Unexecuted instantiation: pwdmodule.c:_Py_XNewRef Line | Count | Source | 541 | 72 | { | 542 | 72 | Py_XINCREF(obj); | 543 | 72 | return obj; | 544 | 72 | } |
Unexecuted instantiation: frozen.c:_Py_XNewRef Unexecuted instantiation: getbuildinfo.c:_Py_XNewRef Unexecuted instantiation: peg_api.c:_Py_XNewRef Unexecuted instantiation: file_tokenizer.c:_Py_XNewRef Unexecuted instantiation: helpers.c:_Py_XNewRef Unexecuted instantiation: myreadline.c:_Py_XNewRef Line | Count | Source | 541 | 115M | { | 542 | 115M | Py_XINCREF(obj); | 543 | 115M | return obj; | 544 | 115M | } |
Unexecuted instantiation: boolobject.c:_Py_XNewRef Unexecuted instantiation: bytes_methods.c:_Py_XNewRef Unexecuted instantiation: bytearrayobject.c:_Py_XNewRef Unexecuted instantiation: capsule.c:_Py_XNewRef Line | Count | Source | 541 | 25.4M | { | 542 | 25.4M | Py_XINCREF(obj); | 543 | 25.4M | return obj; | 544 | 25.4M | } |
Unexecuted instantiation: classobject.c:_Py_XNewRef Line | Count | Source | 541 | 3.40k | { | 542 | 3.40k | Py_XINCREF(obj); | 543 | 3.40k | return obj; | 544 | 3.40k | } |
Unexecuted instantiation: complexobject.c:_Py_XNewRef descrobject.c:_Py_XNewRef Line | Count | Source | 541 | 109k | { | 542 | 109k | Py_XINCREF(obj); | 543 | 109k | return obj; | 544 | 109k | } |
Unexecuted instantiation: enumobject.c:_Py_XNewRef Unexecuted instantiation: genobject.c:_Py_XNewRef Unexecuted instantiation: fileobject.c:_Py_XNewRef frameobject.c:_Py_XNewRef Line | Count | Source | 541 | 11.6M | { | 542 | 11.6M | Py_XINCREF(obj); | 543 | 11.6M | return obj; | 544 | 11.6M | } |
Line | Count | Source | 541 | 59.2k | { | 542 | 59.2k | Py_XINCREF(obj); | 543 | 59.2k | return obj; | 544 | 59.2k | } |
Unexecuted instantiation: interpolationobject.c:_Py_XNewRef Unexecuted instantiation: iterobject.c:_Py_XNewRef lazyimportobject.c:_Py_XNewRef Line | Count | Source | 541 | 838 | { | 542 | 838 | Py_XINCREF(obj); | 543 | 838 | return obj; | 544 | 838 | } |
Unexecuted instantiation: odictobject.c:_Py_XNewRef methodobject.c:_Py_XNewRef Line | Count | Source | 541 | 300M | { | 542 | 300M | Py_XINCREF(obj); | 543 | 300M | return obj; | 544 | 300M | } |
Unexecuted instantiation: namespaceobject.c:_Py_XNewRef Unexecuted instantiation: _contextvars.c:_Py_XNewRef Unexecuted instantiation: Python-ast.c:_Py_XNewRef Unexecuted instantiation: Python-tokenize.c:_Py_XNewRef Unexecuted instantiation: asdl.c:_Py_XNewRef Unexecuted instantiation: assemble.c:_Py_XNewRef Unexecuted instantiation: ast.c:_Py_XNewRef Unexecuted instantiation: ast_preprocess.c:_Py_XNewRef Unexecuted instantiation: ast_unparse.c:_Py_XNewRef Unexecuted instantiation: critical_section.c:_Py_XNewRef Unexecuted instantiation: crossinterp.c:_Py_XNewRef Unexecuted instantiation: getcopyright.c:_Py_XNewRef Unexecuted instantiation: getplatform.c:_Py_XNewRef Unexecuted instantiation: getversion.c:_Py_XNewRef Unexecuted instantiation: optimizer.c:_Py_XNewRef Unexecuted instantiation: pathconfig.c:_Py_XNewRef Line | Count | Source | 541 | 100k | { | 542 | 100k | Py_XINCREF(obj); | 543 | 100k | return obj; | 544 | 100k | } |
Unexecuted instantiation: pegen_errors.c:_Py_XNewRef Unexecuted instantiation: parser.c:_Py_XNewRef Unexecuted instantiation: buffer.c:_Py_XNewRef Unexecuted instantiation: lexer.c:_Py_XNewRef Unexecuted instantiation: number.c:_Py_XNewRef Unexecuted instantiation: state.c:_Py_XNewRef Unexecuted instantiation: string.c:_Py_XNewRef Unexecuted instantiation: readline_tokenizer.c:_Py_XNewRef Unexecuted instantiation: string_tokenizer.c:_Py_XNewRef Unexecuted instantiation: utf8_tokenizer.c:_Py_XNewRef Unexecuted instantiation: getcompiler.c:_Py_XNewRef Unexecuted instantiation: mystrtoul.c:_Py_XNewRef Unexecuted instantiation: token.c:_Py_XNewRef Unexecuted instantiation: action_helpers.c:_Py_XNewRef Unexecuted instantiation: string_parser.c:_Py_XNewRef |
545 | | |
546 | | // Py_NewRef() and Py_XNewRef() are exported as functions for the stable ABI. |
547 | | // Names overridden with macros by static inline functions for best |
548 | | // performances. |
549 | | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000 |
550 | 6.31G | # define Py_NewRef(obj) _Py_NewRef(_PyObject_CAST(obj)) |
551 | 1.11G | # define Py_XNewRef(obj) _Py_XNewRef(_PyObject_CAST(obj)) |
552 | | #else |
553 | | # define Py_NewRef(obj) _Py_NewRef(obj) |
554 | | # define Py_XNewRef(obj) _Py_XNewRef(obj) |
555 | | #endif |
556 | | |
557 | | |
558 | | #ifdef __cplusplus |
559 | | } |
560 | | #endif |
561 | | #endif // !_Py_REFCOUNT_H |