/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 | 12.8G | #define _Py_IMMORTAL_INITIAL_REFCNT (3ULL << 30) |
48 | 515 | #define _Py_IMMORTAL_MINIMUM_REFCNT (1ULL << 31) |
49 | 235M | #define _Py_STATIC_FLAG_BITS ((Py_ssize_t)(_Py_STATICALLY_ALLOCATED_FLAG | _Py_IMMORTAL_FLAGS)) |
50 | 235M | #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.11G | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { |
106 | 1.11G | #if !defined(Py_GIL_DISABLED) |
107 | 1.11G | 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.11G | } Line | Count | Source | 105 | 7.49M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 7.49M | #if !defined(Py_GIL_DISABLED) | 107 | 7.49M | 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 | 7.49M | } |
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 | 515 | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 515 | #if !defined(Py_GIL_DISABLED) | 107 | 515 | 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 | 515 | } |
Line | Count | Source | 105 | 30.2k | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 30.2k | #if !defined(Py_GIL_DISABLED) | 107 | 30.2k | 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 | 30.2k | } |
Line | Count | Source | 105 | 251M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 251M | #if !defined(Py_GIL_DISABLED) | 107 | 251M | 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 | 251M | } |
Unexecuted instantiation: memoryobject.c:_Py_REFCNT Unexecuted instantiation: moduleobject.c:_Py_REFCNT Line | Count | Source | 105 | 127M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 127M | #if !defined(Py_GIL_DISABLED) | 107 | 127M | 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 | 127M | } |
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.49k | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 4.49k | #if !defined(Py_GIL_DISABLED) | 107 | 4.49k | 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.49k | } |
Unexecuted instantiation: sliceobject.c:_Py_REFCNT Unexecuted instantiation: structseq.c:_Py_REFCNT Unexecuted instantiation: templateobject.c:_Py_REFCNT Line | Count | Source | 105 | 138k | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 138k | #if !defined(Py_GIL_DISABLED) | 107 | 138k | 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 | 138k | } |
Line | Count | Source | 105 | 639 | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 639 | #if !defined(Py_GIL_DISABLED) | 107 | 639 | 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 | 639 | } |
Unexecuted instantiation: typevarobject.c:_Py_REFCNT unicode_format.c:_Py_REFCNT Line | Count | Source | 105 | 5.06M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 5.06M | #if !defined(Py_GIL_DISABLED) | 107 | 5.06M | 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.06M | } |
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 | 64.2M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 64.2M | #if !defined(Py_GIL_DISABLED) | 107 | 64.2M | 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 | 64.2M | } |
Unexecuted instantiation: unionobject.c:_Py_REFCNT weakrefobject.c:_Py_REFCNT Line | Count | Source | 105 | 50.9M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 50.9M | #if !defined(Py_GIL_DISABLED) | 107 | 50.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 | 50.9M | } |
Unexecuted instantiation: _warnings.c:_Py_REFCNT Line | Count | Source | 105 | 2.02M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 2.02M | #if !defined(Py_GIL_DISABLED) | 107 | 2.02M | 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 | 2.02M | } |
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 | 55.8M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 55.8M | #if !defined(Py_GIL_DISABLED) | 107 | 55.8M | 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 | 55.8M | } |
Unexecuted instantiation: future.c:_Py_REFCNT Line | Count | Source | 105 | 466M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 466M | #if !defined(Py_GIL_DISABLED) | 107 | 466M | 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 | 466M | } |
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 | 37 | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 37 | #if !defined(Py_GIL_DISABLED) | 107 | 37 | 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 | 37 | } |
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 | 63.4k | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 63.4k | #if !defined(Py_GIL_DISABLED) | 107 | 63.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 | 63.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: typecache.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 | 99.4k | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 99.4k | #if !defined(Py_GIL_DISABLED) | 107 | 99.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 | 99.4k | } |
Unexecuted instantiation: fileio.c:_Py_REFCNT Line | Count | Source | 105 | 51.5k | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 51.5k | #if !defined(Py_GIL_DISABLED) | 107 | 51.5k | 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 | 51.5k | } |
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 | 180k | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 180k | #if !defined(Py_GIL_DISABLED) | 107 | 180k | 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 | 180k | } |
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: reader.c:_Py_REFCNT Unexecuted instantiation: source.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 | 170k | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 170k | #if !defined(Py_GIL_DISABLED) | 107 | 170k | 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 | 170k | } |
Unexecuted instantiation: complexobject.c:_Py_REFCNT Unexecuted instantiation: descrobject.c:_Py_REFCNT Line | Count | Source | 105 | 48.5M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 48.5M | #if !defined(Py_GIL_DISABLED) | 107 | 48.5M | 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 | 48.5M | } |
Unexecuted instantiation: genobject.c:_Py_REFCNT Unexecuted instantiation: fileobject.c:_Py_REFCNT Unexecuted instantiation: frameobject.c:_Py_REFCNT Line | Count | Source | 105 | 36.9M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 36.9M | #if !defined(Py_GIL_DISABLED) | 107 | 36.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 | 36.9M | } |
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: lexer.c:_Py_REFCNT Unexecuted instantiation: layout.c:_Py_REFCNT Unexecuted instantiation: number.c:_Py_REFCNT Unexecuted instantiation: state.c:_Py_REFCNT Unexecuted instantiation: string.c:_Py_REFCNT Unexecuted instantiation: decoder.c:_Py_REFCNT Unexecuted instantiation: api.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 | 931M | # 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 | 24.1G | { |
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 | 24.1G | return _Py_CAST(int32_t, op->ob_refcnt) < 0; |
133 | | #else |
134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; |
135 | | #endif |
136 | 24.1G | } bytesobject.c:_Py_IsImmortal Line | Count | Source | 127 | 18.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 | 18.5M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 18.5M | } |
Line | Count | Source | 127 | 226M | { | 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 | 226M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 226M | } |
exceptions.c:_Py_IsImmortal Line | Count | Source | 127 | 210M | { | 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 | 210M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 210M | } |
genericaliasobject.c:_Py_IsImmortal Line | Count | Source | 127 | 296 | { | 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 | 296 | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 296 | } |
floatobject.c:_Py_IsImmortal Line | Count | Source | 127 | 473k | { | 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 | 473k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 473k | } |
listobject.c:_Py_IsImmortal Line | Count | Source | 127 | 2.20G | { | 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.20G | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 2.20G | } |
longobject.c:_Py_IsImmortal Line | Count | Source | 127 | 57.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 | 57.8M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 57.8M | } |
dictobject.c:_Py_IsImmortal Line | Count | Source | 127 | 1.01G | { | 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.01G | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 1.01G | } |
memoryobject.c:_Py_IsImmortal Line | Count | Source | 127 | 4.95M | { | 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.95M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 4.95M | } |
moduleobject.c:_Py_IsImmortal Line | Count | Source | 127 | 3.63M | { | 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.63M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 3.63M | } |
Line | Count | Source | 127 | 928M | { | 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 | 928M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 928M | } |
Unexecuted instantiation: obmalloc.c:_Py_IsImmortal Unexecuted instantiation: picklebufobject.c:_Py_IsImmortal rangeobject.c:_Py_IsImmortal Line | Count | Source | 127 | 28.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 | 28.5M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 28.5M | } |
sentinelobject.c:_Py_IsImmortal Line | Count | Source | 127 | 128 | { | 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 | 128 | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 128 | } |
setobject.c:_Py_IsImmortal Line | Count | Source | 127 | 22.9M | { | 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.9M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 22.9M | } |
sliceobject.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 | } |
structseq.c:_Py_IsImmortal Line | Count | Source | 127 | 4.96M | { | 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.96M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 4.96M | } |
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 | 3.78G | { | 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.78G | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 3.78G | } |
typeobject.c:_Py_IsImmortal Line | Count | Source | 127 | 440M | { | 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 | 440M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 440M | } |
typevarobject.c:_Py_IsImmortal Line | Count | Source | 127 | 151k | { | 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 | 151k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 151k | } |
unicode_format.c:_Py_IsImmortal Line | Count | Source | 127 | 17.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 | 17.4M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 17.4M | } |
unicode_formatter.c:_Py_IsImmortal Line | Count | Source | 127 | 22.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 | 22.3M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 22.3M | } |
unicode_writer.c:_Py_IsImmortal Line | Count | Source | 127 | 37.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 | 37.5M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 37.5M | } |
Unexecuted instantiation: unicodectype.c:_Py_IsImmortal unicodeobject.c:_Py_IsImmortal Line | Count | Source | 127 | 139M | { | 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 | 139M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 139M | } |
unionobject.c:_Py_IsImmortal Line | Count | Source | 127 | 4.52k | { | 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.52k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 4.52k | } |
weakrefobject.c:_Py_IsImmortal Line | Count | Source | 127 | 1.52M | { | 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.52M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 1.52M | } |
_warnings.c:_Py_IsImmortal Line | Count | Source | 127 | 54.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 | 54.1M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 54.1M | } |
bltinmodule.c:_Py_IsImmortal Line | Count | Source | 127 | 1.49G | { | 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.49G | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 1.49G | } |
Line | Count | Source | 127 | 9.98G | { | 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.98G | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 9.98G | } |
Line | Count | Source | 127 | 23.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 | 23.7M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 23.7M | } |
Line | Count | Source | 127 | 65.0k | { | 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 | 65.0k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 65.0k | } |
Line | Count | Source | 127 | 349k | { | 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 | 349k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 349k | } |
Line | Count | Source | 127 | 74 | { | 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 | 74 | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 74 | } |
Line | Count | Source | 127 | 86.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 | 86.7M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 86.7M | } |
flowgraph.c:_Py_IsImmortal Line | Count | Source | 127 | 61.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 | 61.3k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 61.3k | } |
Line | Count | Source | 127 | 124M | { | 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 | 124M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 124M | } |
Line | Count | Source | 127 | 137 | { | 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 | 137 | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 137 | } |
Line | Count | Source | 127 | 468M | { | 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 | 468M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 468M | } |
Unexecuted instantiation: gc_gil.c:_Py_IsImmortal Line | Count | Source | 127 | 14.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 | 14.3M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 14.3M | } |
Unexecuted instantiation: ceval_gil.c:_Py_IsImmortal Unexecuted instantiation: hamt.c:_Py_IsImmortal Unexecuted instantiation: hashtable.c:_Py_IsImmortal Line | Count | Source | 127 | 23.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 | 23.7M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 23.7M | } |
importdl.c:_Py_IsImmortal Line | Count | Source | 127 | 3.19k | { | 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.19k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 3.19k | } |
initconfig.c:_Py_IsImmortal Line | Count | Source | 127 | 5.32k | { | 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.32k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 5.32k | } |
instrumentation.c:_Py_IsImmortal Line | Count | Source | 127 | 888 | { | 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 | 888 | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 888 | } |
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 | 85.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 | 85.9k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 85.9k | } |
Unexecuted instantiation: legacy_tracing.c:_Py_IsImmortal Unexecuted instantiation: lock.c:_Py_IsImmortal Line | Count | Source | 127 | 1.69M | { | 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.69M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 1.69M | } |
modsupport.c:_Py_IsImmortal Line | Count | Source | 127 | 67.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 | 67.5k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 67.5k | } |
Unexecuted instantiation: mysnprintf.c:_Py_IsImmortal Unexecuted instantiation: parking_lot.c:_Py_IsImmortal Unexecuted instantiation: preconfig.c:_Py_IsImmortal Line | Count | Source | 127 | 1.02M | { | 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.02M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 1.02M | } |
Unexecuted instantiation: pyctype.c:_Py_IsImmortal Unexecuted instantiation: pyhash.c:_Py_IsImmortal pylifecycle.c:_Py_IsImmortal Line | Count | Source | 127 | 1.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 | 1.33k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 1.33k | } |
Unexecuted instantiation: pymath.c:_Py_IsImmortal Unexecuted instantiation: pystate.c:_Py_IsImmortal pythonrun.c:_Py_IsImmortal Line | Count | Source | 127 | 1.90k | { | 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.90k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 1.90k | } |
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 | 2.42M | { | 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.42M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 2.42M | } |
Unexecuted instantiation: slots.c:_Py_IsImmortal Unexecuted instantiation: slots_generated.c:_Py_IsImmortal structmember.c:_Py_IsImmortal Line | Count | Source | 127 | 1.78k | { | 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.78k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 1.78k | } |
symtable.c:_Py_IsImmortal Line | Count | Source | 127 | 384k | { | 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 | 384k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 384k | } |
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 | 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 | } |
Unexecuted instantiation: tracemalloc.c:_Py_IsImmortal typecache.c:_Py_IsImmortal Line | Count | Source | 127 | 654M | { | 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 | 654M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 654M | } |
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 | 52.8k | { | 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.8k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 52.8k | } |
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 | 30 | { | 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 | 30 | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 30 | } |
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 | 74 | { | 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 | 74 | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 74 | } |
Unexecuted instantiation: _tracemalloc.c:_Py_IsImmortal Unexecuted instantiation: _suggestions.c:_Py_IsImmortal _datetimemodule.c:_Py_IsImmortal Line | Count | Source | 127 | 118k | { | 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 | 118k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 118k | } |
Unexecuted instantiation: _codecsmodule.c:_Py_IsImmortal _collectionsmodule.c:_Py_IsImmortal Line | Count | Source | 127 | 167k | { | 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 | 167k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 167k | } |
Unexecuted instantiation: errnomodule.c:_Py_IsImmortal _iomodule.c:_Py_IsImmortal Line | Count | Source | 127 | 1.53M | { | 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.53M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 1.53M | } |
Line | Count | Source | 127 | 1.78M | { | 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.78M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 1.78M | } |
Line | Count | Source | 127 | 73.6k | { | 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.6k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 73.6k | } |
Line | Count | Source | 127 | 325k | { | 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 | 325k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 325k | } |
bufferedio.c:_Py_IsImmortal Line | Count | Source | 127 | 8.01M | { | 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 | 8.01M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 8.01M | } |
Line | Count | Source | 127 | 1.40M | { | 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.40M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 1.40M | } |
stringio.c:_Py_IsImmortal Line | Count | Source | 127 | 311k | { | 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 | 311k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 311k | } |
itertoolsmodule.c:_Py_IsImmortal Line | Count | Source | 127 | 94.6k | { | 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.6k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 94.6k | } |
Line | Count | Source | 127 | 195M | { | 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 | 195M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 195M | } |
Unexecuted instantiation: _sysconfig.c:_Py_IsImmortal _threadmodule.c:_Py_IsImmortal Line | Count | Source | 127 | 10.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 | 10.0M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 10.0M | } |
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 | 500k | { | 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 | 500k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 500k | } |
_functoolsmodule.c:_Py_IsImmortal Line | Count | Source | 127 | 913k | { | 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 | 913k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 913k | } |
Unexecuted instantiation: _localemodule.c:_Py_IsImmortal Unexecuted instantiation: _opcode.c:_Py_IsImmortal _operator.c:_Py_IsImmortal Line | Count | Source | 127 | 645k | { | 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 | 645k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 645k | } |
Unexecuted instantiation: _stat.c:_Py_IsImmortal Unexecuted instantiation: symtablemodule.c:_Py_IsImmortal Unexecuted instantiation: pwdmodule.c:_Py_IsImmortal Line | Count | Source | 127 | 1.51k | { | 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.51k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 1.51k | } |
Unexecuted instantiation: frozen.c:_Py_IsImmortal Unexecuted instantiation: getbuildinfo.c:_Py_IsImmortal Unexecuted instantiation: peg_api.c:_Py_IsImmortal Line | Count | Source | 127 | 24 | { | 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 | 24 | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 24 | } |
Unexecuted instantiation: source.c:_Py_IsImmortal Line | Count | Source | 127 | 29.8k | { | 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.8k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 29.8k | } |
Unexecuted instantiation: myreadline.c:_Py_IsImmortal abstract.c:_Py_IsImmortal Line | Count | Source | 127 | 511M | { | 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 | 511M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 511M | } |
Unexecuted instantiation: boolobject.c:_Py_IsImmortal Unexecuted instantiation: bytes_methods.c:_Py_IsImmortal bytearrayobject.c:_Py_IsImmortal Line | Count | Source | 127 | 21.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 | 21.5M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 21.5M | } |
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 | 11.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 | 11.5M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 11.5M | } |
classobject.c:_Py_IsImmortal Line | Count | Source | 127 | 86.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 | 86.1M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 86.1M | } |
codeobject.c:_Py_IsImmortal Line | Count | Source | 127 | 995k | { | 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 | 995k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 995k | } |
Unexecuted instantiation: complexobject.c:_Py_IsImmortal descrobject.c:_Py_IsImmortal Line | Count | Source | 127 | 46.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 | 46.8M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 46.8M | } |
enumobject.c:_Py_IsImmortal Line | Count | Source | 127 | 163M | { | 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 | 163M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 163M | } |
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 | 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 | } |
frameobject.c:_Py_IsImmortal Line | Count | Source | 127 | 40.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 | 40.3M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 40.3M | } |
funcobject.c:_Py_IsImmortal Line | Count | Source | 127 | 209M | { | 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 | 209M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 209M | } |
interpolationobject.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 | } |
iterobject.c:_Py_IsImmortal Line | Count | Source | 127 | 3.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 | 3.21M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 3.21M | } |
lazyimportobject.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 | } |
odictobject.c:_Py_IsImmortal Line | Count | Source | 127 | 258k | { | 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 | 258k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 258k | } |
methodobject.c:_Py_IsImmortal Line | Count | Source | 127 | 176M | { | 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 | 176M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 176M | } |
namespaceobject.c:_Py_IsImmortal Line | Count | Source | 127 | 65 | { | 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 | 65 | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 65 | } |
Unexecuted instantiation: _contextvars.c:_Py_IsImmortal Python-ast.c:_Py_IsImmortal Line | Count | Source | 127 | 3.40M | { | 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.40M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 3.40M | } |
Python-tokenize.c:_Py_IsImmortal Line | Count | Source | 127 | 500 | { | 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 | 500 | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 500 | } |
Unexecuted instantiation: asdl.c:_Py_IsImmortal assemble.c:_Py_IsImmortal Line | Count | Source | 127 | 29.8k | { | 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.8k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 29.8k | } |
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 | 111k | { | 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 | 111k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 111k | } |
pegen_errors.c:_Py_IsImmortal Line | Count | Source | 127 | 158k | { | 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 | 158k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 158k | } |
Unexecuted instantiation: parser.c:_Py_IsImmortal Line | Count | Source | 127 | 14.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 | 14.9k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 14.9k | } |
Unexecuted instantiation: layout.c:_Py_IsImmortal Unexecuted instantiation: number.c:_Py_IsImmortal Line | Count | Source | 127 | 63.2k | { | 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 | 63.2k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 63.2k | } |
Unexecuted instantiation: string.c:_Py_IsImmortal Line | Count | Source | 127 | 3.48k | { | 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.48k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 3.48k | } |
Unexecuted instantiation: api.c:_Py_IsImmortal Unexecuted instantiation: getcompiler.c:_Py_IsImmortal Unexecuted instantiation: mystrtoul.c:_Py_IsImmortal Unexecuted instantiation: token.c:_Py_IsImmortal action_helpers.c:_Py_IsImmortal Line | Count | Source | 127 | 221 | { | 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 | 221 | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 221 | } |
string_parser.c:_Py_IsImmortal Line | Count | Source | 127 | 7.53k | { | 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.53k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 7.53k | } |
|
137 | 26.0G | #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: typecache.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: reader.c:_Py_IsStaticImmortal Unexecuted instantiation: source.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: lexer.c:_Py_IsStaticImmortal Unexecuted instantiation: layout.c:_Py_IsStaticImmortal Unexecuted instantiation: number.c:_Py_IsStaticImmortal Unexecuted instantiation: state.c:_Py_IsStaticImmortal Unexecuted instantiation: string.c:_Py_IsStaticImmortal Unexecuted instantiation: decoder.c:_Py_IsStaticImmortal Unexecuted instantiation: api.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 | 371M | static inline void Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) { |
155 | 371M | 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 | 371M | if (_Py_IsImmortal(ob)) { |
167 | 1.10k | return; |
168 | 1.10k | } |
169 | 371M | #ifndef Py_GIL_DISABLED |
170 | 371M | #if SIZEOF_VOID_P > 4 |
171 | 371M | 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 | 371M | #endif // Py_LIMITED_API |
199 | 371M | } 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 | 248M | static inline void Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) { | 155 | 248M | 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 | 248M | if (_Py_IsImmortal(ob)) { | 167 | 0 | return; | 168 | 0 | } | 169 | 248M | #ifndef Py_GIL_DISABLED | 170 | 248M | #if SIZEOF_VOID_P > 4 | 171 | 248M | 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 | 248M | #endif // Py_LIMITED_API | 199 | 248M | } |
Unexecuted instantiation: memoryobject.c:Py_SET_REFCNT moduleobject.c:Py_SET_REFCNT Line | Count | Source | 154 | 1.10k | static inline void Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) { | 155 | 1.10k | 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.10k | if (_Py_IsImmortal(ob)) { | 167 | 1.10k | return; | 168 | 1.10k | } | 169 | 0 | #ifndef Py_GIL_DISABLED | 170 | 0 | #if SIZEOF_VOID_P > 4 | 171 | 0 | 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 | 0 | #endif // Py_LIMITED_API | 199 | 0 | } |
Line | Count | Source | 154 | 85.3M | static inline void Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) { | 155 | 85.3M | 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 | 85.3M | if (_Py_IsImmortal(ob)) { | 167 | 0 | return; | 168 | 0 | } | 169 | 85.3M | #ifndef Py_GIL_DISABLED | 170 | 85.3M | #if SIZEOF_VOID_P > 4 | 171 | 85.3M | 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 | 85.3M | #endif // Py_LIMITED_API | 199 | 85.3M | } |
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 | 426k | static inline void Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) { | 155 | 426k | 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 | 426k | if (_Py_IsImmortal(ob)) { | 167 | 0 | return; | 168 | 0 | } | 169 | 426k | #ifndef Py_GIL_DISABLED | 170 | 426k | #if SIZEOF_VOID_P > 4 | 171 | 426k | 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 | 426k | #endif // Py_LIMITED_API | 199 | 426k | } |
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: typecache.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: reader.c:Py_SET_REFCNT Unexecuted instantiation: source.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 | 170k | static inline void Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) { | 155 | 170k | 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 | 170k | if (_Py_IsImmortal(ob)) { | 167 | 0 | return; | 168 | 0 | } | 169 | 170k | #ifndef Py_GIL_DISABLED | 170 | 170k | #if SIZEOF_VOID_P > 4 | 171 | 170k | 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 | 170k | #endif // Py_LIMITED_API | 199 | 170k | } |
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 | 36.9M | static inline void Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) { | 155 | 36.9M | 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 | 36.9M | if (_Py_IsImmortal(ob)) { | 167 | 0 | return; | 168 | 0 | } | 169 | 36.9M | #ifndef Py_GIL_DISABLED | 170 | 36.9M | #if SIZEOF_VOID_P > 4 | 171 | 36.9M | 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 | 36.9M | #endif // Py_LIMITED_API | 199 | 36.9M | } |
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: lexer.c:Py_SET_REFCNT Unexecuted instantiation: layout.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: decoder.c:Py_SET_REFCNT Unexecuted instantiation: api.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 | 371M | # 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 | 12.5G | { |
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.5G | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { |
288 | | // the object is immortal |
289 | 6.73G | _Py_INCREF_IMMORTAL_STAT_INC(); |
290 | 6.73G | return; |
291 | 6.73G | } |
292 | 5.86G | 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.86G | _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.86G | #endif |
308 | 5.86G | } Line | Count | Source | 256 | 160M | { | 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 | 160M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 159M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 159M | return; | 291 | 159M | } | 292 | 1.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 | 1.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 | 1.77M | #endif | 308 | 1.77M | } |
Line | Count | Source | 256 | 27.1M | { | 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 | 27.1M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 14.7M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 14.7M | return; | 291 | 14.7M | } | 292 | 12.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 | 12.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 | 12.4M | #endif | 308 | 12.4M | } |
Line | Count | Source | 256 | 196M | { | 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 | 196M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 44.3M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 44.3M | return; | 291 | 44.3M | } | 292 | 151M | 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 | 151M | _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 | 151M | #endif | 308 | 151M | } |
genericaliasobject.c:Py_INCREF Line | Count | Source | 256 | 2.27k | { | 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.27k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 1.72k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 1.72k | return; | 291 | 1.72k | } | 292 | 550 | 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 | 550 | _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 | 550 | #endif | 308 | 550 | } |
Line | Count | Source | 256 | 841k | { | 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 | 841k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 841k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 841k | return; | 291 | 841k | } | 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.69G | { | 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.69G | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 307M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 307M | return; | 291 | 307M | } | 292 | 1.38G | 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.38G | _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.38G | #endif | 308 | 1.38G | } |
Line | Count | Source | 256 | 110M | { | 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 | 110M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 110M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 110M | return; | 291 | 110M | } | 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 | 1.58G | { | 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.58G | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 354M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 354M | return; | 291 | 354M | } | 292 | 1.22G | 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.22G | _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.22G | #endif | 308 | 1.22G | } |
Line | Count | Source | 256 | 4.75M | { | 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.75M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 101 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 101 | return; | 291 | 101 | } | 292 | 4.75M | 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.75M | _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.75M | #endif | 308 | 4.75M | } |
Line | Count | Source | 256 | 7.59k | { | 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.59k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 6.04k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 6.04k | return; | 291 | 6.04k | } | 292 | 1.55k | 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.55k | _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.55k | #endif | 308 | 1.55k | } |
Line | Count | Source | 256 | 907M | { | 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 | 907M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 610M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 610M | return; | 291 | 610M | } | 292 | 297M | 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 | 297M | _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 | 297M | #endif | 308 | 297M | } |
Unexecuted instantiation: obmalloc.c:Py_INCREF Unexecuted instantiation: picklebufobject.c:Py_INCREF Line | Count | Source | 256 | 148 | { | 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 | 148 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 111 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 111 | return; | 291 | 111 | } | 292 | 37 | 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 | 37 | _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 | 37 | #endif | 308 | 37 | } |
sentinelobject.c:Py_INCREF Line | Count | Source | 256 | 392 | { | 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 | 392 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 310 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 310 | return; | 291 | 310 | } | 292 | 82 | 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 | 82 | _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 | 82 | #endif | 308 | 82 | } |
Line | Count | Source | 256 | 22.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 | 22.8M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 2.74M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 2.74M | return; | 291 | 2.74M | } | 292 | 20.1M | 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.1M | _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.1M | #endif | 308 | 20.1M | } |
Line | Count | Source | 256 | 160M | { | 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 | 160M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 90.2M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 90.2M | return; | 291 | 90.2M | } | 292 | 70.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 | 70.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 | 70.4M | #endif | 308 | 70.4M | } |
Line | Count | Source | 256 | 96.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 | 96.2k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 87.4k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 87.4k | return; | 291 | 87.4k | } | 292 | 8.74k | 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.74k | _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.74k | #endif | 308 | 8.74k | } |
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 | 3.33G | { | 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.33G | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 2.45G | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 2.45G | return; | 291 | 2.45G | } | 292 | 885M | 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 | 885M | _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 | 885M | #endif | 308 | 885M | } |
Line | Count | Source | 256 | 317M | { | 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 | 317M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 193M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 193M | return; | 291 | 193M | } | 292 | 123M | 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 | 123M | _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 | 123M | #endif | 308 | 123M | } |
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 | 7.22M | { | 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.22M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 1.01M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 1.01M | return; | 291 | 1.01M | } | 292 | 6.20M | 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.20M | _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.20M | #endif | 308 | 6.20M | } |
Unexecuted instantiation: unicode_formatter.c:Py_INCREF unicode_writer.c:Py_INCREF Line | Count | Source | 256 | 8.42M | { | 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.42M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 8.32M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 8.32M | return; | 291 | 8.32M | } | 292 | 97.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 | 97.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 | 97.7k | #endif | 308 | 97.7k | } |
Unexecuted instantiation: unicodectype.c:Py_INCREF unicodeobject.c:Py_INCREF Line | Count | Source | 256 | 706M | { | 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 | 706M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 631M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 631M | return; | 291 | 631M | } | 292 | 74.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 | 74.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 | 74.8M | #endif | 308 | 74.8M | } |
Line | Count | Source | 256 | 924 | { | 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 | 924 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 580 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 580 | return; | 291 | 580 | } | 292 | 344 | 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 | 344 | _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 | 344 | #endif | 308 | 344 | } |
weakrefobject.c:Py_INCREF Line | Count | Source | 256 | 2.17M | { | 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.17M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 75.3k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 75.3k | return; | 291 | 75.3k | } | 292 | 2.09M | 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.09M | _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.09M | #endif | 308 | 2.09M | } |
Line | Count | Source | 256 | 4.39M | { | 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.39M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 2.23M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 2.23M | return; | 291 | 2.23M | } | 292 | 2.15M | 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.15M | _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.15M | #endif | 308 | 2.15M | } |
Line | Count | Source | 256 | 82.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 | 82.7M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 47.7M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 47.7M | return; | 291 | 47.7M | } | 292 | 35.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 | 35.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 | 35.0M | #endif | 308 | 35.0M | } |
Line | Count | Source | 256 | 1.21G | { | 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.21G | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 655M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 655M | return; | 291 | 655M | } | 292 | 556M | 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 | 556M | _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 | 556M | #endif | 308 | 556M | } |
Line | Count | Source | 256 | 11.5M | { | 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 | 11.5M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 554k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 554k | return; | 291 | 554k | } | 292 | 10.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 | 10.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 | 10.9M | #endif | 308 | 10.9M | } |
Line | Count | Source | 256 | 2.49k | { | 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.49k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 2.49k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 2.49k | return; | 291 | 2.49k | } | 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 | 81.4k | { | 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 | 81.4k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 39.3k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 39.3k | return; | 291 | 39.3k | } | 292 | 42.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 | 42.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 | 42.1k | #endif | 308 | 42.1k | } |
Line | Count | Source | 256 | 66 | { | 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 | 66 | 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 | 37 | 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 | 37 | _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 | 37 | #endif | 308 | 37 | } |
Line | Count | Source | 256 | 87.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 | 87.4M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 37.6M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 37.6M | return; | 291 | 37.6M | } | 292 | 49.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 | 49.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 | 49.8M | #endif | 308 | 49.8M | } |
Line | Count | Source | 256 | 65.6k | { | 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.6k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 36.3k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 36.3k | return; | 291 | 36.3k | } | 292 | 29.2k | 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 | 29.2k | _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 | 29.2k | #endif | 308 | 29.2k | } |
Line | Count | Source | 256 | 60.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 | 60.4M | 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 | 60.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 | 60.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 | 60.4M | #endif | 308 | 60.4M | } |
Unexecuted instantiation: future.c:Py_INCREF Line | Count | Source | 256 | 526M | { | 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 | 526M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 463M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 463M | return; | 291 | 463M | } | 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 | } |
Unexecuted instantiation: gc_gil.c:Py_INCREF Line | Count | Source | 256 | 2.74M | { | 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.74M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 2.02M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 2.02M | return; | 291 | 2.02M | } | 292 | 718k | 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 | 718k | _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 | 718k | #endif | 308 | 718k | } |
Unexecuted instantiation: ceval_gil.c:Py_INCREF Unexecuted instantiation: hamt.c:Py_INCREF Unexecuted instantiation: hashtable.c:Py_INCREF Line | Count | Source | 256 | 14.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 | 14.3M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 3.12M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 3.12M | return; | 291 | 3.12M | } | 292 | 11.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 | 11.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 | 11.2M | #endif | 308 | 11.2M | } |
Line | Count | Source | 256 | 1.38k | { | 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.38k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 1.05k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 1.05k | return; | 291 | 1.05k | } | 292 | 325 | 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 | 325 | _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 | 325 | #endif | 308 | 325 | } |
Line | Count | Source | 256 | 629 | { | 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 | 629 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 629 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 629 | return; | 291 | 629 | } | 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 | 56.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 | 56.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 | 56.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 | 56.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 | 56.7k | #endif | 308 | 56.7k | } |
Unexecuted instantiation: legacy_tracing.c:Py_INCREF Unexecuted instantiation: lock.c:Py_INCREF Line | Count | Source | 256 | 1.82M | { | 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.82M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 1.62M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 1.62M | return; | 291 | 1.62M | } | 292 | 202k | 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 | 202k | _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 | 202k | #endif | 308 | 202k | } |
Line | Count | Source | 256 | 4.64M | { | 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.64M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 647k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 647k | return; | 291 | 647k | } | 292 | 4.00M | 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.00M | _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.00M | #endif | 308 | 4.00M | } |
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 | 37 | { | 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 | 37 | 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 | 37 | 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 | 37 | _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 | 37 | #endif | 308 | 37 | } |
Unexecuted instantiation: pymath.c:Py_INCREF Line | Count | Source | 256 | 1.00M | { | 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.00M | 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 | 1.00M | 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.00M | _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.00M | #endif | 308 | 1.00M | } |
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 | 4.49M | { | 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.49M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 766k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 766k | return; | 291 | 766k | } | 292 | 3.72M | 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.72M | _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.72M | #endif | 308 | 3.72M | } |
Line | Count | Source | 256 | 120k | { | 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 | 120k | 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 | 206 | 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 | 206 | _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 | 206 | #endif | 308 | 206 | } |
Line | Count | Source | 256 | 25.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 | 25.1k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 2.32k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 2.32k | return; | 291 | 2.32k | } | 292 | 22.8k | 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.8k | _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.8k | #endif | 308 | 22.8k | } |
Unexecuted instantiation: thread.c:Py_INCREF Line | Count | Source | 256 | 88.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 | 88.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 | 88.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 | 88.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 | 88.8M | #endif | 308 | 88.8M | } |
Unexecuted instantiation: tracemalloc.c:Py_INCREF Line | Count | Source | 256 | 2.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 | 2.83M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 2.78M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 2.78M | return; | 291 | 2.78M | } | 292 | 54.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 | 54.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 | 54.1k | #endif | 308 | 54.1k | } |
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 Line | Count | Source | 256 | 29 | { | 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 | 29 | 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 | 29 | 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 | 29 | _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 | 29 | #endif | 308 | 29 | } |
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 | 10 | { | 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 | 10 | 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 | 10 | 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 | 10 | _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 | 10 | #endif | 308 | 10 | } |
Unexecuted instantiation: faulthandler.c:Py_INCREF Line | Count | Source | 256 | 1.99M | { | 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.99M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 406k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 406k | return; | 291 | 406k | } | 292 | 1.59M | 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.59M | _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.59M | #endif | 308 | 1.59M | } |
Line | Count | Source | 256 | 2.36k | { | 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.36k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 2.36k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 2.36k | return; | 291 | 2.36k | } | 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 | 44.3k | { | 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 | 44.3k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 32.2k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 32.2k | return; | 291 | 32.2k | } | 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 | } |
Unexecuted instantiation: _codecsmodule.c:Py_INCREF _collectionsmodule.c:Py_INCREF Line | Count | Source | 256 | 24.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 | 24.6M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 20.5M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 20.5M | return; | 291 | 20.5M | } | 292 | 4.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 | 4.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 | 4.06M | #endif | 308 | 4.06M | } |
Unexecuted instantiation: errnomodule.c:Py_INCREF Line | Count | Source | 256 | 277 | { | 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 | 277 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 251 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 251 | return; | 291 | 251 | } | 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 | 94.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 | 94.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 | 94.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 | 94.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 | 94.7k | #endif | 308 | 94.7k | } |
Unexecuted instantiation: fileio.c:Py_INCREF Line | Count | Source | 256 | 71.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 | 71.8k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 1.08k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 1.08k | return; | 291 | 1.08k | } | 292 | 70.8k | 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.8k | _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.8k | #endif | 308 | 70.8k | } |
Line | Count | Source | 256 | 35.3k | { | 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.3k | 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.3k | 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.3k | _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.3k | #endif | 308 | 35.3k | } |
Line | Count | Source | 256 | 990k | { | 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 | 990k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 19.5k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 19.5k | return; | 291 | 19.5k | } | 292 | 971k | 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 | 971k | _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 | 971k | #endif | 308 | 971k | } |
Line | Count | Source | 256 | 21.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 | 21.7k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 84 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 84 | return; | 291 | 84 | } | 292 | 21.6k | 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.6k | _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.6k | #endif | 308 | 21.6k | } |
itertoolsmodule.c:Py_INCREF Line | Count | Source | 256 | 39.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 | 39.5k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 38.1k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 38.1k | return; | 291 | 38.1k | } | 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 | 145M | { | 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 | 145M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 58.5M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 58.5M | return; | 291 | 58.5M | } | 292 | 86.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 | 86.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 | 86.8M | #endif | 308 | 86.8M | } |
Unexecuted instantiation: _sysconfig.c:Py_INCREF _threadmodule.c:Py_INCREF Line | Count | Source | 256 | 160 | { | 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 | 160 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 80 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 80 | return; | 291 | 80 | } | 292 | 80 | 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 | 80 | _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 | 80 | #endif | 308 | 80 | } |
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 | 126k | { | 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 | 126k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 125k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 125k | return; | 291 | 125k | } | 292 | 392 | 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 | 392 | _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 | 392 | #endif | 308 | 392 | } |
_functoolsmodule.c:Py_INCREF Line | Count | Source | 256 | 568k | { | 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 | 568k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 23.8k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 23.8k | return; | 291 | 23.8k | } | 292 | 544k | 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 | 544k | _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 | 544k | #endif | 308 | 544k | } |
Unexecuted instantiation: _localemodule.c:Py_INCREF Unexecuted instantiation: _opcode.c:Py_INCREF Line | Count | Source | 256 | 1.38M | { | 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.38M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 1.36M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 1.36M | return; | 291 | 1.36M | } | 292 | 26.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 | 26.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 | 26.0k | #endif | 308 | 26.0k | } |
Unexecuted instantiation: _stat.c:Py_INCREF Unexecuted instantiation: symtablemodule.c:Py_INCREF Unexecuted instantiation: pwdmodule.c:Py_INCREF Line | Count | Source | 256 | 296 | { | 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 | 296 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 296 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 296 | return; | 291 | 296 | } | 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 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: source.c:Py_INCREF Unexecuted instantiation: helpers.c:Py_INCREF Unexecuted instantiation: myreadline.c:Py_INCREF Line | Count | Source | 256 | 492M | { | 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 | 492M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 286M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 286M | return; | 291 | 286M | } | 292 | 205M | 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 | 205M | _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 | 205M | #endif | 308 | 205M | } |
Unexecuted instantiation: boolobject.c:Py_INCREF Unexecuted instantiation: bytes_methods.c:Py_INCREF bytearrayobject.c:Py_INCREF Line | Count | Source | 256 | 13.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 | 13.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 | 13.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 | 13.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 | 13.0M | #endif | 308 | 13.0M | } |
Unexecuted instantiation: capsule.c:Py_INCREF Line | Count | Source | 256 | 3.70M | { | 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.70M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 596k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 596k | return; | 291 | 596k | } | 292 | 3.10M | 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.10M | _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.10M | #endif | 308 | 3.10M | } |
Line | Count | Source | 256 | 86.1M | { | 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 | 86.1M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 133 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 133 | return; | 291 | 133 | } | 292 | 86.1M | 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 | 86.1M | _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 | 86.1M | #endif | 308 | 86.1M | } |
Line | Count | Source | 256 | 1.84M | { | 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.84M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 844k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 844k | return; | 291 | 844k | } | 292 | 1.00M | 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.00M | _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.00M | #endif | 308 | 1.00M | } |
complexobject.c:Py_INCREF Line | Count | Source | 256 | 2.03k | { | 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.03k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 2.03k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 2.03k | return; | 291 | 2.03k | } | 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 | 21.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 | 21.2M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 73.1k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 73.1k | return; | 291 | 73.1k | } | 292 | 21.1M | 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.1M | _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.1M | #endif | 308 | 21.1M | } |
Line | Count | Source | 256 | 48.5M | { | 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 | 48.5M | 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 | 48.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 | 48.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 | 48.5M | #endif | 308 | 48.5M | } |
Line | Count | Source | 256 | 84.9M | { | 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.9M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 84.7M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 84.7M | return; | 291 | 84.7M | } | 292 | 146k | 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 | 146k | _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 | 146k | #endif | 308 | 146k | } |
Unexecuted instantiation: fileobject.c:Py_INCREF Line | Count | Source | 256 | 39.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 | 39.7M | 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 | 39.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 | 39.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 | 39.7M | #endif | 308 | 39.7M | } |
Line | Count | Source | 256 | 93.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 | 93.3M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 55.7M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 55.7M | return; | 291 | 55.7M | } | 292 | 37.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 | 37.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 | 37.6M | #endif | 308 | 37.6M | } |
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 | 2.88M | { | 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.88M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 656k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 656k | return; | 291 | 656k | } | 292 | 2.22M | 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.22M | _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.22M | #endif | 308 | 2.22M | } |
lazyimportobject.c:Py_INCREF Line | Count | Source | 256 | 1.79k | { | 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.79k | 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 | 1.25k | 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.25k | _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.25k | #endif | 308 | 1.25k | } |
Line | Count | Source | 256 | 174k | { | 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 | 174k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 98.4k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 98.4k | return; | 291 | 98.4k | } | 292 | 76.4k | 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 | 76.4k | _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 | 76.4k | #endif | 308 | 76.4k | } |
Line | Count | Source | 256 | 176M | { | 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 | 176M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 21.7M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 21.7M | return; | 291 | 21.7M | } | 292 | 155M | 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 | 155M | _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 | 155M | #endif | 308 | 155M | } |
Unexecuted instantiation: namespaceobject.c:Py_INCREF Unexecuted instantiation: _contextvars.c:Py_INCREF Line | Count | Source | 256 | 488k | { | 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 | 488k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 229k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 229k | return; | 291 | 229k | } | 292 | 259k | 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 | 259k | _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 | 259k | #endif | 308 | 259k | } |
Unexecuted instantiation: Python-tokenize.c:Py_INCREF Unexecuted instantiation: asdl.c:Py_INCREF Line | Count | Source | 256 | 21.3k | { | 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 | 21.3k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 21.3k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 21.3k | return; | 291 | 21.3k | } | 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 | 601 | { | 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 | 601 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 601 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 601 | return; | 291 | 601 | } | 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: pegen_errors.c:Py_INCREF Unexecuted instantiation: parser.c:Py_INCREF Unexecuted instantiation: lexer.c:Py_INCREF Unexecuted instantiation: layout.c:Py_INCREF Unexecuted instantiation: number.c:Py_INCREF Unexecuted instantiation: state.c:Py_INCREF Unexecuted instantiation: string.c:Py_INCREF Line | Count | Source | 256 | 4 | { | 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 | 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 | 4 | 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 | _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 | #endif | 308 | 4 | } |
Line | Count | Source | 256 | 63.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 | 63.2k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 790 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 790 | return; | 291 | 790 | } | 292 | 62.4k | 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.4k | _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.4k | #endif | 308 | 62.4k | } |
Unexecuted instantiation: getcompiler.c:Py_INCREF Unexecuted instantiation: mystrtoul.c:Py_INCREF Unexecuted instantiation: token.c:Py_INCREF action_helpers.c:Py_INCREF Line | Count | Source | 256 | 4.50k | { | 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.50k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 3.53k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 3.53k | return; | 291 | 3.53k | } | 292 | 962 | 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 | 962 | _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 | 962 | #endif | 308 | 962 | } |
Unexecuted instantiation: string_parser.c:Py_INCREF |
309 | | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000 |
310 | 12.5G | # 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 | 10.1k | static inline void Py_DECREF(PyObject *op) { |
334 | 10.1k | # if Py_LIMITED_API+0 >= 0x030a00A7 |
335 | 10.1k | _Py_DecRef(op); |
336 | | # else |
337 | | Py_DecRef(op); |
338 | | # endif |
339 | 10.1k | } Line | Count | Source | 333 | 10.1k | static inline void Py_DECREF(PyObject *op) { | 334 | 10.1k | # if Py_LIMITED_API+0 >= 0x030a00A7 | 335 | 10.1k | _Py_DecRef(op); | 336 | | # else | 337 | | Py_DecRef(op); | 338 | | # endif | 339 | 10.1k | } |
Unexecuted instantiation: _stat.c:Py_DECREF |
340 | 10.1k | #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 | 12.3G | { |
419 | | // Non-limited C API and limited C API for Python 3.9 and older access |
420 | | // directly PyObject.ob_refcnt. |
421 | 12.3G | if (_Py_IsImmortal(op)) { |
422 | 6.73G | _Py_DECREF_IMMORTAL_STAT_INC(); |
423 | 6.73G | return; |
424 | 6.73G | } |
425 | 5.59G | _Py_DECREF_STAT_INC(); |
426 | 5.59G | if (--op->ob_refcnt == 0) { |
427 | 1.20G | _Py_Dealloc(op); |
428 | 1.20G | } |
429 | 5.59G | } Line | Count | Source | 418 | 18.5M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 18.5M | if (_Py_IsImmortal(op)) { | 422 | 18.2M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 18.2M | return; | 424 | 18.2M | } | 425 | 336k | _Py_DECREF_STAT_INC(); | 426 | 336k | if (--op->ob_refcnt == 0) { | 427 | 163k | _Py_Dealloc(op); | 428 | 163k | } | 429 | 336k | } |
Line | Count | Source | 418 | 226M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 226M | if (_Py_IsImmortal(op)) { | 422 | 86.0M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 86.0M | return; | 424 | 86.0M | } | 425 | 140M | _Py_DECREF_STAT_INC(); | 426 | 140M | if (--op->ob_refcnt == 0) { | 427 | 97.7M | _Py_Dealloc(op); | 428 | 97.7M | } | 429 | 140M | } |
Line | Count | Source | 418 | 210M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 210M | if (_Py_IsImmortal(op)) { | 422 | 47.2M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 47.2M | return; | 424 | 47.2M | } | 425 | 163M | _Py_DECREF_STAT_INC(); | 426 | 163M | if (--op->ob_refcnt == 0) { | 427 | 94.8M | _Py_Dealloc(op); | 428 | 94.8M | } | 429 | 163M | } |
genericaliasobject.c:Py_DECREF Line | Count | Source | 418 | 296 | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 296 | if (_Py_IsImmortal(op)) { | 422 | 168 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 168 | return; | 424 | 168 | } | 425 | 128 | _Py_DECREF_STAT_INC(); | 426 | 128 | if (--op->ob_refcnt == 0) { | 427 | 128 | _Py_Dealloc(op); | 428 | 128 | } | 429 | 128 | } |
Line | Count | Source | 418 | 473k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 473k | if (_Py_IsImmortal(op)) { | 422 | 26.4k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 26.4k | return; | 424 | 26.4k | } | 425 | 446k | _Py_DECREF_STAT_INC(); | 426 | 446k | if (--op->ob_refcnt == 0) { | 427 | 167 | _Py_Dealloc(op); | 428 | 167 | } | 429 | 446k | } |
Line | Count | Source | 418 | 2.20G | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 2.20G | if (_Py_IsImmortal(op)) { | 422 | 628M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 628M | return; | 424 | 628M | } | 425 | 1.57G | _Py_DECREF_STAT_INC(); | 426 | 1.57G | if (--op->ob_refcnt == 0) { | 427 | 287M | _Py_Dealloc(op); | 428 | 287M | } | 429 | 1.57G | } |
Line | Count | Source | 418 | 31.7M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 31.7M | if (_Py_IsImmortal(op)) { | 422 | 23.7M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 23.7M | return; | 424 | 23.7M | } | 425 | 7.99M | _Py_DECREF_STAT_INC(); | 426 | 7.99M | if (--op->ob_refcnt == 0) { | 427 | 2.10M | _Py_Dealloc(op); | 428 | 2.10M | } | 429 | 7.99M | } |
Line | Count | Source | 418 | 735M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 735M | if (_Py_IsImmortal(op)) { | 422 | 381M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 381M | return; | 424 | 381M | } | 425 | 353M | _Py_DECREF_STAT_INC(); | 426 | 353M | if (--op->ob_refcnt == 0) { | 427 | 91.1M | _Py_Dealloc(op); | 428 | 91.1M | } | 429 | 353M | } |
Line | Count | Source | 418 | 4.95M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 4.95M | if (_Py_IsImmortal(op)) { | 422 | 124k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 124k | return; | 424 | 124k | } | 425 | 4.83M | _Py_DECREF_STAT_INC(); | 426 | 4.83M | if (--op->ob_refcnt == 0) { | 427 | 2.33M | _Py_Dealloc(op); | 428 | 2.33M | } | 429 | 4.83M | } |
Line | Count | Source | 418 | 3.63M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 3.63M | if (_Py_IsImmortal(op)) { | 422 | 3.59M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 3.59M | return; | 424 | 3.59M | } | 425 | 36.1k | _Py_DECREF_STAT_INC(); | 426 | 36.1k | if (--op->ob_refcnt == 0) { | 427 | 3.64k | _Py_Dealloc(op); | 428 | 3.64k | } | 429 | 36.1k | } |
Line | Count | Source | 418 | 842M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 842M | if (_Py_IsImmortal(op)) { | 422 | 586M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 586M | return; | 424 | 586M | } | 425 | 255M | _Py_DECREF_STAT_INC(); | 426 | 255M | if (--op->ob_refcnt == 0) { | 427 | 465k | _Py_Dealloc(op); | 428 | 465k | } | 429 | 255M | } |
Unexecuted instantiation: obmalloc.c:Py_DECREF Unexecuted instantiation: picklebufobject.c:Py_DECREF Line | Count | Source | 418 | 28.5M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 28.5M | if (_Py_IsImmortal(op)) { | 422 | 28.2M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 28.2M | return; | 424 | 28.2M | } | 425 | 340k | _Py_DECREF_STAT_INC(); | 426 | 340k | if (--op->ob_refcnt == 0) { | 427 | 149k | _Py_Dealloc(op); | 428 | 149k | } | 429 | 340k | } |
sentinelobject.c:Py_DECREF Line | Count | Source | 418 | 128 | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 128 | if (_Py_IsImmortal(op)) { | 422 | 91 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 91 | return; | 424 | 91 | } | 425 | 37 | _Py_DECREF_STAT_INC(); | 426 | 37 | if (--op->ob_refcnt == 0) { | 427 | 0 | _Py_Dealloc(op); | 428 | 0 | } | 429 | 37 | } |
Line | Count | Source | 418 | 22.9M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 22.9M | if (_Py_IsImmortal(op)) { | 422 | 7.06M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 7.06M | return; | 424 | 7.06M | } | 425 | 15.9M | _Py_DECREF_STAT_INC(); | 426 | 15.9M | if (--op->ob_refcnt == 0) { | 427 | 3.62M | _Py_Dealloc(op); | 428 | 3.62M | } | 429 | 15.9M | } |
Line | Count | Source | 418 | 160M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 160M | if (_Py_IsImmortal(op)) { | 422 | 90.3M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 90.3M | return; | 424 | 90.3M | } | 425 | 70.5M | _Py_DECREF_STAT_INC(); | 426 | 70.5M | if (--op->ob_refcnt == 0) { | 427 | 23.7k | _Py_Dealloc(op); | 428 | 23.7k | } | 429 | 70.5M | } |
Line | Count | Source | 418 | 4.96M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 4.96M | if (_Py_IsImmortal(op)) { | 422 | 1.50M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 1.50M | return; | 424 | 1.50M | } | 425 | 3.46M | _Py_DECREF_STAT_INC(); | 426 | 3.46M | if (--op->ob_refcnt == 0) { | 427 | 3.15M | _Py_Dealloc(op); | 428 | 3.15M | } | 429 | 3.46M | } |
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 | 3.78G | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 3.78G | if (_Py_IsImmortal(op)) { | 422 | 2.56G | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 2.56G | return; | 424 | 2.56G | } | 425 | 1.22G | _Py_DECREF_STAT_INC(); | 426 | 1.22G | if (--op->ob_refcnt == 0) { | 427 | 143M | _Py_Dealloc(op); | 428 | 143M | } | 429 | 1.22G | } |
Line | Count | Source | 418 | 329M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 329M | if (_Py_IsImmortal(op)) { | 422 | 96.9M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 96.9M | return; | 424 | 96.9M | } | 425 | 232M | _Py_DECREF_STAT_INC(); | 426 | 232M | if (--op->ob_refcnt == 0) { | 427 | 35.9M | _Py_Dealloc(op); | 428 | 35.9M | } | 429 | 232M | } |
typevarobject.c:Py_DECREF Line | Count | Source | 418 | 151k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 151k | if (_Py_IsImmortal(op)) { | 422 | 364 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 364 | return; | 424 | 364 | } | 425 | 151k | _Py_DECREF_STAT_INC(); | 426 | 151k | if (--op->ob_refcnt == 0) { | 427 | 812 | _Py_Dealloc(op); | 428 | 812 | } | 429 | 151k | } |
unicode_format.c:Py_DECREF Line | Count | Source | 418 | 17.4M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 17.4M | if (_Py_IsImmortal(op)) { | 422 | 1.03M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 1.03M | return; | 424 | 1.03M | } | 425 | 16.4M | _Py_DECREF_STAT_INC(); | 426 | 16.4M | if (--op->ob_refcnt == 0) { | 427 | 10.1M | _Py_Dealloc(op); | 428 | 10.1M | } | 429 | 16.4M | } |
unicode_formatter.c:Py_DECREF Line | Count | Source | 418 | 22.3M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 22.3M | if (_Py_IsImmortal(op)) { | 422 | 16.7M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 16.7M | return; | 424 | 16.7M | } | 425 | 5.59M | _Py_DECREF_STAT_INC(); | 426 | 5.59M | if (--op->ob_refcnt == 0) { | 427 | 5.59M | _Py_Dealloc(op); | 428 | 5.59M | } | 429 | 5.59M | } |
unicode_writer.c:Py_DECREF Line | Count | Source | 418 | 37.5M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 37.5M | if (_Py_IsImmortal(op)) { | 422 | 12.2M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 12.2M | return; | 424 | 12.2M | } | 425 | 25.3M | _Py_DECREF_STAT_INC(); | 426 | 25.3M | if (--op->ob_refcnt == 0) { | 427 | 20.2M | _Py_Dealloc(op); | 428 | 20.2M | } | 429 | 25.3M | } |
Unexecuted instantiation: unicodectype.c:Py_DECREF unicodeobject.c:Py_DECREF 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 | 56.9M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 56.9M | return; | 424 | 56.9M | } | 425 | 74.5M | _Py_DECREF_STAT_INC(); | 426 | 74.5M | if (--op->ob_refcnt == 0) { | 427 | 16.2M | _Py_Dealloc(op); | 428 | 16.2M | } | 429 | 74.5M | } |
Line | Count | Source | 418 | 4.52k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 4.52k | if (_Py_IsImmortal(op)) { | 422 | 556 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 556 | return; | 424 | 556 | } | 425 | 3.97k | _Py_DECREF_STAT_INC(); | 426 | 3.97k | if (--op->ob_refcnt == 0) { | 427 | 3.37k | _Py_Dealloc(op); | 428 | 3.37k | } | 429 | 3.97k | } |
weakrefobject.c:Py_DECREF Line | Count | Source | 418 | 1.52M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 1.52M | if (_Py_IsImmortal(op)) { | 422 | 101k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 101k | return; | 424 | 101k | } | 425 | 1.42M | _Py_DECREF_STAT_INC(); | 426 | 1.42M | if (--op->ob_refcnt == 0) { | 427 | 27.1k | _Py_Dealloc(op); | 428 | 27.1k | } | 429 | 1.42M | } |
Line | Count | Source | 418 | 54.1M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 54.1M | if (_Py_IsImmortal(op)) { | 422 | 5.24M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 5.24M | return; | 424 | 5.24M | } | 425 | 48.9M | _Py_DECREF_STAT_INC(); | 426 | 48.9M | if (--op->ob_refcnt == 0) { | 427 | 2.03M | _Py_Dealloc(op); | 428 | 2.03M | } | 429 | 48.9M | } |
Line | Count | Source | 418 | 1.49G | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 1.49G | if (_Py_IsImmortal(op)) { | 422 | 1.32G | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 1.32G | return; | 424 | 1.32G | } | 425 | 170M | _Py_DECREF_STAT_INC(); | 426 | 170M | if (--op->ob_refcnt == 0) { | 427 | 113M | _Py_Dealloc(op); | 428 | 113M | } | 429 | 170M | } |
Line | Count | Source | 418 | 135k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 135k | if (_Py_IsImmortal(op)) { | 422 | 16.0k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 16.0k | return; | 424 | 16.0k | } | 425 | 119k | _Py_DECREF_STAT_INC(); | 426 | 119k | if (--op->ob_refcnt == 0) { | 427 | 50.6k | _Py_Dealloc(op); | 428 | 50.6k | } | 429 | 119k | } |
Line | Count | Source | 418 | 23.7M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 23.7M | if (_Py_IsImmortal(op)) { | 422 | 8.13M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 8.13M | return; | 424 | 8.13M | } | 425 | 15.5M | _Py_DECREF_STAT_INC(); | 426 | 15.5M | if (--op->ob_refcnt == 0) { | 427 | 7.65M | _Py_Dealloc(op); | 428 | 7.65M | } | 429 | 15.5M | } |
Line | Count | Source | 418 | 65.0k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 65.0k | if (_Py_IsImmortal(op)) { | 422 | 57.1k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 57.1k | return; | 424 | 57.1k | } | 425 | 7.93k | _Py_DECREF_STAT_INC(); | 426 | 7.93k | if (--op->ob_refcnt == 0) { | 427 | 277 | _Py_Dealloc(op); | 428 | 277 | } | 429 | 7.93k | } |
Line | Count | Source | 418 | 349k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 349k | if (_Py_IsImmortal(op)) { | 422 | 180k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 180k | return; | 424 | 180k | } | 425 | 169k | _Py_DECREF_STAT_INC(); | 426 | 169k | if (--op->ob_refcnt == 0) { | 427 | 59.5k | _Py_Dealloc(op); | 428 | 59.5k | } | 429 | 169k | } |
Line | Count | Source | 418 | 74 | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 74 | if (_Py_IsImmortal(op)) { | 422 | 37 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 37 | return; | 424 | 37 | } | 425 | 37 | _Py_DECREF_STAT_INC(); | 426 | 37 | if (--op->ob_refcnt == 0) { | 427 | 0 | _Py_Dealloc(op); | 428 | 0 | } | 429 | 37 | } |
Line | Count | Source | 418 | 86.7M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 86.7M | if (_Py_IsImmortal(op)) { | 422 | 37.6M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 37.6M | return; | 424 | 37.6M | } | 425 | 49.1M | _Py_DECREF_STAT_INC(); | 426 | 49.1M | if (--op->ob_refcnt == 0) { | 427 | 17.4M | _Py_Dealloc(op); | 428 | 17.4M | } | 429 | 49.1M | } |
Line | Count | Source | 418 | 61.3k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 61.3k | if (_Py_IsImmortal(op)) { | 422 | 37.9k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 37.9k | return; | 424 | 37.9k | } | 425 | 23.4k | _Py_DECREF_STAT_INC(); | 426 | 23.4k | if (--op->ob_refcnt == 0) { | 427 | 135 | _Py_Dealloc(op); | 428 | 135 | } | 429 | 23.4k | } |
Line | Count | Source | 418 | 55.8M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 55.8M | if (_Py_IsImmortal(op)) { | 422 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 0 | return; | 424 | 0 | } | 425 | 55.8M | _Py_DECREF_STAT_INC(); | 426 | 55.8M | if (--op->ob_refcnt == 0) { | 427 | 15.4M | _Py_Dealloc(op); | 428 | 15.4M | } | 429 | 55.8M | } |
Line | Count | Source | 418 | 137 | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 137 | if (_Py_IsImmortal(op)) { | 422 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 0 | return; | 424 | 0 | } | 425 | 137 | _Py_DECREF_STAT_INC(); | 426 | 137 | if (--op->ob_refcnt == 0) { | 427 | 108 | _Py_Dealloc(op); | 428 | 108 | } | 429 | 137 | } |
Line | Count | Source | 418 | 2.63M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 2.63M | if (_Py_IsImmortal(op)) { | 422 | 24.1k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 24.1k | return; | 424 | 24.1k | } | 425 | 2.61M | _Py_DECREF_STAT_INC(); | 426 | 2.61M | if (--op->ob_refcnt == 0) { | 427 | 739k | _Py_Dealloc(op); | 428 | 739k | } | 429 | 2.61M | } |
Unexecuted instantiation: gc_gil.c:Py_DECREF Line | Count | Source | 418 | 14.3M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 14.3M | if (_Py_IsImmortal(op)) { | 422 | 13.4M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 13.4M | return; | 424 | 13.4M | } | 425 | 846k | _Py_DECREF_STAT_INC(); | 426 | 846k | if (--op->ob_refcnt == 0) { | 427 | 0 | _Py_Dealloc(op); | 428 | 0 | } | 429 | 846k | } |
Unexecuted instantiation: ceval_gil.c:Py_DECREF Unexecuted instantiation: hamt.c:Py_DECREF Unexecuted instantiation: hashtable.c:Py_DECREF Line | Count | Source | 418 | 23.7M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 23.7M | if (_Py_IsImmortal(op)) { | 422 | 3.79M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 3.79M | return; | 424 | 3.79M | } | 425 | 19.9M | _Py_DECREF_STAT_INC(); | 426 | 19.9M | if (--op->ob_refcnt == 0) { | 427 | 256k | _Py_Dealloc(op); | 428 | 256k | } | 429 | 19.9M | } |
Line | Count | Source | 418 | 3.19k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 3.19k | if (_Py_IsImmortal(op)) { | 422 | 1.24k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 1.24k | return; | 424 | 1.24k | } | 425 | 1.94k | _Py_DECREF_STAT_INC(); | 426 | 1.94k | if (--op->ob_refcnt == 0) { | 427 | 1.17k | _Py_Dealloc(op); | 428 | 1.17k | } | 429 | 1.94k | } |
Line | Count | Source | 418 | 5.32k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 5.32k | if (_Py_IsImmortal(op)) { | 422 | 4.32k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 4.32k | return; | 424 | 4.32k | } | 425 | 999 | _Py_DECREF_STAT_INC(); | 426 | 999 | if (--op->ob_refcnt == 0) { | 427 | 0 | _Py_Dealloc(op); | 428 | 0 | } | 429 | 999 | } |
instrumentation.c:Py_DECREF Line | Count | Source | 418 | 888 | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 888 | if (_Py_IsImmortal(op)) { | 422 | 555 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 555 | return; | 424 | 555 | } | 425 | 333 | _Py_DECREF_STAT_INC(); | 426 | 333 | if (--op->ob_refcnt == 0) { | 427 | 0 | _Py_Dealloc(op); | 428 | 0 | } | 429 | 333 | } |
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 | 85.9k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 85.9k | if (_Py_IsImmortal(op)) { | 422 | 48.3k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 48.3k | return; | 424 | 48.3k | } | 425 | 37.6k | _Py_DECREF_STAT_INC(); | 426 | 37.6k | if (--op->ob_refcnt == 0) { | 427 | 350 | _Py_Dealloc(op); | 428 | 350 | } | 429 | 37.6k | } |
Unexecuted instantiation: legacy_tracing.c:Py_DECREF Unexecuted instantiation: lock.c:Py_DECREF Line | Count | Source | 418 | 1.69M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 1.69M | if (_Py_IsImmortal(op)) { | 422 | 780k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 780k | return; | 424 | 780k | } | 425 | 916k | _Py_DECREF_STAT_INC(); | 426 | 916k | if (--op->ob_refcnt == 0) { | 427 | 166k | _Py_Dealloc(op); | 428 | 166k | } | 429 | 916k | } |
Line | Count | Source | 418 | 67.5k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 67.5k | if (_Py_IsImmortal(op)) { | 422 | 33.4k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 33.4k | return; | 424 | 33.4k | } | 425 | 34.0k | _Py_DECREF_STAT_INC(); | 426 | 34.0k | if (--op->ob_refcnt == 0) { | 427 | 0 | _Py_Dealloc(op); | 428 | 0 | } | 429 | 34.0k | } |
Unexecuted instantiation: mysnprintf.c:Py_DECREF Unexecuted instantiation: parking_lot.c:Py_DECREF Unexecuted instantiation: preconfig.c:Py_DECREF Line | Count | Source | 418 | 1.02M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 1.02M | if (_Py_IsImmortal(op)) { | 422 | 585k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 585k | return; | 424 | 585k | } | 425 | 442k | _Py_DECREF_STAT_INC(); | 426 | 442k | if (--op->ob_refcnt == 0) { | 427 | 65.0k | _Py_Dealloc(op); | 428 | 65.0k | } | 429 | 442k | } |
Unexecuted instantiation: pyctype.c:Py_DECREF Unexecuted instantiation: pyhash.c:Py_DECREF Line | Count | Source | 418 | 1.33k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 1.33k | if (_Py_IsImmortal(op)) { | 422 | 259 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 259 | return; | 424 | 259 | } | 425 | 1.07k | _Py_DECREF_STAT_INC(); | 426 | 1.07k | if (--op->ob_refcnt == 0) { | 427 | 111 | _Py_Dealloc(op); | 428 | 111 | } | 429 | 1.07k | } |
Unexecuted instantiation: pymath.c:Py_DECREF Unexecuted instantiation: pystate.c:Py_DECREF Line | Count | Source | 418 | 1.90k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 1.90k | if (_Py_IsImmortal(op)) { | 422 | 428 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 428 | return; | 424 | 428 | } | 425 | 1.47k | _Py_DECREF_STAT_INC(); | 426 | 1.47k | if (--op->ob_refcnt == 0) { | 427 | 584 | _Py_Dealloc(op); | 428 | 584 | } | 429 | 1.47k | } |
Unexecuted instantiation: pytime.c:Py_DECREF Unexecuted instantiation: qsbr.c:Py_DECREF Unexecuted instantiation: bootstrap_hash.c:Py_DECREF Line | Count | Source | 418 | 2.42M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 2.42M | if (_Py_IsImmortal(op)) { | 422 | 1.32M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 1.32M | return; | 424 | 1.32M | } | 425 | 1.10M | _Py_DECREF_STAT_INC(); | 426 | 1.10M | if (--op->ob_refcnt == 0) { | 427 | 0 | _Py_Dealloc(op); | 428 | 0 | } | 429 | 1.10M | } |
Unexecuted instantiation: slots.c:Py_DECREF Unexecuted instantiation: slots_generated.c:Py_DECREF Line | Count | Source | 418 | 1.78k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 1.78k | if (_Py_IsImmortal(op)) { | 422 | 1.00k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 1.00k | return; | 424 | 1.00k | } | 425 | 780 | _Py_DECREF_STAT_INC(); | 426 | 780 | if (--op->ob_refcnt == 0) { | 427 | 522 | _Py_Dealloc(op); | 428 | 522 | } | 429 | 780 | } |
Line | Count | Source | 418 | 384k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 384k | if (_Py_IsImmortal(op)) { | 422 | 165k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 165k | return; | 424 | 165k | } | 425 | 219k | _Py_DECREF_STAT_INC(); | 426 | 219k | if (--op->ob_refcnt == 0) { | 427 | 116k | _Py_Dealloc(op); | 428 | 116k | } | 429 | 219k | } |
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 | 177M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 177M | if (_Py_IsImmortal(op)) { | 422 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 0 | return; | 424 | 0 | } | 425 | 177M | _Py_DECREF_STAT_INC(); | 426 | 177M | if (--op->ob_refcnt == 0) { | 427 | 53.3M | _Py_Dealloc(op); | 428 | 53.3M | } | 429 | 177M | } |
Unexecuted instantiation: tracemalloc.c:Py_DECREF Line | Count | Source | 418 | 2.74M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 2.74M | if (_Py_IsImmortal(op)) { | 422 | 2.70M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 2.70M | return; | 424 | 2.70M | } | 425 | 37.4k | _Py_DECREF_STAT_INC(); | 426 | 37.4k | if (--op->ob_refcnt == 0) { | 427 | 0 | _Py_Dealloc(op); | 428 | 0 | } | 429 | 37.4k | } |
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 | 52.8k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 52.8k | if (_Py_IsImmortal(op)) { | 422 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 0 | return; | 424 | 0 | } | 425 | 52.8k | _Py_DECREF_STAT_INC(); | 426 | 52.8k | if (--op->ob_refcnt == 0) { | 427 | 52.8k | _Py_Dealloc(op); | 428 | 52.8k | } | 429 | 52.8k | } |
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 | 30 | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 30 | if (_Py_IsImmortal(op)) { | 422 | 10 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 10 | return; | 424 | 10 | } | 425 | 20 | _Py_DECREF_STAT_INC(); | 426 | 20 | if (--op->ob_refcnt == 0) { | 427 | 0 | _Py_Dealloc(op); | 428 | 0 | } | 429 | 20 | } |
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 | 946k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 946k | return; | 424 | 946k | } | 425 | 1.67M | _Py_DECREF_STAT_INC(); | 426 | 1.67M | if (--op->ob_refcnt == 0) { | 427 | 692k | _Py_Dealloc(op); | 428 | 692k | } | 429 | 1.67M | } |
Line | Count | Source | 418 | 74 | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 74 | if (_Py_IsImmortal(op)) { | 422 | 37 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 37 | return; | 424 | 37 | } | 425 | 37 | _Py_DECREF_STAT_INC(); | 426 | 37 | if (--op->ob_refcnt == 0) { | 427 | 0 | _Py_Dealloc(op); | 428 | 0 | } | 429 | 37 | } |
Unexecuted instantiation: _tracemalloc.c:Py_DECREF Unexecuted instantiation: _suggestions.c:Py_DECREF _datetimemodule.c:Py_DECREF Line | Count | Source | 418 | 118k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 118k | if (_Py_IsImmortal(op)) { | 422 | 17.0k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 17.0k | return; | 424 | 17.0k | } | 425 | 101k | _Py_DECREF_STAT_INC(); | 426 | 101k | if (--op->ob_refcnt == 0) { | 427 | 46.8k | _Py_Dealloc(op); | 428 | 46.8k | } | 429 | 101k | } |
Unexecuted instantiation: _codecsmodule.c:Py_DECREF _collectionsmodule.c:Py_DECREF Line | Count | Source | 418 | 167k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 167k | if (_Py_IsImmortal(op)) { | 422 | 67.6k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 67.6k | return; | 424 | 67.6k | } | 425 | 99.5k | _Py_DECREF_STAT_INC(); | 426 | 99.5k | if (--op->ob_refcnt == 0) { | 427 | 39.9k | _Py_Dealloc(op); | 428 | 39.9k | } | 429 | 99.5k | } |
Line | Count | Source | 418 | 1.53M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 1.53M | if (_Py_IsImmortal(op)) { | 422 | 1.43M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 1.43M | return; | 424 | 1.43M | } | 425 | 100k | _Py_DECREF_STAT_INC(); | 426 | 100k | if (--op->ob_refcnt == 0) { | 427 | 49.3k | _Py_Dealloc(op); | 428 | 49.3k | } | 429 | 100k | } |
Line | Count | Source | 418 | 1.78M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 1.78M | if (_Py_IsImmortal(op)) { | 422 | 1.64M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 1.64M | return; | 424 | 1.64M | } | 425 | 141k | _Py_DECREF_STAT_INC(); | 426 | 141k | if (--op->ob_refcnt == 0) { | 427 | 96.2k | _Py_Dealloc(op); | 428 | 96.2k | } | 429 | 141k | } |
Line | Count | Source | 418 | 73.6k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 73.6k | if (_Py_IsImmortal(op)) { | 422 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 0 | return; | 424 | 0 | } | 425 | 73.6k | _Py_DECREF_STAT_INC(); | 426 | 73.6k | if (--op->ob_refcnt == 0) { | 427 | 49.0k | _Py_Dealloc(op); | 428 | 49.0k | } | 429 | 73.6k | } |
Line | Count | Source | 418 | 325k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 325k | if (_Py_IsImmortal(op)) { | 422 | 137k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 137k | return; | 424 | 137k | } | 425 | 188k | _Py_DECREF_STAT_INC(); | 426 | 188k | if (--op->ob_refcnt == 0) { | 427 | 12.2k | _Py_Dealloc(op); | 428 | 12.2k | } | 429 | 188k | } |
Line | Count | Source | 418 | 8.01M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 8.01M | if (_Py_IsImmortal(op)) { | 422 | 7.60M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 7.60M | return; | 424 | 7.60M | } | 425 | 405k | _Py_DECREF_STAT_INC(); | 426 | 405k | if (--op->ob_refcnt == 0) { | 427 | 337k | _Py_Dealloc(op); | 428 | 337k | } | 429 | 405k | } |
Line | Count | Source | 418 | 1.40M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 1.40M | if (_Py_IsImmortal(op)) { | 422 | 254k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 254k | return; | 424 | 254k | } | 425 | 1.14M | _Py_DECREF_STAT_INC(); | 426 | 1.14M | if (--op->ob_refcnt == 0) { | 427 | 222k | _Py_Dealloc(op); | 428 | 222k | } | 429 | 1.14M | } |
Line | Count | Source | 418 | 311k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 311k | if (_Py_IsImmortal(op)) { | 422 | 159k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 159k | return; | 424 | 159k | } | 425 | 151k | _Py_DECREF_STAT_INC(); | 426 | 151k | if (--op->ob_refcnt == 0) { | 427 | 24.2k | _Py_Dealloc(op); | 428 | 24.2k | } | 429 | 151k | } |
itertoolsmodule.c:Py_DECREF Line | Count | Source | 418 | 94.6k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 94.6k | if (_Py_IsImmortal(op)) { | 422 | 5.28k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 5.28k | return; | 424 | 5.28k | } | 425 | 89.3k | _Py_DECREF_STAT_INC(); | 426 | 89.3k | if (--op->ob_refcnt == 0) { | 427 | 30.5k | _Py_Dealloc(op); | 428 | 30.5k | } | 429 | 89.3k | } |
Line | Count | Source | 418 | 195M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 195M | if (_Py_IsImmortal(op)) { | 422 | 61.0M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 61.0M | return; | 424 | 61.0M | } | 425 | 133M | _Py_DECREF_STAT_INC(); | 426 | 133M | if (--op->ob_refcnt == 0) { | 427 | 9.88M | _Py_Dealloc(op); | 428 | 9.88M | } | 429 | 133M | } |
Unexecuted instantiation: _sysconfig.c:Py_DECREF _threadmodule.c:Py_DECREF Line | Count | Source | 418 | 10.0M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 10.0M | if (_Py_IsImmortal(op)) { | 422 | 4 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 4 | return; | 424 | 4 | } | 425 | 10.0M | _Py_DECREF_STAT_INC(); | 426 | 10.0M | if (--op->ob_refcnt == 0) { | 427 | 8 | _Py_Dealloc(op); | 428 | 8 | } | 429 | 10.0M | } |
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 | 500k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 500k | if (_Py_IsImmortal(op)) { | 422 | 84.7k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 84.7k | return; | 424 | 84.7k | } | 425 | 416k | _Py_DECREF_STAT_INC(); | 426 | 416k | if (--op->ob_refcnt == 0) { | 427 | 7.78k | _Py_Dealloc(op); | 428 | 7.78k | } | 429 | 416k | } |
_functoolsmodule.c:Py_DECREF Line | Count | Source | 418 | 913k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 913k | if (_Py_IsImmortal(op)) { | 422 | 186k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 186k | return; | 424 | 186k | } | 425 | 727k | _Py_DECREF_STAT_INC(); | 426 | 727k | if (--op->ob_refcnt == 0) { | 427 | 350k | _Py_Dealloc(op); | 428 | 350k | } | 429 | 727k | } |
Unexecuted instantiation: _localemodule.c:Py_DECREF Unexecuted instantiation: _opcode.c:Py_DECREF Line | Count | Source | 418 | 645k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 645k | if (_Py_IsImmortal(op)) { | 422 | 322k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 322k | return; | 424 | 322k | } | 425 | 322k | _Py_DECREF_STAT_INC(); | 426 | 322k | if (--op->ob_refcnt == 0) { | 427 | 0 | _Py_Dealloc(op); | 428 | 0 | } | 429 | 322k | } |
Unexecuted instantiation: symtablemodule.c:Py_DECREF Unexecuted instantiation: pwdmodule.c:Py_DECREF Line | Count | Source | 418 | 1.51k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 1.51k | if (_Py_IsImmortal(op)) { | 422 | 444 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 444 | return; | 424 | 444 | } | 425 | 1.07k | _Py_DECREF_STAT_INC(); | 426 | 1.07k | if (--op->ob_refcnt == 0) { | 427 | 333 | _Py_Dealloc(op); | 428 | 333 | } | 429 | 1.07k | } |
Unexecuted instantiation: frozen.c:Py_DECREF Unexecuted instantiation: getbuildinfo.c:Py_DECREF Unexecuted instantiation: peg_api.c:Py_DECREF Line | Count | Source | 418 | 24 | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 24 | if (_Py_IsImmortal(op)) { | 422 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 0 | return; | 424 | 0 | } | 425 | 24 | _Py_DECREF_STAT_INC(); | 426 | 24 | if (--op->ob_refcnt == 0) { | 427 | 4 | _Py_Dealloc(op); | 428 | 4 | } | 429 | 24 | } |
Unexecuted instantiation: source.c:Py_DECREF Line | Count | Source | 418 | 29.8k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 29.8k | if (_Py_IsImmortal(op)) { | 422 | 2.43k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 2.43k | return; | 424 | 2.43k | } | 425 | 27.4k | _Py_DECREF_STAT_INC(); | 426 | 27.4k | if (--op->ob_refcnt == 0) { | 427 | 15.5k | _Py_Dealloc(op); | 428 | 15.5k | } | 429 | 27.4k | } |
Unexecuted instantiation: myreadline.c:Py_DECREF Line | Count | Source | 418 | 511M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 511M | if (_Py_IsImmortal(op)) { | 422 | 344M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 344M | return; | 424 | 344M | } | 425 | 166M | _Py_DECREF_STAT_INC(); | 426 | 166M | if (--op->ob_refcnt == 0) { | 427 | 10.3M | _Py_Dealloc(op); | 428 | 10.3M | } | 429 | 166M | } |
Unexecuted instantiation: boolobject.c:Py_DECREF Unexecuted instantiation: bytes_methods.c:Py_DECREF bytearrayobject.c:Py_DECREF Line | Count | Source | 418 | 21.5M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 21.5M | if (_Py_IsImmortal(op)) { | 422 | 5.67M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 5.67M | return; | 424 | 5.67M | } | 425 | 15.9M | _Py_DECREF_STAT_INC(); | 426 | 15.9M | if (--op->ob_refcnt == 0) { | 427 | 15.9M | _Py_Dealloc(op); | 428 | 15.9M | } | 429 | 15.9M | } |
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 | 11.5M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 11.5M | if (_Py_IsImmortal(op)) { | 422 | 1.03M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 1.03M | return; | 424 | 1.03M | } | 425 | 10.4M | _Py_DECREF_STAT_INC(); | 426 | 10.4M | if (--op->ob_refcnt == 0) { | 427 | 7.34M | _Py_Dealloc(op); | 428 | 7.34M | } | 429 | 10.4M | } |
Line | Count | Source | 418 | 86.1M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 86.1M | if (_Py_IsImmortal(op)) { | 422 | 133 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 133 | return; | 424 | 133 | } | 425 | 86.1M | _Py_DECREF_STAT_INC(); | 426 | 86.1M | if (--op->ob_refcnt == 0) { | 427 | 5.80k | _Py_Dealloc(op); | 428 | 5.80k | } | 429 | 86.1M | } |
Line | Count | Source | 418 | 824k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 824k | if (_Py_IsImmortal(op)) { | 422 | 399k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 399k | return; | 424 | 399k | } | 425 | 425k | _Py_DECREF_STAT_INC(); | 426 | 425k | if (--op->ob_refcnt == 0) { | 427 | 325k | _Py_Dealloc(op); | 428 | 325k | } | 429 | 425k | } |
Unexecuted instantiation: complexobject.c:Py_DECREF Line | Count | Source | 418 | 46.8M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 46.8M | if (_Py_IsImmortal(op)) { | 422 | 7.89M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 7.89M | return; | 424 | 7.89M | } | 425 | 38.9M | _Py_DECREF_STAT_INC(); | 426 | 38.9M | if (--op->ob_refcnt == 0) { | 427 | 9.17M | _Py_Dealloc(op); | 428 | 9.17M | } | 429 | 38.9M | } |
Line | Count | Source | 418 | 163M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 163M | if (_Py_IsImmortal(op)) { | 422 | 31.5M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 31.5M | return; | 424 | 31.5M | } | 425 | 131M | _Py_DECREF_STAT_INC(); | 426 | 131M | if (--op->ob_refcnt == 0) { | 427 | 65.9M | _Py_Dealloc(op); | 428 | 65.9M | } | 429 | 131M | } |
Line | Count | Source | 418 | 96.4M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 96.4M | if (_Py_IsImmortal(op)) { | 422 | 96.3M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 96.3M | return; | 424 | 96.3M | } | 425 | 75.0k | _Py_DECREF_STAT_INC(); | 426 | 75.0k | if (--op->ob_refcnt == 0) { | 427 | 0 | _Py_Dealloc(op); | 428 | 0 | } | 429 | 75.0k | } |
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 | 316k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 316k | return; | 424 | 316k | } | 425 | 5.77k | _Py_DECREF_STAT_INC(); | 426 | 5.77k | if (--op->ob_refcnt == 0) { | 427 | 0 | _Py_Dealloc(op); | 428 | 0 | } | 429 | 5.77k | } |
Line | Count | Source | 418 | 40.3M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 40.3M | if (_Py_IsImmortal(op)) { | 422 | 84 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 84 | return; | 424 | 84 | } | 425 | 40.3M | _Py_DECREF_STAT_INC(); | 426 | 40.3M | if (--op->ob_refcnt == 0) { | 427 | 11.3M | _Py_Dealloc(op); | 428 | 11.3M | } | 429 | 40.3M | } |
Line | Count | Source | 418 | 172M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 172M | if (_Py_IsImmortal(op)) { | 422 | 96.4M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 96.4M | return; | 424 | 96.4M | } | 425 | 76.5M | _Py_DECREF_STAT_INC(); | 426 | 76.5M | if (--op->ob_refcnt == 0) { | 427 | 6.60M | _Py_Dealloc(op); | 428 | 6.60M | } | 429 | 76.5M | } |
interpolationobject.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 | 16 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 16 | return; | 424 | 16 | } | 425 | 37 | _Py_DECREF_STAT_INC(); | 426 | 37 | if (--op->ob_refcnt == 0) { | 427 | 0 | _Py_Dealloc(op); | 428 | 0 | } | 429 | 37 | } |
Line | Count | Source | 418 | 3.21M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 3.21M | if (_Py_IsImmortal(op)) { | 422 | 984k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 984k | return; | 424 | 984k | } | 425 | 2.22M | _Py_DECREF_STAT_INC(); | 426 | 2.22M | if (--op->ob_refcnt == 0) { | 427 | 328k | _Py_Dealloc(op); | 428 | 328k | } | 429 | 2.22M | } |
lazyimportobject.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 | 67 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 67 | return; | 424 | 67 | } | 425 | 281 | _Py_DECREF_STAT_INC(); | 426 | 281 | if (--op->ob_refcnt == 0) { | 427 | 22 | _Py_Dealloc(op); | 428 | 22 | } | 429 | 281 | } |
Line | Count | Source | 418 | 258k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 258k | if (_Py_IsImmortal(op)) { | 422 | 119k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 119k | return; | 424 | 119k | } | 425 | 138k | _Py_DECREF_STAT_INC(); | 426 | 138k | if (--op->ob_refcnt == 0) { | 427 | 33.8k | _Py_Dealloc(op); | 428 | 33.8k | } | 429 | 138k | } |
Line | Count | Source | 418 | 176M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 176M | if (_Py_IsImmortal(op)) { | 422 | 21.6M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 21.6M | return; | 424 | 21.6M | } | 425 | 155M | _Py_DECREF_STAT_INC(); | 426 | 155M | if (--op->ob_refcnt == 0) { | 427 | 38.9M | _Py_Dealloc(op); | 428 | 38.9M | } | 429 | 155M | } |
namespaceobject.c:Py_DECREF Line | Count | Source | 418 | 65 | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 65 | if (_Py_IsImmortal(op)) { | 422 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 0 | return; | 424 | 0 | } | 425 | 65 | _Py_DECREF_STAT_INC(); | 426 | 65 | if (--op->ob_refcnt == 0) { | 427 | 65 | _Py_Dealloc(op); | 428 | 65 | } | 429 | 65 | } |
Unexecuted instantiation: _contextvars.c:Py_DECREF Line | Count | Source | 418 | 3.40M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 3.40M | if (_Py_IsImmortal(op)) { | 422 | 1.81M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 1.81M | return; | 424 | 1.81M | } | 425 | 1.59M | _Py_DECREF_STAT_INC(); | 426 | 1.59M | if (--op->ob_refcnt == 0) { | 427 | 423k | _Py_Dealloc(op); | 428 | 423k | } | 429 | 1.59M | } |
Python-tokenize.c:Py_DECREF Line | Count | Source | 418 | 500 | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 500 | if (_Py_IsImmortal(op)) { | 422 | 192 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 192 | return; | 424 | 192 | } | 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.8k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 29.8k | if (_Py_IsImmortal(op)) { | 422 | 6.91k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 6.91k | return; | 424 | 6.91k | } | 425 | 22.9k | _Py_DECREF_STAT_INC(); | 426 | 22.9k | if (--op->ob_refcnt == 0) { | 427 | 0 | _Py_Dealloc(op); | 428 | 0 | } | 429 | 22.9k | } |
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 | 111k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 111k | if (_Py_IsImmortal(op)) { | 422 | 4.53k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 4.53k | return; | 424 | 4.53k | } | 425 | 107k | _Py_DECREF_STAT_INC(); | 426 | 107k | if (--op->ob_refcnt == 0) { | 427 | 104k | _Py_Dealloc(op); | 428 | 104k | } | 429 | 107k | } |
Line | Count | Source | 418 | 158k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 158k | if (_Py_IsImmortal(op)) { | 422 | 659 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 659 | return; | 424 | 659 | } | 425 | 158k | _Py_DECREF_STAT_INC(); | 426 | 158k | if (--op->ob_refcnt == 0) { | 427 | 771 | _Py_Dealloc(op); | 428 | 771 | } | 429 | 158k | } |
Unexecuted instantiation: parser.c:Py_DECREF Line | Count | Source | 418 | 14.9k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 14.9k | if (_Py_IsImmortal(op)) { | 422 | 1.59k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 1.59k | return; | 424 | 1.59k | } | 425 | 13.3k | _Py_DECREF_STAT_INC(); | 426 | 13.3k | if (--op->ob_refcnt == 0) { | 427 | 13.3k | _Py_Dealloc(op); | 428 | 13.3k | } | 429 | 13.3k | } |
Unexecuted instantiation: layout.c:Py_DECREF Unexecuted instantiation: number.c:Py_DECREF Line | Count | Source | 418 | 63.2k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 63.2k | if (_Py_IsImmortal(op)) { | 422 | 790 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 790 | return; | 424 | 790 | } | 425 | 62.4k | _Py_DECREF_STAT_INC(); | 426 | 62.4k | if (--op->ob_refcnt == 0) { | 427 | 0 | _Py_Dealloc(op); | 428 | 0 | } | 429 | 62.4k | } |
Unexecuted instantiation: string.c:Py_DECREF Line | Count | Source | 418 | 3.48k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 3.48k | if (_Py_IsImmortal(op)) { | 422 | 52 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 52 | return; | 424 | 52 | } | 425 | 3.42k | _Py_DECREF_STAT_INC(); | 426 | 3.42k | if (--op->ob_refcnt == 0) { | 427 | 3.13k | _Py_Dealloc(op); | 428 | 3.13k | } | 429 | 3.42k | } |
Unexecuted instantiation: api.c:Py_DECREF Unexecuted instantiation: getcompiler.c:Py_DECREF Unexecuted instantiation: mystrtoul.c:Py_DECREF Unexecuted instantiation: token.c:Py_DECREF action_helpers.c:Py_DECREF Line | Count | Source | 418 | 221 | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 221 | if (_Py_IsImmortal(op)) { | 422 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 0 | return; | 424 | 0 | } | 425 | 221 | _Py_DECREF_STAT_INC(); | 426 | 221 | if (--op->ob_refcnt == 0) { | 427 | 221 | _Py_Dealloc(op); | 428 | 221 | } | 429 | 221 | } |
string_parser.c:Py_DECREF Line | Count | Source | 418 | 7.53k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 7.53k | if (_Py_IsImmortal(op)) { | 422 | 333 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 333 | return; | 424 | 333 | } | 425 | 7.20k | _Py_DECREF_STAT_INC(); | 426 | 7.20k | if (--op->ob_refcnt == 0) { | 427 | 7.20k | _Py_Dealloc(op); | 428 | 7.20k | } | 429 | 7.20k | } |
|
430 | 12.3G | #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 | | * On C++11 and newer, use "auto". On MSVC, check also _MSVC_LANG since |
483 | | * __cplusplus is 199711L unless the /Zc:__cplusplus flag is used. |
484 | | */ |
485 | | #ifdef _Py_TYPEOF |
486 | | #define Py_CLEAR(op) \ |
487 | 2.52G | do { \ |
488 | 2.52G | _Py_TYPEOF(&(op)) _tmp_op_ptr = &(op); \ |
489 | 2.52G | _Py_TYPEOF(op) _tmp_old_op = (*_tmp_op_ptr); \ |
490 | 2.52G | if (_tmp_old_op != _Py_NULL) { \ |
491 | 539M | *_tmp_op_ptr = _Py_NULL; \ |
492 | 539M | Py_DECREF(_tmp_old_op); \ |
493 | 539M | } \ |
494 | 2.52G | } while (0) |
495 | | #elif defined(__cplusplus) && (__cplusplus >= 201103L || _MSVC_LANG >= 201103L) |
496 | | #define Py_CLEAR(op) \ |
497 | | do { \ |
498 | | auto _tmp_op_ptr = &(op); \ |
499 | | auto _tmp_old_op = (*_tmp_op_ptr); \ |
500 | | if (_tmp_old_op != _Py_NULL) { \ |
501 | | *_tmp_op_ptr = _Py_NULL; \ |
502 | | Py_DECREF(_tmp_old_op); \ |
503 | | } \ |
504 | | } while (0) |
505 | | #else |
506 | | #define Py_CLEAR(op) \ |
507 | | do { \ |
508 | | PyObject **_tmp_op_ptr = _Py_CAST(PyObject**, &(op)); \ |
509 | | PyObject *_tmp_old_op = (*_tmp_op_ptr); \ |
510 | | if (_tmp_old_op != _Py_NULL) { \ |
511 | | PyObject *_null_ptr = _Py_NULL; \ |
512 | | memcpy(_tmp_op_ptr, &_null_ptr, sizeof(PyObject*)); \ |
513 | | Py_DECREF(_tmp_old_op); \ |
514 | | } \ |
515 | | } while (0) |
516 | | #endif |
517 | | |
518 | | |
519 | | /* Safely decref `dst` and set `dst` to `src`. |
520 | | * |
521 | | * As in case of Py_CLEAR "the obvious" code can be deadly: |
522 | | * |
523 | | * Py_DECREF(dst); |
524 | | * dst = src; |
525 | | * |
526 | | * The safe way is: |
527 | | * |
528 | | * Py_SETREF(dst, src); |
529 | | * |
530 | | * That arranges to set `dst` to `src` _before_ decref'ing, so that any code |
531 | | * triggered as a side-effect of `dst` getting torn down no longer believes |
532 | | * `dst` points to a valid object. |
533 | | * |
534 | | * Temporary variables are used to only evaluate macro arguments once and so |
535 | | * avoid the duplication of side effects. _Py_TYPEOF(), C++ auto, or memcpy() |
536 | | * is used to avoid a miscompilation caused by type punning. See Py_CLEAR() |
537 | | * comment for implementation details about type punning. |
538 | | * |
539 | | * The memcpy() implementation does not emit a compiler warning if 'src' has |
540 | | * not the same type than 'src': any pointer type is accepted for 'src'. |
541 | | */ |
542 | | #ifdef _Py_TYPEOF |
543 | | #define Py_SETREF(dst, src) \ |
544 | 166M | do { \ |
545 | 166M | _Py_TYPEOF(&(dst)) _tmp_dst_ptr = &(dst); \ |
546 | 166M | _Py_TYPEOF(dst) _tmp_old_dst = (*_tmp_dst_ptr); \ |
547 | 166M | *_tmp_dst_ptr = (src); \ |
548 | 166M | Py_DECREF(_tmp_old_dst); \ |
549 | 166M | } while (0) |
550 | | #elif defined(__cplusplus) && (__cplusplus >= 201103L || _MSVC_LANG >= 201103L) |
551 | | #define Py_SETREF(dst, src) \ |
552 | | do { \ |
553 | | auto _tmp_dst_ptr = &(dst); \ |
554 | | auto _tmp_old_dst = (*_tmp_dst_ptr); \ |
555 | | *_tmp_dst_ptr = (src); \ |
556 | | Py_DECREF(_tmp_old_dst); \ |
557 | | } while (0) |
558 | | #else |
559 | | #define Py_SETREF(dst, src) \ |
560 | | do { \ |
561 | | PyObject **_tmp_dst_ptr = _Py_CAST(PyObject**, &(dst)); \ |
562 | | PyObject *_tmp_old_dst = (*_tmp_dst_ptr); \ |
563 | | PyObject *_tmp_src = _PyObject_CAST(src); \ |
564 | | memcpy(_tmp_dst_ptr, &_tmp_src, sizeof(PyObject*)); \ |
565 | | Py_DECREF(_tmp_old_dst); \ |
566 | | } while (0) |
567 | | #endif |
568 | | |
569 | | /* Py_XSETREF() is a variant of Py_SETREF() that uses Py_XDECREF() instead of |
570 | | * Py_DECREF(). |
571 | | */ |
572 | | #ifdef _Py_TYPEOF |
573 | | #define Py_XSETREF(dst, src) \ |
574 | 241M | do { \ |
575 | 241M | _Py_TYPEOF(&(dst)) _tmp_dst_ptr = &(dst); \ |
576 | 241M | _Py_TYPEOF(dst) _tmp_old_dst = (*_tmp_dst_ptr); \ |
577 | 241M | *_tmp_dst_ptr = (src); \ |
578 | 241M | Py_XDECREF(_tmp_old_dst); \ |
579 | 241M | } while (0) |
580 | | #elif defined(__cplusplus) && (__cplusplus >= 201103L || _MSVC_LANG >= 201103L) |
581 | | #define Py_XSETREF(dst, src) \ |
582 | | do { \ |
583 | | auto _tmp_dst_ptr = &(dst); \ |
584 | | auto _tmp_old_dst = (*_tmp_dst_ptr); \ |
585 | | *_tmp_dst_ptr = (src); \ |
586 | | Py_XDECREF(_tmp_old_dst); \ |
587 | | } while (0) |
588 | | #else |
589 | | #define Py_XSETREF(dst, src) \ |
590 | | do { \ |
591 | | PyObject **_tmp_dst_ptr = _Py_CAST(PyObject**, &(dst)); \ |
592 | | PyObject *_tmp_old_dst = (*_tmp_dst_ptr); \ |
593 | | PyObject *_tmp_src = _PyObject_CAST(src); \ |
594 | | memcpy(_tmp_dst_ptr, &_tmp_src, sizeof(PyObject*)); \ |
595 | | Py_XDECREF(_tmp_old_dst); \ |
596 | | } while (0) |
597 | | #endif |
598 | | |
599 | | |
600 | | /* Function to use in case the object pointer can be NULL: */ |
601 | | static inline void Py_XINCREF(PyObject *op) |
602 | 2.25G | { |
603 | 2.25G | if (op != _Py_NULL) { |
604 | 1.52G | Py_INCREF(op); |
605 | 1.52G | } |
606 | 2.25G | } Unexecuted instantiation: bytesobject.c:Py_XINCREF Unexecuted instantiation: call.c:Py_XINCREF Line | Count | Source | 602 | 116M | { | 603 | 116M | if (op != _Py_NULL) { | 604 | 25.6M | Py_INCREF(op); | 605 | 25.6M | } | 606 | 116M | } |
Unexecuted instantiation: genericaliasobject.c:Py_XINCREF Unexecuted instantiation: floatobject.c:Py_XINCREF Line | Count | Source | 602 | 185M | { | 603 | 185M | if (op != _Py_NULL) { | 604 | 185M | Py_INCREF(op); | 605 | 185M | } | 606 | 185M | } |
Unexecuted instantiation: longobject.c:Py_XINCREF Line | Count | Source | 602 | 936M | { | 603 | 936M | if (op != _Py_NULL) { | 604 | 719M | Py_INCREF(op); | 605 | 719M | } | 606 | 936M | } |
memoryobject.c:Py_XINCREF Line | Count | Source | 602 | 101 | { | 603 | 101 | if (op != _Py_NULL) { | 604 | 101 | Py_INCREF(op); | 605 | 101 | } | 606 | 101 | } |
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 | 602 | 128 | { | 603 | 128 | if (op != _Py_NULL) { | 604 | 8 | Py_INCREF(op); | 605 | 8 | } | 606 | 128 | } |
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 | 602 | 470k | { | 603 | 470k | if (op != _Py_NULL) { | 604 | 232k | Py_INCREF(op); | 605 | 232k | } | 606 | 470k | } |
typevarobject.c:Py_XINCREF Line | Count | Source | 602 | 1.20k | { | 603 | 1.20k | if (op != _Py_NULL) { | 604 | 245 | Py_INCREF(op); | 605 | 245 | } | 606 | 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 | 602 | 826k | { | 603 | 826k | if (op != _Py_NULL) { | 604 | 381k | Py_INCREF(op); | 605 | 381k | } | 606 | 826k | } |
Unexecuted instantiation: _warnings.c:Py_XINCREF Line | Count | Source | 602 | 1.21k | { | 603 | 1.21k | if (op != _Py_NULL) { | 604 | 1.21k | Py_INCREF(op); | 605 | 1.21k | } | 606 | 1.21k | } |
Line | Count | Source | 602 | 365M | { | 603 | 365M | if (op != _Py_NULL) { | 604 | 169M | Py_INCREF(op); | 605 | 169M | } | 606 | 365M | } |
Unexecuted instantiation: codecs.c:Py_XINCREF Unexecuted instantiation: codegen.c:Py_XINCREF Line | Count | Source | 602 | 7.40k | { | 603 | 7.40k | if (op != _Py_NULL) { | 604 | 2.63k | Py_INCREF(op); | 605 | 2.63k | } | 606 | 7.40k | } |
Line | Count | Source | 602 | 241k | { | 603 | 241k | if (op != _Py_NULL) { | 604 | 0 | Py_INCREF(op); | 605 | 0 | } | 606 | 241k | } |
Line | Count | Source | 602 | 41.2M | { | 603 | 41.2M | if (op != _Py_NULL) { | 604 | 41.2M | Py_INCREF(op); | 605 | 41.2M | } | 606 | 41.2M | } |
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 | 602 | 28.9k | { | 603 | 28.9k | if (op != _Py_NULL) { | 604 | 23.4k | Py_INCREF(op); | 605 | 23.4k | } | 606 | 28.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 | 602 | 1.00M | { | 603 | 1.00M | if (op != _Py_NULL) { | 604 | 1.00M | Py_INCREF(op); | 605 | 1.00M | } | 606 | 1.00M | } |
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 | 602 | 4.92M | { | 603 | 4.92M | if (op != _Py_NULL) { | 604 | 4.48M | Py_INCREF(op); | 605 | 4.48M | } | 606 | 4.92M | } |
Unexecuted instantiation: symtable.c:Py_XINCREF Line | Count | Source | 602 | 21.3k | { | 603 | 21.3k | if (op != _Py_NULL) { | 604 | 21.3k | Py_INCREF(op); | 605 | 21.3k | } | 606 | 21.3k | } |
Unexecuted instantiation: thread.c:Py_XINCREF Line | Count | Source | 602 | 129M | { | 603 | 129M | if (op != _Py_NULL) { | 604 | 88.8M | Py_INCREF(op); | 605 | 88.8M | } | 606 | 129M | } |
Unexecuted instantiation: tracemalloc.c:Py_XINCREF Unexecuted instantiation: typecache.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 Line | Count | Source | 602 | 108 | { | 603 | 108 | if (op != _Py_NULL) { | 604 | 29 | Py_INCREF(op); | 605 | 29 | } | 606 | 108 | } |
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 | 602 | 86.9k | { | 603 | 86.9k | if (op != _Py_NULL) { | 604 | 86.9k | Py_INCREF(op); | 605 | 86.9k | } | 606 | 86.9k | } |
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 | 602 | 162 | { | 603 | 162 | if (op != _Py_NULL) { | 604 | 0 | Py_INCREF(op); | 605 | 0 | } | 606 | 162 | } |
Unexecuted instantiation: _codecsmodule.c:Py_XINCREF _collectionsmodule.c:Py_XINCREF Line | Count | Source | 602 | 15.7k | { | 603 | 15.7k | if (op != _Py_NULL) { | 604 | 15.7k | Py_INCREF(op); | 605 | 15.7k | } | 606 | 15.7k | } |
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 | 602 | 5.78k | { | 603 | 5.78k | if (op != _Py_NULL) { | 604 | 5.78k | Py_INCREF(op); | 605 | 5.78k | } | 606 | 5.78k | } |
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 | 602 | 160 | { | 603 | 160 | if (op != _Py_NULL) { | 604 | 80 | Py_INCREF(op); | 605 | 80 | } | 606 | 160 | } |
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 | 602 | 19.7k | { | 603 | 19.7k | if (op != _Py_NULL) { | 604 | 19.7k | Py_INCREF(op); | 605 | 19.7k | } | 606 | 19.7k | } |
_functoolsmodule.c:Py_XINCREF Line | Count | Source | 602 | 44 | { | 603 | 44 | if (op != _Py_NULL) { | 604 | 0 | Py_INCREF(op); | 605 | 0 | } | 606 | 44 | } |
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 Unexecuted instantiation: getpath.c:Py_XINCREF Unexecuted instantiation: frozen.c:Py_XINCREF Unexecuted instantiation: getbuildinfo.c:Py_XINCREF Unexecuted instantiation: peg_api.c:Py_XINCREF Unexecuted instantiation: reader.c:Py_XINCREF Unexecuted instantiation: source.c:Py_XINCREF Unexecuted instantiation: helpers.c:Py_XINCREF Unexecuted instantiation: myreadline.c:Py_XINCREF Line | Count | Source | 602 | 97.4M | { | 603 | 97.4M | if (op != _Py_NULL) { | 604 | 95.2M | Py_INCREF(op); | 605 | 95.2M | } | 606 | 97.4M | } |
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 | 602 | 20.5M | { | 603 | 20.5M | if (op != _Py_NULL) { | 604 | 3.70M | Py_INCREF(op); | 605 | 3.70M | } | 606 | 20.5M | } |
Unexecuted instantiation: classobject.c:Py_XINCREF Line | Count | Source | 602 | 3.45k | { | 603 | 3.45k | if (op != _Py_NULL) { | 604 | 3.45k | Py_INCREF(op); | 605 | 3.45k | } | 606 | 3.45k | } |
Unexecuted instantiation: complexobject.c:Py_XINCREF Line | Count | Source | 602 | 113k | { | 603 | 113k | if (op != _Py_NULL) { | 604 | 107k | Py_INCREF(op); | 605 | 107k | } | 606 | 113k | } |
Unexecuted instantiation: enumobject.c:Py_XINCREF Line | Count | Source | 602 | 72.6k | { | 603 | 72.6k | if (op != _Py_NULL) { | 604 | 0 | Py_INCREF(op); | 605 | 0 | } | 606 | 72.6k | } |
Unexecuted instantiation: fileobject.c:Py_XINCREF Line | Count | Source | 602 | 19.3M | { | 603 | 19.3M | if (op != _Py_NULL) { | 604 | 19.3M | Py_INCREF(op); | 605 | 19.3M | } | 606 | 19.3M | } |
Line | Count | Source | 602 | 74.1k | { | 603 | 74.1k | if (op != _Py_NULL) { | 604 | 51.7k | Py_INCREF(op); | 605 | 51.7k | } | 606 | 74.1k | } |
Unexecuted instantiation: interpolationobject.c:Py_XINCREF Line | Count | Source | 602 | 328k | { | 603 | 328k | if (op != _Py_NULL) { | 604 | 328k | Py_INCREF(op); | 605 | 328k | } | 606 | 328k | } |
lazyimportobject.c:Py_XINCREF Line | Count | Source | 602 | 1.12k | { | 603 | 1.12k | if (op != _Py_NULL) { | 604 | 727 | Py_INCREF(op); | 605 | 727 | } | 606 | 1.12k | } |
Unexecuted instantiation: odictobject.c:Py_XINCREF methodobject.c:Py_XINCREF Line | Count | Source | 602 | 332M | { | 603 | 332M | if (op != _Py_NULL) { | 604 | 166M | Py_INCREF(op); | 605 | 166M | } | 606 | 332M | } |
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 Unexecuted instantiation: pegen.c:Py_XINCREF Unexecuted instantiation: pegen_errors.c:Py_XINCREF Unexecuted instantiation: parser.c:Py_XINCREF Unexecuted instantiation: lexer.c:Py_XINCREF Unexecuted instantiation: layout.c:Py_XINCREF Unexecuted instantiation: number.c:Py_XINCREF Unexecuted instantiation: state.c:Py_XINCREF Unexecuted instantiation: string.c:Py_XINCREF Unexecuted instantiation: decoder.c:Py_XINCREF Line | Count | Source | 602 | 125k | { | 603 | 125k | if (op != _Py_NULL) { | 604 | 63.2k | Py_INCREF(op); | 605 | 63.2k | } | 606 | 125k | } |
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 |
607 | | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000 |
608 | 2.25G | # define Py_XINCREF(op) Py_XINCREF(_PyObject_CAST(op)) |
609 | | #endif |
610 | | |
611 | | static inline void Py_XDECREF(PyObject *op) |
612 | 8.02G | { |
613 | 8.02G | if (op != _Py_NULL) { |
614 | 7.01G | Py_DECREF(op); |
615 | 7.01G | } |
616 | 8.02G | } Line | Count | Source | 612 | 45 | { | 613 | 45 | if (op != _Py_NULL) { | 614 | 37 | Py_DECREF(op); | 615 | 37 | } | 616 | 45 | } |
Unexecuted instantiation: call.c:Py_XDECREF Line | Count | Source | 612 | 131M | { | 613 | 131M | if (op != _Py_NULL) { | 614 | 64.0M | Py_DECREF(op); | 615 | 64.0M | } | 616 | 131M | } |
genericaliasobject.c:Py_XDECREF Line | Count | Source | 612 | 556 | { | 613 | 556 | if (op != _Py_NULL) { | 614 | 296 | Py_DECREF(op); | 615 | 296 | } | 616 | 556 | } |
Line | Count | Source | 612 | 757k | { | 613 | 757k | if (op != _Py_NULL) { | 614 | 473k | Py_DECREF(op); | 615 | 473k | } | 616 | 757k | } |
Line | Count | Source | 612 | 2.16G | { | 613 | 2.16G | if (op != _Py_NULL) { | 614 | 2.12G | Py_DECREF(op); | 615 | 2.12G | } | 616 | 2.16G | } |
Line | Count | Source | 612 | 20.7M | { | 613 | 20.7M | if (op != _Py_NULL) { | 614 | 9.53M | Py_DECREF(op); | 615 | 9.53M | } | 616 | 20.7M | } |
Line | Count | Source | 612 | 335M | { | 613 | 335M | if (op != _Py_NULL) { | 614 | 329M | Py_DECREF(op); | 615 | 329M | } | 616 | 335M | } |
Unexecuted instantiation: memoryobject.c:Py_XDECREF moduleobject.c:Py_XDECREF Line | Count | Source | 612 | 17.4k | { | 613 | 17.4k | if (op != _Py_NULL) { | 614 | 9.40k | Py_DECREF(op); | 615 | 9.40k | } | 616 | 17.4k | } |
Line | Count | Source | 612 | 9.36M | { | 613 | 9.36M | if (op != _Py_NULL) { | 614 | 43.7k | Py_DECREF(op); | 615 | 43.7k | } | 616 | 9.36M | } |
Unexecuted instantiation: obmalloc.c:Py_XDECREF Unexecuted instantiation: picklebufobject.c:Py_XDECREF Line | Count | Source | 612 | 111 | { | 613 | 111 | if (op != _Py_NULL) { | 614 | 111 | Py_DECREF(op); | 615 | 111 | } | 616 | 111 | } |
Unexecuted instantiation: sentinelobject.c:Py_XDECREF Line | Count | Source | 612 | 122k | { | 613 | 122k | if (op != _Py_NULL) { | 614 | 396 | Py_DECREF(op); | 615 | 396 | } | 616 | 122k | } |
Unexecuted instantiation: sliceobject.c:Py_XDECREF Line | Count | Source | 612 | 4.70M | { | 613 | 4.70M | if (op != _Py_NULL) { | 614 | 4.70M | Py_DECREF(op); | 615 | 4.70M | } | 616 | 4.70M | } |
Unexecuted instantiation: templateobject.c:Py_XDECREF Line | Count | Source | 612 | 3.79G | { | 613 | 3.79G | if (op != _Py_NULL) { | 614 | 3.78G | Py_DECREF(op); | 615 | 3.78G | } | 616 | 3.79G | } |
Line | Count | Source | 612 | 28.9M | { | 613 | 28.9M | if (op != _Py_NULL) { | 614 | 8.92M | Py_DECREF(op); | 615 | 8.92M | } | 616 | 28.9M | } |
typevarobject.c:Py_XDECREF Line | Count | Source | 612 | 600 | { | 613 | 600 | if (op != _Py_NULL) { | 614 | 428 | Py_DECREF(op); | 615 | 428 | } | 616 | 600 | } |
unicode_format.c:Py_XDECREF Line | Count | Source | 612 | 21.4M | { | 613 | 21.4M | if (op != _Py_NULL) { | 614 | 47.3k | Py_DECREF(op); | 615 | 47.3k | } | 616 | 21.4M | } |
unicode_formatter.c:Py_XDECREF Line | Count | Source | 612 | 27.9M | { | 613 | 27.9M | if (op != _Py_NULL) { | 614 | 22.3M | Py_DECREF(op); | 615 | 22.3M | } | 616 | 27.9M | } |
unicode_writer.c:Py_XDECREF Line | Count | Source | 612 | 71.0M | { | 613 | 71.0M | if (op != _Py_NULL) { | 614 | 22.0M | Py_DECREF(op); | 615 | 22.0M | } | 616 | 71.0M | } |
Unexecuted instantiation: unicodectype.c:Py_XDECREF unicodeobject.c:Py_XDECREF Line | Count | Source | 612 | 103M | { | 613 | 103M | if (op != _Py_NULL) { | 614 | 52.8M | Py_DECREF(op); | 615 | 52.8M | } | 616 | 103M | } |
Line | Count | Source | 612 | 2.14k | { | 613 | 2.14k | if (op != _Py_NULL) { | 614 | 334 | Py_DECREF(op); | 615 | 334 | } | 616 | 2.14k | } |
weakrefobject.c:Py_XDECREF Line | Count | Source | 612 | 824k | { | 613 | 824k | if (op != _Py_NULL) { | 614 | 351k | Py_DECREF(op); | 615 | 351k | } | 616 | 824k | } |
Line | Count | Source | 612 | 6.07M | { | 613 | 6.07M | if (op != _Py_NULL) { | 614 | 5.30M | Py_DECREF(op); | 615 | 5.30M | } | 616 | 6.07M | } |
Line | Count | Source | 612 | 15.9M | { | 613 | 15.9M | if (op != _Py_NULL) { | 614 | 529k | Py_DECREF(op); | 615 | 529k | } | 616 | 15.9M | } |
Line | Count | Source | 612 | 7.95M | { | 613 | 7.95M | if (op != _Py_NULL) { | 614 | 135k | Py_DECREF(op); | 615 | 135k | } | 616 | 7.95M | } |
Line | Count | Source | 612 | 135k | { | 613 | 135k | if (op != _Py_NULL) { | 614 | 90.4k | Py_DECREF(op); | 615 | 90.4k | } | 616 | 135k | } |
Unexecuted instantiation: codegen.c:Py_XDECREF Line | Count | Source | 612 | 11.4k | { | 613 | 11.4k | if (op != _Py_NULL) { | 614 | 7.16k | Py_DECREF(op); | 615 | 7.16k | } | 616 | 11.4k | } |
Unexecuted instantiation: context.c:Py_XDECREF Line | Count | Source | 612 | 271M | { | 613 | 271M | if (op != _Py_NULL) { | 614 | 30.2M | Py_DECREF(op); | 615 | 30.2M | } | 616 | 271M | } |
Unexecuted instantiation: flowgraph.c:Py_XDECREF Unexecuted instantiation: frame.c:Py_XDECREF Line | Count | Source | 612 | 108 | { | 613 | 108 | if (op != _Py_NULL) { | 614 | 108 | Py_DECREF(op); | 615 | 108 | } | 616 | 108 | } |
Line | Count | Source | 612 | 219k | { | 613 | 219k | if (op != _Py_NULL) { | 614 | 3.41k | Py_DECREF(op); | 615 | 3.41k | } | 616 | 219k | } |
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 | 612 | 8.62M | { | 613 | 8.62M | if (op != _Py_NULL) { | 614 | 7.23M | Py_DECREF(op); | 615 | 7.23M | } | 616 | 8.62M | } |
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 | 612 | 8.52k | { | 613 | 8.52k | if (op != _Py_NULL) { | 614 | 0 | Py_DECREF(op); | 615 | 0 | } | 616 | 8.52k | } |
Line | Count | Source | 612 | 41.1k | { | 613 | 41.1k | if (op != _Py_NULL) { | 614 | 41.1k | Py_DECREF(op); | 615 | 41.1k | } | 616 | 41.1k | } |
Unexecuted instantiation: legacy_tracing.c:Py_XDECREF Unexecuted instantiation: lock.c:Py_XDECREF Line | Count | Source | 612 | 1.62M | { | 613 | 1.62M | if (op != _Py_NULL) { | 614 | 1.62M | Py_DECREF(op); | 615 | 1.62M | } | 616 | 1.62M | } |
Line | Count | Source | 612 | 16.3k | { | 613 | 16.3k | if (op != _Py_NULL) { | 614 | 16.3k | Py_DECREF(op); | 615 | 16.3k | } | 616 | 16.3k | } |
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 | 612 | 222 | { | 613 | 222 | if (op != _Py_NULL) { | 614 | 222 | Py_DECREF(op); | 615 | 222 | } | 616 | 222 | } |
Unexecuted instantiation: pymath.c:Py_XDECREF Unexecuted instantiation: pystate.c:Py_XDECREF Line | Count | Source | 612 | 1.75k | { | 613 | 1.75k | if (op != _Py_NULL) { | 614 | 1.16k | Py_DECREF(op); | 615 | 1.16k | } | 616 | 1.75k | } |
Unexecuted instantiation: pytime.c:Py_XDECREF Unexecuted instantiation: qsbr.c:Py_XDECREF Unexecuted instantiation: bootstrap_hash.c:Py_XDECREF Line | Count | Source | 612 | 4.33M | { | 613 | 4.33M | if (op != _Py_NULL) { | 614 | 2.42M | Py_DECREF(op); | 615 | 2.42M | } | 616 | 4.33M | } |
Unexecuted instantiation: slots.c:Py_XDECREF Unexecuted instantiation: slots_generated.c:Py_XDECREF structmember.c:Py_XDECREF Line | Count | Source | 612 | 4.40M | { | 613 | 4.40M | if (op != _Py_NULL) { | 614 | 1.78k | Py_DECREF(op); | 615 | 1.78k | } | 616 | 4.40M | } |
Line | Count | Source | 612 | 106k | { | 613 | 106k | if (op != _Py_NULL) { | 614 | 79.5k | Py_DECREF(op); | 615 | 79.5k | } | 616 | 106k | } |
Line | Count | Source | 612 | 1.69M | { | 613 | 1.69M | if (op != _Py_NULL) { | 614 | 1.27M | Py_DECREF(op); | 615 | 1.27M | } | 616 | 1.69M | } |
Unexecuted instantiation: thread.c:Py_XDECREF Line | Count | Source | 612 | 258M | { | 613 | 258M | if (op != _Py_NULL) { | 614 | 177M | Py_DECREF(op); | 615 | 177M | } | 616 | 258M | } |
Unexecuted instantiation: tracemalloc.c:Py_XDECREF Unexecuted instantiation: typecache.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 atexitmodule.c:Py_XDECREF Line | Count | Source | 612 | 20 | { | 613 | 20 | if (op != _Py_NULL) { | 614 | 20 | Py_DECREF(op); | 615 | 20 | } | 616 | 20 | } |
Unexecuted instantiation: faulthandler.c:Py_XDECREF Line | Count | Source | 612 | 820k | { | 613 | 820k | if (op != _Py_NULL) { | 614 | 696k | Py_DECREF(op); | 615 | 696k | } | 616 | 820k | } |
signalmodule.c:Py_XDECREF Line | Count | Source | 612 | 2.36k | { | 613 | 2.36k | if (op != _Py_NULL) { | 614 | 0 | Py_DECREF(op); | 615 | 0 | } | 616 | 2.36k | } |
Unexecuted instantiation: _tracemalloc.c:Py_XDECREF Unexecuted instantiation: _suggestions.c:Py_XDECREF _datetimemodule.c:Py_XDECREF Line | Count | Source | 612 | 18.8k | { | 613 | 18.8k | if (op != _Py_NULL) { | 614 | 18.7k | Py_DECREF(op); | 615 | 18.7k | } | 616 | 18.8k | } |
Unexecuted instantiation: _codecsmodule.c:Py_XDECREF _collectionsmodule.c:Py_XDECREF Line | Count | Source | 612 | 15.7k | { | 613 | 15.7k | if (op != _Py_NULL) { | 614 | 0 | Py_DECREF(op); | 615 | 0 | } | 616 | 15.7k | } |
Unexecuted instantiation: errnomodule.c:Py_XDECREF Line | Count | Source | 612 | 22 | { | 613 | 22 | if (op != _Py_NULL) { | 614 | 11 | Py_DECREF(op); | 615 | 11 | } | 616 | 22 | } |
Line | Count | Source | 612 | 50.8k | { | 613 | 50.8k | if (op != _Py_NULL) { | 614 | 50.8k | Py_DECREF(op); | 615 | 50.8k | } | 616 | 50.8k | } |
Unexecuted instantiation: fileio.c:Py_XDECREF Line | Count | Source | 612 | 46.8k | { | 613 | 46.8k | if (op != _Py_NULL) { | 614 | 46.8k | Py_DECREF(op); | 615 | 46.8k | } | 616 | 46.8k | } |
Line | Count | Source | 612 | 46.8k | { | 613 | 46.8k | if (op != _Py_NULL) { | 614 | 5.78k | Py_DECREF(op); | 615 | 5.78k | } | 616 | 46.8k | } |
Line | Count | Source | 612 | 32.4k | { | 613 | 32.4k | if (op != _Py_NULL) { | 614 | 223 | Py_DECREF(op); | 615 | 223 | } | 616 | 32.4k | } |
Unexecuted instantiation: stringio.c:Py_XDECREF itertoolsmodule.c:Py_XDECREF Line | Count | Source | 612 | 32.7k | { | 613 | 32.7k | if (op != _Py_NULL) { | 614 | 5.01k | Py_DECREF(op); | 615 | 5.01k | } | 616 | 32.7k | } |
Line | Count | Source | 612 | 61.0M | { | 613 | 61.0M | if (op != _Py_NULL) { | 614 | 61.0M | Py_DECREF(op); | 615 | 61.0M | } | 616 | 61.0M | } |
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 | 612 | 222k | { | 613 | 222k | if (op != _Py_NULL) { | 614 | 202k | Py_DECREF(op); | 615 | 202k | } | 616 | 222k | } |
_functoolsmodule.c:Py_XDECREF Line | Count | Source | 612 | 5.70k | { | 613 | 5.70k | if (op != _Py_NULL) { | 614 | 0 | Py_DECREF(op); | 615 | 0 | } | 616 | 5.70k | } |
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 Line | Count | Source | 612 | 296 | { | 613 | 296 | if (op != _Py_NULL) { | 614 | 296 | Py_DECREF(op); | 615 | 296 | } | 616 | 296 | } |
Unexecuted instantiation: frozen.c:Py_XDECREF Unexecuted instantiation: getbuildinfo.c:Py_XDECREF Unexecuted instantiation: peg_api.c:Py_XDECREF Line | Count | Source | 612 | 130k | { | 613 | 130k | if (op != _Py_NULL) { | 614 | 24 | Py_DECREF(op); | 615 | 24 | } | 616 | 130k | } |
Unexecuted instantiation: source.c:Py_XDECREF Line | Count | Source | 612 | 12.6k | { | 613 | 12.6k | if (op != _Py_NULL) { | 614 | 11.8k | Py_DECREF(op); | 615 | 11.8k | } | 616 | 12.6k | } |
Unexecuted instantiation: myreadline.c:Py_XDECREF Line | Count | Source | 612 | 6.00M | { | 613 | 6.00M | if (op != _Py_NULL) { | 614 | 222k | Py_DECREF(op); | 615 | 222k | } | 616 | 6.00M | } |
Unexecuted instantiation: boolobject.c:Py_XDECREF Unexecuted instantiation: bytes_methods.c:Py_XDECREF bytearrayobject.c:Py_XDECREF Line | Count | Source | 612 | 21.5M | { | 613 | 21.5M | if (op != _Py_NULL) { | 614 | 21.5M | Py_DECREF(op); | 615 | 21.5M | } | 616 | 21.5M | } |
Line | Count | Source | 612 | 14 | { | 613 | 14 | if (op != _Py_NULL) { | 614 | 14 | Py_DECREF(op); | 615 | 14 | } | 616 | 14 | } |
Line | Count | Source | 612 | 20.5M | { | 613 | 20.5M | if (op != _Py_NULL) { | 614 | 9.77M | Py_DECREF(op); | 615 | 9.77M | } | 616 | 20.5M | } |
Line | Count | Source | 612 | 43.0M | { | 613 | 43.0M | if (op != _Py_NULL) { | 614 | 43.0M | Py_DECREF(op); | 615 | 43.0M | } | 616 | 43.0M | } |
Line | Count | Source | 612 | 979k | { | 613 | 979k | if (op != _Py_NULL) { | 614 | 806k | Py_DECREF(op); | 615 | 806k | } | 616 | 979k | } |
Unexecuted instantiation: complexobject.c:Py_XDECREF Line | Count | Source | 612 | 30.1M | { | 613 | 30.1M | if (op != _Py_NULL) { | 614 | 21.0M | Py_DECREF(op); | 615 | 21.0M | } | 616 | 30.1M | } |
Line | Count | Source | 612 | 36.2M | { | 613 | 36.2M | if (op != _Py_NULL) { | 614 | 24.1M | Py_DECREF(op); | 615 | 24.1M | } | 616 | 36.2M | } |
Line | Count | Source | 612 | 36.3k | { | 613 | 36.3k | if (op != _Py_NULL) { | 614 | 0 | Py_DECREF(op); | 615 | 0 | } | 616 | 36.3k | } |
Unexecuted instantiation: fileobject.c:Py_XDECREF Unexecuted instantiation: frameobject.c:Py_XDECREF Line | Count | Source | 612 | 77.9k | { | 613 | 77.9k | if (op != _Py_NULL) { | 614 | 61.0k | Py_DECREF(op); | 615 | 61.0k | } | 616 | 77.9k | } |
Unexecuted instantiation: interpolationobject.c:Py_XDECREF Line | Count | Source | 612 | 3.21M | { | 613 | 3.21M | if (op != _Py_NULL) { | 614 | 656k | Py_DECREF(op); | 615 | 656k | } | 616 | 3.21M | } |
lazyimportobject.c:Py_XDECREF Line | Count | Source | 612 | 507 | { | 613 | 507 | if (op != _Py_NULL) { | 614 | 90 | Py_DECREF(op); | 615 | 90 | } | 616 | 507 | } |
Line | Count | Source | 612 | 198k | { | 613 | 198k | if (op != _Py_NULL) { | 614 | 61.6k | Py_DECREF(op); | 615 | 61.6k | } | 616 | 198k | } |
methodobject.c:Py_XDECREF Line | Count | Source | 612 | 499M | { | 613 | 499M | if (op != _Py_NULL) { | 614 | 176M | Py_DECREF(op); | 615 | 176M | } | 616 | 499M | } |
Unexecuted instantiation: namespaceobject.c:Py_XDECREF Unexecuted instantiation: _contextvars.c:Py_XDECREF Line | Count | Source | 612 | 735 | { | 613 | 735 | if (op != _Py_NULL) { | 614 | 490 | Py_DECREF(op); | 615 | 490 | } | 616 | 735 | } |
Python-tokenize.c:Py_XDECREF Line | Count | Source | 612 | 340 | { | 613 | 340 | if (op != _Py_NULL) { | 614 | 320 | Py_DECREF(op); | 615 | 320 | } | 616 | 340 | } |
Unexecuted instantiation: asdl.c:Py_XDECREF Line | Count | Source | 612 | 29.8k | { | 613 | 29.8k | if (op != _Py_NULL) { | 614 | 29.8k | Py_DECREF(op); | 615 | 29.8k | } | 616 | 29.8k | } |
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 | 612 | 116k | { | 613 | 116k | if (op != _Py_NULL) { | 614 | 1.51k | Py_DECREF(op); | 615 | 1.51k | } | 616 | 116k | } |
pegen_errors.c:Py_XDECREF Line | Count | Source | 612 | 1.97k | { | 613 | 1.97k | if (op != _Py_NULL) { | 614 | 1.31k | Py_DECREF(op); | 615 | 1.31k | } | 616 | 1.97k | } |
Unexecuted instantiation: parser.c:Py_XDECREF Unexecuted instantiation: lexer.c:Py_XDECREF Unexecuted instantiation: layout.c:Py_XDECREF Unexecuted instantiation: number.c:Py_XDECREF Line | Count | Source | 612 | 130k | { | 613 | 130k | if (op != _Py_NULL) { | 614 | 63.2k | Py_DECREF(op); | 615 | 63.2k | } | 616 | 130k | } |
Unexecuted instantiation: string.c:Py_XDECREF Unexecuted instantiation: decoder.c:Py_XDECREF Line | Count | Source | 612 | 125k | { | 613 | 125k | if (op != _Py_NULL) { | 614 | 0 | Py_DECREF(op); | 615 | 0 | } | 616 | 125k | } |
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 Unexecuted instantiation: string_parser.c:Py_XDECREF |
617 | | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000 |
618 | 8.02G | # define Py_XDECREF(op) Py_XDECREF(_PyObject_CAST(op)) |
619 | | #endif |
620 | | |
621 | | // Create a new strong reference to an object: |
622 | | // increment the reference count of the object and return the object. |
623 | | PyAPI_FUNC(PyObject*) Py_NewRef(PyObject *obj); |
624 | | |
625 | | // Similar to Py_NewRef(), but the object can be NULL. |
626 | | PyAPI_FUNC(PyObject*) Py_XNewRef(PyObject *obj); |
627 | | |
628 | | static inline PyObject* _Py_NewRef(PyObject *obj) |
629 | 8.04G | { |
630 | 8.04G | Py_INCREF(obj); |
631 | 8.04G | return obj; |
632 | 8.04G | } Line | Count | Source | 629 | 770k | { | 630 | 770k | Py_INCREF(obj); | 631 | 770k | return obj; | 632 | 770k | } |
Line | Count | Source | 629 | 27.1M | { | 630 | 27.1M | Py_INCREF(obj); | 631 | 27.1M | return obj; | 632 | 27.1M | } |
Line | Count | Source | 629 | 167M | { | 630 | 167M | Py_INCREF(obj); | 631 | 167M | return obj; | 632 | 167M | } |
genericaliasobject.c:_Py_NewRef Line | Count | Source | 629 | 1.99k | { | 630 | 1.99k | Py_INCREF(obj); | 631 | 1.99k | return obj; | 632 | 1.99k | } |
Unexecuted instantiation: floatobject.c:_Py_NewRef Line | Count | Source | 629 | 1.49G | { | 630 | 1.49G | Py_INCREF(obj); | 631 | 1.49G | return obj; | 632 | 1.49G | } |
Line | Count | Source | 629 | 18.5M | { | 630 | 18.5M | Py_INCREF(obj); | 631 | 18.5M | return obj; | 632 | 18.5M | } |
Line | Count | Source | 629 | 678M | { | 630 | 678M | Py_INCREF(obj); | 631 | 678M | return obj; | 632 | 678M | } |
memoryobject.c:_Py_NewRef Line | Count | Source | 629 | 4.75M | { | 630 | 4.75M | Py_INCREF(obj); | 631 | 4.75M | return obj; | 632 | 4.75M | } |
moduleobject.c:_Py_NewRef Line | Count | Source | 629 | 7.59k | { | 630 | 7.59k | Py_INCREF(obj); | 631 | 7.59k | return obj; | 632 | 7.59k | } |
Line | Count | Source | 629 | 79.8M | { | 630 | 79.8M | Py_INCREF(obj); | 631 | 79.8M | return obj; | 632 | 79.8M | } |
Unexecuted instantiation: obmalloc.c:_Py_NewRef Unexecuted instantiation: picklebufobject.c:_Py_NewRef Line | Count | Source | 629 | 111 | { | 630 | 111 | Py_INCREF(obj); | 631 | 111 | return obj; | 632 | 111 | } |
sentinelobject.c:_Py_NewRef Line | Count | Source | 629 | 384 | { | 630 | 384 | Py_INCREF(obj); | 631 | 384 | return obj; | 632 | 384 | } |
Line | Count | Source | 629 | 18.6M | { | 630 | 18.6M | Py_INCREF(obj); | 631 | 18.6M | return obj; | 632 | 18.6M | } |
Line | Count | Source | 629 | 160M | { | 630 | 160M | Py_INCREF(obj); | 631 | 160M | return obj; | 632 | 160M | } |
Line | Count | Source | 629 | 96.2k | { | 630 | 96.2k | Py_INCREF(obj); | 631 | 96.2k | return obj; | 632 | 96.2k | } |
templateobject.c:_Py_NewRef Line | Count | Source | 629 | 22 | { | 630 | 22 | Py_INCREF(obj); | 631 | 22 | return obj; | 632 | 22 | } |
Line | Count | Source | 629 | 3.33G | { | 630 | 3.33G | Py_INCREF(obj); | 631 | 3.33G | return obj; | 632 | 3.33G | } |
Line | Count | Source | 629 | 133M | { | 630 | 133M | Py_INCREF(obj); | 631 | 133M | return obj; | 632 | 133M | } |
typevarobject.c:_Py_NewRef Line | Count | Source | 629 | 1.95k | { | 630 | 1.95k | Py_INCREF(obj); | 631 | 1.95k | return obj; | 632 | 1.95k | } |
unicode_format.c:_Py_NewRef Line | Count | Source | 629 | 7.22M | { | 630 | 7.22M | Py_INCREF(obj); | 631 | 7.22M | return obj; | 632 | 7.22M | } |
Unexecuted instantiation: unicode_formatter.c:_Py_NewRef unicode_writer.c:_Py_NewRef Line | Count | Source | 629 | 8.42M | { | 630 | 8.42M | Py_INCREF(obj); | 631 | 8.42M | return obj; | 632 | 8.42M | } |
Unexecuted instantiation: unicodectype.c:_Py_NewRef unicodeobject.c:_Py_NewRef Line | Count | Source | 629 | 126M | { | 630 | 126M | Py_INCREF(obj); | 631 | 126M | return obj; | 632 | 126M | } |
Line | Count | Source | 629 | 924 | { | 630 | 924 | Py_INCREF(obj); | 631 | 924 | return obj; | 632 | 924 | } |
Unexecuted instantiation: weakrefobject.c:_Py_NewRef Line | Count | Source | 629 | 2.23M | { | 630 | 2.23M | Py_INCREF(obj); | 631 | 2.23M | return obj; | 632 | 2.23M | } |
Line | Count | Source | 629 | 41.1M | { | 630 | 41.1M | Py_INCREF(obj); | 631 | 41.1M | return obj; | 632 | 41.1M | } |
Line | Count | Source | 629 | 833M | { | 630 | 833M | Py_INCREF(obj); | 631 | 833M | return obj; | 632 | 833M | } |
Line | Count | Source | 629 | 11.5M | { | 630 | 11.5M | Py_INCREF(obj); | 631 | 11.5M | return obj; | 632 | 11.5M | } |
Line | Count | Source | 629 | 2.45k | { | 630 | 2.45k | Py_INCREF(obj); | 631 | 2.45k | return obj; | 632 | 2.45k | } |
Line | Count | Source | 629 | 68.7k | { | 630 | 68.7k | Py_INCREF(obj); | 631 | 68.7k | return obj; | 632 | 68.7k | } |
Line | Count | Source | 629 | 66 | { | 630 | 66 | Py_INCREF(obj); | 631 | 66 | return obj; | 632 | 66 | } |
Line | Count | Source | 629 | 41.3M | { | 630 | 41.3M | Py_INCREF(obj); | 631 | 41.3M | return obj; | 632 | 41.3M | } |
Line | Count | Source | 629 | 65.6k | { | 630 | 65.6k | Py_INCREF(obj); | 631 | 65.6k | return obj; | 632 | 65.6k | } |
Line | Count | Source | 629 | 40.3M | { | 630 | 40.3M | Py_INCREF(obj); | 631 | 40.3M | return obj; | 632 | 40.3M | } |
Unexecuted instantiation: future.c:_Py_NewRef Unexecuted instantiation: gc.c:_Py_NewRef Unexecuted instantiation: gc_gil.c:_Py_NewRef Line | Count | Source | 629 | 2.74M | { | 630 | 2.74M | Py_INCREF(obj); | 631 | 2.74M | return obj; | 632 | 2.74M | } |
Unexecuted instantiation: ceval_gil.c:_Py_NewRef Unexecuted instantiation: hamt.c:_Py_NewRef Unexecuted instantiation: hashtable.c:_Py_NewRef Line | Count | Source | 629 | 6.24M | { | 630 | 6.24M | Py_INCREF(obj); | 631 | 6.24M | return obj; | 632 | 6.24M | } |
Line | Count | Source | 629 | 1.17k | { | 630 | 1.17k | Py_INCREF(obj); | 631 | 1.17k | return obj; | 632 | 1.17k | } |
Line | Count | Source | 629 | 629 | { | 630 | 629 | Py_INCREF(obj); | 631 | 629 | return obj; | 632 | 629 | } |
Unexecuted instantiation: instrumentation.c:_Py_NewRef Unexecuted instantiation: instruction_sequence.c:_Py_NewRef Line | Count | Source | 629 | 56.7k | { | 630 | 56.7k | Py_INCREF(obj); | 631 | 56.7k | return obj; | 632 | 56.7k | } |
Unexecuted instantiation: legacy_tracing.c:_Py_NewRef Unexecuted instantiation: lock.c:_Py_NewRef Line | Count | Source | 629 | 1.82M | { | 630 | 1.82M | Py_INCREF(obj); | 631 | 1.82M | return obj; | 632 | 1.82M | } |
Line | Count | Source | 629 | 18 | { | 630 | 18 | Py_INCREF(obj); | 631 | 18 | return obj; | 632 | 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 | 629 | 37 | { | 630 | 37 | Py_INCREF(obj); | 631 | 37 | return obj; | 632 | 37 | } |
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 | 629 | 120k | { | 630 | 120k | Py_INCREF(obj); | 631 | 120k | return obj; | 632 | 120k | } |
Line | Count | Source | 629 | 1.93k | { | 630 | 1.93k | Py_INCREF(obj); | 631 | 1.93k | return obj; | 632 | 1.93k | } |
Unexecuted instantiation: thread.c:_Py_NewRef Unexecuted instantiation: traceback.c:_Py_NewRef Unexecuted instantiation: tracemalloc.c:_Py_NewRef Unexecuted instantiation: typecache.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 | 629 | 10 | { | 630 | 10 | Py_INCREF(obj); | 631 | 10 | return obj; | 632 | 10 | } |
Unexecuted instantiation: faulthandler.c:_Py_NewRef Line | Count | Source | 629 | 1.12M | { | 630 | 1.12M | Py_INCREF(obj); | 631 | 1.12M | return obj; | 632 | 1.12M | } |
signalmodule.c:_Py_NewRef Line | Count | Source | 629 | 2.36k | { | 630 | 2.36k | Py_INCREF(obj); | 631 | 2.36k | return obj; | 632 | 2.36k | } |
Unexecuted instantiation: _tracemalloc.c:_Py_NewRef Unexecuted instantiation: _suggestions.c:_Py_NewRef _datetimemodule.c:_Py_NewRef Line | Count | Source | 629 | 18.7k | { | 630 | 18.7k | Py_INCREF(obj); | 631 | 18.7k | return obj; | 632 | 18.7k | } |
Unexecuted instantiation: _codecsmodule.c:_Py_NewRef _collectionsmodule.c:_Py_NewRef Line | Count | Source | 629 | 24.6M | { | 630 | 24.6M | Py_INCREF(obj); | 631 | 24.6M | return obj; | 632 | 24.6M | } |
Unexecuted instantiation: errnomodule.c:_Py_NewRef Line | Count | Source | 629 | 277 | { | 630 | 277 | Py_INCREF(obj); | 631 | 277 | return obj; | 632 | 277 | } |
Line | Count | Source | 629 | 94.7k | { | 630 | 94.7k | Py_INCREF(obj); | 631 | 94.7k | return obj; | 632 | 94.7k | } |
Unexecuted instantiation: fileio.c:_Py_NewRef Line | Count | Source | 629 | 71.8k | { | 630 | 71.8k | Py_INCREF(obj); | 631 | 71.8k | return obj; | 632 | 71.8k | } |
Line | Count | Source | 629 | 10.6k | { | 630 | 10.6k | Py_INCREF(obj); | 631 | 10.6k | return obj; | 632 | 10.6k | } |
Line | Count | Source | 629 | 769k | { | 630 | 769k | Py_INCREF(obj); | 631 | 769k | return obj; | 632 | 769k | } |
Line | Count | Source | 629 | 21.7k | { | 630 | 21.7k | Py_INCREF(obj); | 631 | 21.7k | return obj; | 632 | 21.7k | } |
itertoolsmodule.c:_Py_NewRef Line | Count | Source | 629 | 37.9k | { | 630 | 37.9k | Py_INCREF(obj); | 631 | 37.9k | return obj; | 632 | 37.9k | } |
Line | Count | Source | 629 | 109M | { | 630 | 109M | Py_INCREF(obj); | 631 | 109M | return obj; | 632 | 109M | } |
Unexecuted instantiation: _sysconfig.c:_Py_NewRef _threadmodule.c:_Py_NewRef Line | Count | Source | 629 | 80 | { | 630 | 80 | Py_INCREF(obj); | 631 | 80 | return obj; | 632 | 80 | } |
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 | 629 | 81.3k | { | 630 | 81.3k | Py_INCREF(obj); | 631 | 81.3k | return obj; | 632 | 81.3k | } |
_functoolsmodule.c:_Py_NewRef Line | Count | Source | 629 | 533k | { | 630 | 533k | Py_INCREF(obj); | 631 | 533k | return obj; | 632 | 533k | } |
Unexecuted instantiation: _localemodule.c:_Py_NewRef Unexecuted instantiation: _opcode.c:_Py_NewRef Line | Count | Source | 629 | 1.38M | { | 630 | 1.38M | Py_INCREF(obj); | 631 | 1.38M | return obj; | 632 | 1.38M | } |
Unexecuted instantiation: _stat.c:_Py_NewRef Unexecuted instantiation: symtablemodule.c:_Py_NewRef Unexecuted instantiation: pwdmodule.c:_Py_NewRef Line | Count | Source | 629 | 296 | { | 630 | 296 | Py_INCREF(obj); | 631 | 296 | return obj; | 632 | 296 | } |
Unexecuted instantiation: frozen.c:_Py_NewRef Unexecuted instantiation: getbuildinfo.c:_Py_NewRef Unexecuted instantiation: peg_api.c:_Py_NewRef Line | Count | Source | 629 | 20 | { | 630 | 20 | Py_INCREF(obj); | 631 | 20 | return obj; | 632 | 20 | } |
Unexecuted instantiation: source.c:_Py_NewRef Unexecuted instantiation: helpers.c:_Py_NewRef Unexecuted instantiation: myreadline.c:_Py_NewRef Line | Count | Source | 629 | 397M | { | 630 | 397M | Py_INCREF(obj); | 631 | 397M | return obj; | 632 | 397M | } |
Unexecuted instantiation: boolobject.c:_Py_NewRef Unexecuted instantiation: bytes_methods.c:_Py_NewRef bytearrayobject.c:_Py_NewRef Line | Count | Source | 629 | 13.0M | { | 630 | 13.0M | Py_INCREF(obj); | 631 | 13.0M | return obj; | 632 | 13.0M | } |
Unexecuted instantiation: capsule.c:_Py_NewRef Unexecuted instantiation: cellobject.c:_Py_NewRef Line | Count | Source | 629 | 86.1M | { | 630 | 86.1M | Py_INCREF(obj); | 631 | 86.1M | return obj; | 632 | 86.1M | } |
Line | Count | Source | 629 | 1.84M | { | 630 | 1.84M | Py_INCREF(obj); | 631 | 1.84M | return obj; | 632 | 1.84M | } |
Unexecuted instantiation: complexobject.c:_Py_NewRef Line | Count | Source | 629 | 21.1M | { | 630 | 21.1M | Py_INCREF(obj); | 631 | 21.1M | return obj; | 632 | 21.1M | } |
Line | Count | Source | 629 | 28 | { | 630 | 28 | Py_INCREF(obj); | 631 | 28 | return obj; | 632 | 28 | } |
Line | Count | Source | 629 | 84.8M | { | 630 | 84.8M | Py_INCREF(obj); | 631 | 84.8M | return obj; | 632 | 84.8M | } |
Unexecuted instantiation: fileobject.c:_Py_NewRef Line | Count | Source | 629 | 20.4M | { | 630 | 20.4M | Py_INCREF(obj); | 631 | 20.4M | return obj; | 632 | 20.4M | } |
Line | Count | Source | 629 | 19.1M | { | 630 | 19.1M | Py_INCREF(obj); | 631 | 19.1M | return obj; | 632 | 19.1M | } |
interpolationobject.c:_Py_NewRef Line | Count | Source | 629 | 12 | { | 630 | 12 | Py_INCREF(obj); | 631 | 12 | return obj; | 632 | 12 | } |
Line | Count | Source | 629 | 2.55M | { | 630 | 2.55M | Py_INCREF(obj); | 631 | 2.55M | return obj; | 632 | 2.55M | } |
lazyimportobject.c:_Py_NewRef Line | Count | Source | 629 | 1.06k | { | 630 | 1.06k | Py_INCREF(obj); | 631 | 1.06k | return obj; | 632 | 1.06k | } |
Line | Count | Source | 629 | 141k | { | 630 | 141k | Py_INCREF(obj); | 631 | 141k | return obj; | 632 | 141k | } |
methodobject.c:_Py_NewRef Line | Count | Source | 629 | 10.4M | { | 630 | 10.4M | Py_INCREF(obj); | 631 | 10.4M | return obj; | 632 | 10.4M | } |
Unexecuted instantiation: namespaceobject.c:_Py_NewRef Unexecuted instantiation: _contextvars.c:_Py_NewRef Line | Count | Source | 629 | 487k | { | 630 | 487k | Py_INCREF(obj); | 631 | 487k | return obj; | 632 | 487k | } |
Unexecuted instantiation: Python-tokenize.c:_Py_NewRef Unexecuted instantiation: asdl.c:_Py_NewRef Line | Count | Source | 629 | 21.3k | { | 630 | 21.3k | Py_INCREF(obj); | 631 | 21.3k | return obj; | 632 | 21.3k | } |
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 Unexecuted instantiation: pegen.c:_Py_NewRef Unexecuted instantiation: pegen_errors.c:_Py_NewRef Unexecuted instantiation: parser.c:_Py_NewRef Unexecuted instantiation: lexer.c:_Py_NewRef Unexecuted instantiation: layout.c:_Py_NewRef Unexecuted instantiation: number.c:_Py_NewRef Unexecuted instantiation: state.c:_Py_NewRef Unexecuted instantiation: string.c:_Py_NewRef Line | Count | Source | 629 | 4 | { | 630 | 4 | Py_INCREF(obj); | 631 | 4 | return obj; | 632 | 4 | } |
Unexecuted instantiation: api.c:_Py_NewRef Unexecuted instantiation: getcompiler.c:_Py_NewRef Unexecuted instantiation: mystrtoul.c:_Py_NewRef Unexecuted instantiation: token.c:_Py_NewRef action_helpers.c:_Py_NewRef Line | Count | Source | 629 | 4.50k | { | 630 | 4.50k | Py_INCREF(obj); | 631 | 4.50k | return obj; | 632 | 4.50k | } |
Unexecuted instantiation: string_parser.c:_Py_NewRef |
633 | | |
634 | | static inline PyObject* _Py_XNewRef(PyObject *obj) |
635 | 2.01G | { |
636 | 2.01G | Py_XINCREF(obj); |
637 | 2.01G | return obj; |
638 | 2.01G | } Unexecuted instantiation: bytesobject.c:_Py_XNewRef Unexecuted instantiation: call.c:_Py_XNewRef Line | Count | Source | 635 | 116M | { | 636 | 116M | Py_XINCREF(obj); | 637 | 116M | return obj; | 638 | 116M | } |
Unexecuted instantiation: genericaliasobject.c:_Py_XNewRef Unexecuted instantiation: floatobject.c:_Py_XNewRef Line | Count | Source | 635 | 185M | { | 636 | 185M | Py_XINCREF(obj); | 637 | 185M | return obj; | 638 | 185M | } |
Unexecuted instantiation: longobject.c:_Py_XNewRef Line | Count | Source | 635 | 936M | { | 636 | 936M | Py_XINCREF(obj); | 637 | 936M | return obj; | 638 | 936M | } |
memoryobject.c:_Py_XNewRef Line | Count | Source | 635 | 101 | { | 636 | 101 | Py_XINCREF(obj); | 637 | 101 | return obj; | 638 | 101 | } |
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 | 635 | 128 | { | 636 | 128 | Py_XINCREF(obj); | 637 | 128 | return obj; | 638 | 128 | } |
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 | 635 | 243k | { | 636 | 243k | Py_XINCREF(obj); | 637 | 243k | return obj; | 638 | 243k | } |
typevarobject.c:_Py_XNewRef Line | Count | Source | 635 | 1.20k | { | 636 | 1.20k | Py_XINCREF(obj); | 637 | 1.20k | return obj; | 638 | 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 | 635 | 826k | { | 636 | 826k | Py_XINCREF(obj); | 637 | 826k | return obj; | 638 | 826k | } |
Unexecuted instantiation: _warnings.c:_Py_XNewRef bltinmodule.c:_Py_XNewRef Line | Count | Source | 635 | 1.21k | { | 636 | 1.21k | Py_XINCREF(obj); | 637 | 1.21k | return obj; | 638 | 1.21k | } |
Line | Count | Source | 635 | 169M | { | 636 | 169M | Py_XINCREF(obj); | 637 | 169M | return obj; | 638 | 169M | } |
Unexecuted instantiation: codecs.c:_Py_XNewRef Unexecuted instantiation: codegen.c:_Py_XNewRef Line | Count | Source | 635 | 7.40k | { | 636 | 7.40k | Py_XINCREF(obj); | 637 | 7.40k | return obj; | 638 | 7.40k | } |
Line | Count | Source | 635 | 66 | { | 636 | 66 | Py_XINCREF(obj); | 637 | 66 | return obj; | 638 | 66 | } |
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 | 635 | 28.9k | { | 636 | 28.9k | Py_XINCREF(obj); | 637 | 28.9k | return obj; | 638 | 28.9k | } |
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 | 635 | 1.00M | { | 636 | 1.00M | Py_XINCREF(obj); | 637 | 1.00M | return obj; | 638 | 1.00M | } |
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 | 635 | 4.40M | { | 636 | 4.40M | Py_XINCREF(obj); | 637 | 4.40M | return obj; | 638 | 4.40M | } |
Unexecuted instantiation: symtable.c:_Py_XNewRef Line | Count | Source | 635 | 21.3k | { | 636 | 21.3k | Py_XINCREF(obj); | 637 | 21.3k | return obj; | 638 | 21.3k | } |
Unexecuted instantiation: thread.c:_Py_XNewRef Line | Count | Source | 635 | 129M | { | 636 | 129M | Py_XINCREF(obj); | 637 | 129M | return obj; | 638 | 129M | } |
Unexecuted instantiation: tracemalloc.c:_Py_XNewRef Unexecuted instantiation: typecache.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 suggestions.c:_Py_XNewRef Line | Count | Source | 635 | 108 | { | 636 | 108 | Py_XINCREF(obj); | 637 | 108 | return obj; | 638 | 108 | } |
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 | 635 | 86.9k | { | 636 | 86.9k | Py_XINCREF(obj); | 637 | 86.9k | return obj; | 638 | 86.9k | } |
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 | 635 | 162 | { | 636 | 162 | Py_XINCREF(obj); | 637 | 162 | return obj; | 638 | 162 | } |
Unexecuted instantiation: _codecsmodule.c:_Py_XNewRef _collectionsmodule.c:_Py_XNewRef Line | Count | Source | 635 | 15.7k | { | 636 | 15.7k | Py_XINCREF(obj); | 637 | 15.7k | return obj; | 638 | 15.7k | } |
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 | 635 | 160 | { | 636 | 160 | Py_XINCREF(obj); | 637 | 160 | return obj; | 638 | 160 | } |
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 | 635 | 19.7k | { | 636 | 19.7k | Py_XINCREF(obj); | 637 | 19.7k | return obj; | 638 | 19.7k | } |
_functoolsmodule.c:_Py_XNewRef Line | Count | Source | 635 | 44 | { | 636 | 44 | Py_XINCREF(obj); | 637 | 44 | return obj; | 638 | 44 | } |
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 Unexecuted instantiation: getpath.c:_Py_XNewRef Unexecuted instantiation: frozen.c:_Py_XNewRef Unexecuted instantiation: getbuildinfo.c:_Py_XNewRef Unexecuted instantiation: peg_api.c:_Py_XNewRef Unexecuted instantiation: reader.c:_Py_XNewRef Unexecuted instantiation: source.c:_Py_XNewRef Unexecuted instantiation: helpers.c:_Py_XNewRef Unexecuted instantiation: myreadline.c:_Py_XNewRef Line | Count | Source | 635 | 97.4M | { | 636 | 97.4M | Py_XINCREF(obj); | 637 | 97.4M | return obj; | 638 | 97.4M | } |
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 | 635 | 20.5M | { | 636 | 20.5M | Py_XINCREF(obj); | 637 | 20.5M | return obj; | 638 | 20.5M | } |
Unexecuted instantiation: classobject.c:_Py_XNewRef Line | Count | Source | 635 | 3.45k | { | 636 | 3.45k | Py_XINCREF(obj); | 637 | 3.45k | return obj; | 638 | 3.45k | } |
Unexecuted instantiation: complexobject.c:_Py_XNewRef descrobject.c:_Py_XNewRef Line | Count | Source | 635 | 113k | { | 636 | 113k | Py_XINCREF(obj); | 637 | 113k | return obj; | 638 | 113k | } |
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 | 635 | 19.3M | { | 636 | 19.3M | Py_XINCREF(obj); | 637 | 19.3M | return obj; | 638 | 19.3M | } |
Line | Count | Source | 635 | 74.1k | { | 636 | 74.1k | Py_XINCREF(obj); | 637 | 74.1k | return obj; | 638 | 74.1k | } |
Unexecuted instantiation: interpolationobject.c:_Py_XNewRef Line | Count | Source | 635 | 328k | { | 636 | 328k | Py_XINCREF(obj); | 637 | 328k | return obj; | 638 | 328k | } |
lazyimportobject.c:_Py_XNewRef Line | Count | Source | 635 | 1.12k | { | 636 | 1.12k | Py_XINCREF(obj); | 637 | 1.12k | return obj; | 638 | 1.12k | } |
Unexecuted instantiation: odictobject.c:_Py_XNewRef methodobject.c:_Py_XNewRef Line | Count | Source | 635 | 332M | { | 636 | 332M | Py_XINCREF(obj); | 637 | 332M | return obj; | 638 | 332M | } |
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 Unexecuted instantiation: pegen.c:_Py_XNewRef Unexecuted instantiation: pegen_errors.c:_Py_XNewRef Unexecuted instantiation: parser.c:_Py_XNewRef Unexecuted instantiation: lexer.c:_Py_XNewRef Unexecuted instantiation: layout.c:_Py_XNewRef Unexecuted instantiation: number.c:_Py_XNewRef Unexecuted instantiation: state.c:_Py_XNewRef Unexecuted instantiation: string.c:_Py_XNewRef Unexecuted instantiation: decoder.c:_Py_XNewRef Unexecuted instantiation: api.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 |
639 | | |
640 | | // Py_NewRef() and Py_XNewRef() are exported as functions for the stable ABI. |
641 | | // Names overridden with macros by static inline functions for best |
642 | | // performances. |
643 | | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000 |
644 | 7.86G | # define Py_NewRef(obj) _Py_NewRef(_PyObject_CAST(obj)) |
645 | 1.81G | # define Py_XNewRef(obj) _Py_XNewRef(_PyObject_CAST(obj)) |
646 | | #else |
647 | | # define Py_NewRef(obj) _Py_NewRef(obj) |
648 | | # define Py_XNewRef(obj) _Py_XNewRef(obj) |
649 | | #endif |
650 | | |
651 | | |
652 | | #ifdef __cplusplus |
653 | | } |
654 | | #endif |
655 | | #endif // !_Py_REFCOUNT_H |