/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 | | /* |
9 | | Immortalization: |
10 | | |
11 | | The following indicates the immortalization strategy depending on the amount |
12 | | of available bits in the reference count field. All strategies are backwards |
13 | | compatible but the specific reference count value or immortalization check |
14 | | might change depending on the specializations for the underlying system. |
15 | | |
16 | | Proper deallocation of immortal instances requires distinguishing between |
17 | | statically allocated immortal instances vs those promoted by the runtime to be |
18 | | immortal. The latter should be the only instances that require |
19 | | cleanup during runtime finalization. |
20 | | */ |
21 | | |
22 | | #if SIZEOF_VOID_P > 4 |
23 | | /* |
24 | | In 64+ bit systems, any object whose 32 bit reference count is >= 2**31 |
25 | | will be treated as immortal. |
26 | | |
27 | | Using the lower 32 bits makes the value backwards compatible by allowing |
28 | | C-Extensions without the updated checks in Py_INCREF and Py_DECREF to safely |
29 | | increase and decrease the objects reference count. |
30 | | |
31 | | In order to offer sufficient resilience to C extensions using the stable ABI |
32 | | compiled against 3.11 or earlier, we set the initial value near the |
33 | | middle of the range (2**31, 2**32). That way the refcount can be |
34 | | off by ~1 billion without affecting immortality. |
35 | | |
36 | | Reference count increases will use saturated arithmetic, taking advantage of |
37 | | having all the lower 32 bits set, which will avoid the reference count to go |
38 | | beyond the refcount limit. Immortality checks for reference count decreases will |
39 | | be done by checking the bit sign flag in the lower 32 bits. |
40 | | |
41 | | To ensure that once an object becomes immortal, it remains immortal, the threshold |
42 | | for omitting increfs is much higher than for omitting decrefs. Consequently, once |
43 | | the refcount for an object exceeds _Py_IMMORTAL_MINIMUM_REFCNT it will gradually |
44 | | increase over time until it reaches _Py_IMMORTAL_INITIAL_REFCNT. |
45 | | */ |
46 | 15.2G | #define _Py_IMMORTAL_INITIAL_REFCNT (3ULL << 30) |
47 | 261 | #define _Py_IMMORTAL_MINIMUM_REFCNT (1ULL << 31) |
48 | 267M | #define _Py_STATIC_FLAG_BITS ((Py_ssize_t)(_Py_STATICALLY_ALLOCATED_FLAG | _Py_IMMORTAL_FLAGS)) |
49 | 267M | #define _Py_STATIC_IMMORTAL_INITIAL_REFCNT (((Py_ssize_t)_Py_IMMORTAL_INITIAL_REFCNT) | (_Py_STATIC_FLAG_BITS << 48)) |
50 | | |
51 | | #else |
52 | | /* |
53 | | In 32 bit systems, an object will be treated as immortal if its reference |
54 | | count equals or exceeds _Py_IMMORTAL_MINIMUM_REFCNT (2**30). |
55 | | |
56 | | Using the lower 30 bits makes the value backwards compatible by allowing |
57 | | C-Extensions without the updated checks in Py_INCREF and Py_DECREF to safely |
58 | | increase and decrease the objects reference count. The object would lose its |
59 | | immortality, but the execution would still be correct. |
60 | | |
61 | | Reference count increases and decreases will first go through an immortality |
62 | | check by comparing the reference count field to the minimum immortality refcount. |
63 | | */ |
64 | | #define _Py_IMMORTAL_INITIAL_REFCNT ((Py_ssize_t)(5L << 28)) |
65 | | #define _Py_IMMORTAL_MINIMUM_REFCNT ((Py_ssize_t)(1L << 30)) |
66 | | #define _Py_STATIC_IMMORTAL_INITIAL_REFCNT ((Py_ssize_t)(7L << 28)) |
67 | | #define _Py_STATIC_IMMORTAL_MINIMUM_REFCNT ((Py_ssize_t)(6L << 28)) |
68 | | #endif |
69 | | |
70 | | // Py_GIL_DISABLED builds indicate immortal objects using `ob_ref_local`, which is |
71 | | // always 32-bits. |
72 | | #ifdef Py_GIL_DISABLED |
73 | | #define _Py_IMMORTAL_REFCNT_LOCAL UINT32_MAX |
74 | | #endif |
75 | | |
76 | | |
77 | | #ifdef Py_GIL_DISABLED |
78 | | // The shared reference count uses the two least-significant bits to store |
79 | | // flags. The remaining bits are used to store the reference count. |
80 | | # define _Py_REF_SHARED_SHIFT 2 |
81 | | # define _Py_REF_SHARED_FLAG_MASK 0x3 |
82 | | |
83 | | // The shared flags are initialized to zero. |
84 | | # define _Py_REF_SHARED_INIT 0x0 |
85 | | # define _Py_REF_MAYBE_WEAKREF 0x1 |
86 | | # define _Py_REF_QUEUED 0x2 |
87 | | # define _Py_REF_MERGED 0x3 |
88 | | |
89 | | // Create a shared field from a refcnt and desired flags |
90 | | # define _Py_REF_SHARED(refcnt, flags) \ |
91 | | (((refcnt) << _Py_REF_SHARED_SHIFT) + (flags)) |
92 | | #endif // Py_GIL_DISABLED |
93 | | |
94 | | |
95 | | // Py_REFCNT() implementation for the stable ABI |
96 | | PyAPI_FUNC(Py_ssize_t) Py_REFCNT(PyObject *ob); |
97 | | |
98 | | #if defined(Py_LIMITED_API) && Py_LIMITED_API+0 >= 0x030e0000 |
99 | | // Stable ABI implements Py_REFCNT() as a function call |
100 | | // on limited C API version 3.14 and newer. |
101 | | #else |
102 | 1.14G | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { |
103 | 1.14G | #if !defined(Py_GIL_DISABLED) |
104 | 1.14G | return ob->ob_refcnt; |
105 | | #else |
106 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); |
107 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { |
108 | | return _Py_IMMORTAL_INITIAL_REFCNT; |
109 | | } |
110 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); |
111 | | return _Py_STATIC_CAST(Py_ssize_t, local) + |
112 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); |
113 | | #endif |
114 | 1.14G | } Line | Count | Source | 102 | 2.09M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 2.09M | #if !defined(Py_GIL_DISABLED) | 104 | 2.09M | return ob->ob_refcnt; | 105 | | #else | 106 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 107 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 108 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 109 | | } | 110 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 111 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 112 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 113 | | #endif | 114 | 2.09M | } |
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 | 102 | 261 | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 261 | #if !defined(Py_GIL_DISABLED) | 104 | 261 | return ob->ob_refcnt; | 105 | | #else | 106 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 107 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 108 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 109 | | } | 110 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 111 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 112 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 113 | | #endif | 114 | 261 | } |
Line | Count | Source | 102 | 149 | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 149 | #if !defined(Py_GIL_DISABLED) | 104 | 149 | return ob->ob_refcnt; | 105 | | #else | 106 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 107 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 108 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 109 | | } | 110 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 111 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 112 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 113 | | #endif | 114 | 149 | } |
Line | Count | Source | 102 | 672M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 672M | #if !defined(Py_GIL_DISABLED) | 104 | 672M | return ob->ob_refcnt; | 105 | | #else | 106 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 107 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 108 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 109 | | } | 110 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 111 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 112 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 113 | | #endif | 114 | 672M | } |
Unexecuted instantiation: memoryobject.c:_Py_REFCNT Unexecuted instantiation: moduleobject.c:_Py_REFCNT Line | Count | Source | 102 | 67.5M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 67.5M | #if !defined(Py_GIL_DISABLED) | 104 | 67.5M | return ob->ob_refcnt; | 105 | | #else | 106 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 107 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 108 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 109 | | } | 110 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 111 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 112 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 113 | | #endif | 114 | 67.5M | } |
Unexecuted instantiation: obmalloc.c:_Py_REFCNT Unexecuted instantiation: picklebufobject.c:_Py_REFCNT Unexecuted instantiation: rangeobject.c:_Py_REFCNT Line | Count | Source | 102 | 2.55k | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 2.55k | #if !defined(Py_GIL_DISABLED) | 104 | 2.55k | return ob->ob_refcnt; | 105 | | #else | 106 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 107 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 108 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 109 | | } | 110 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 111 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 112 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 113 | | #endif | 114 | 2.55k | } |
Unexecuted instantiation: sliceobject.c:_Py_REFCNT Unexecuted instantiation: structseq.c:_Py_REFCNT Unexecuted instantiation: templateobject.c:_Py_REFCNT Line | Count | Source | 102 | 99.6k | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 99.6k | #if !defined(Py_GIL_DISABLED) | 104 | 99.6k | return ob->ob_refcnt; | 105 | | #else | 106 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 107 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 108 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 109 | | } | 110 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 111 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 112 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 113 | | #endif | 114 | 99.6k | } |
Line | Count | Source | 102 | 78 | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 78 | #if !defined(Py_GIL_DISABLED) | 104 | 78 | return ob->ob_refcnt; | 105 | | #else | 106 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 107 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 108 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 109 | | } | 110 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 111 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 112 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 113 | | #endif | 114 | 78 | } |
Unexecuted instantiation: typevarobject.c:_Py_REFCNT unicode_format.c:_Py_REFCNT Line | Count | Source | 102 | 9.38M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 9.38M | #if !defined(Py_GIL_DISABLED) | 104 | 9.38M | return ob->ob_refcnt; | 105 | | #else | 106 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 107 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 108 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 109 | | } | 110 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 111 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 112 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 113 | | #endif | 114 | 9.38M | } |
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 | 102 | 74.4M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 74.4M | #if !defined(Py_GIL_DISABLED) | 104 | 74.4M | return ob->ob_refcnt; | 105 | | #else | 106 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 107 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 108 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 109 | | } | 110 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 111 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 112 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 113 | | #endif | 114 | 74.4M | } |
Unexecuted instantiation: unionobject.c:_Py_REFCNT weakrefobject.c:_Py_REFCNT Line | Count | Source | 102 | 50.0M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 50.0M | #if !defined(Py_GIL_DISABLED) | 104 | 50.0M | return ob->ob_refcnt; | 105 | | #else | 106 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 107 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 108 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 109 | | } | 110 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 111 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 112 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 113 | | #endif | 114 | 50.0M | } |
Unexecuted instantiation: _warnings.c:_Py_REFCNT Line | Count | Source | 102 | 27.4M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 27.4M | #if !defined(Py_GIL_DISABLED) | 104 | 27.4M | return ob->ob_refcnt; | 105 | | #else | 106 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 107 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 108 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 109 | | } | 110 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 111 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 112 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 113 | | #endif | 114 | 27.4M | } |
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 | 102 | 44.6M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 44.6M | #if !defined(Py_GIL_DISABLED) | 104 | 44.6M | return ob->ob_refcnt; | 105 | | #else | 106 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 107 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 108 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 109 | | } | 110 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 111 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 112 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 113 | | #endif | 114 | 44.6M | } |
Unexecuted instantiation: future.c:_Py_REFCNT Line | Count | Source | 102 | 69.9M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 69.9M | #if !defined(Py_GIL_DISABLED) | 104 | 69.9M | return ob->ob_refcnt; | 105 | | #else | 106 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 107 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 108 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 109 | | } | 110 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 111 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 112 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 113 | | #endif | 114 | 69.9M | } |
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 | 102 | 28 | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 28 | #if !defined(Py_GIL_DISABLED) | 104 | 28 | return ob->ob_refcnt; | 105 | | #else | 106 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 107 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 108 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 109 | | } | 110 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 111 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 112 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 113 | | #endif | 114 | 28 | } |
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 | 102 | 198k | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 198k | #if !defined(Py_GIL_DISABLED) | 104 | 198k | return ob->ob_refcnt; | 105 | | #else | 106 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 107 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 108 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 109 | | } | 110 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 111 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 112 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 113 | | #endif | 114 | 198k | } |
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: symtable.c:_Py_REFCNT Unexecuted instantiation: sysmodule.c:_Py_REFCNT Unexecuted instantiation: thread.c:_Py_REFCNT Unexecuted instantiation: traceback.c:_Py_REFCNT Unexecuted instantiation: tracemalloc.c:_Py_REFCNT Unexecuted instantiation: getopt.c:_Py_REFCNT Unexecuted instantiation: pystrcmp.c:_Py_REFCNT Unexecuted instantiation: pystrtod.c:_Py_REFCNT Unexecuted instantiation: pystrhex.c:_Py_REFCNT Unexecuted instantiation: dtoa.c:_Py_REFCNT Unexecuted instantiation: fileutils.c:_Py_REFCNT Unexecuted instantiation: suggestions.c:_Py_REFCNT Unexecuted instantiation: perf_trampoline.c:_Py_REFCNT Unexecuted instantiation: perf_jit_trampoline.c:_Py_REFCNT Unexecuted instantiation: 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 | 102 | 62.4k | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 62.4k | #if !defined(Py_GIL_DISABLED) | 104 | 62.4k | return ob->ob_refcnt; | 105 | | #else | 106 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 107 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 108 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 109 | | } | 110 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 111 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 112 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 113 | | #endif | 114 | 62.4k | } |
Unexecuted instantiation: fileio.c:_Py_REFCNT Line | Count | Source | 102 | 1.89k | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 1.89k | #if !defined(Py_GIL_DISABLED) | 104 | 1.89k | return ob->ob_refcnt; | 105 | | #else | 106 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 107 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 108 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 109 | | } | 110 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 111 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 112 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 113 | | #endif | 114 | 1.89k | } |
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 | 102 | 540 | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 540 | #if !defined(Py_GIL_DISABLED) | 104 | 540 | return ob->ob_refcnt; | 105 | | #else | 106 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 107 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 108 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 109 | | } | 110 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 111 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 112 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 113 | | #endif | 114 | 540 | } |
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 | 102 | 116k | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 116k | #if !defined(Py_GIL_DISABLED) | 104 | 116k | return ob->ob_refcnt; | 105 | | #else | 106 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 107 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 108 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 109 | | } | 110 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 111 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 112 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 113 | | #endif | 114 | 116k | } |
Unexecuted instantiation: _localemodule.c:_Py_REFCNT Unexecuted instantiation: _opcode.c:_Py_REFCNT Unexecuted instantiation: _operator.c:_Py_REFCNT Unexecuted instantiation: _stat.c:_Py_REFCNT Unexecuted instantiation: symtablemodule.c:_Py_REFCNT Unexecuted instantiation: pwdmodule.c:_Py_REFCNT Unexecuted instantiation: getpath.c:_Py_REFCNT Unexecuted instantiation: frozen.c:_Py_REFCNT Unexecuted instantiation: getbuildinfo.c:_Py_REFCNT Unexecuted instantiation: peg_api.c:_Py_REFCNT Unexecuted instantiation: file_tokenizer.c:_Py_REFCNT Unexecuted instantiation: helpers.c:_Py_REFCNT Unexecuted instantiation: myreadline.c:_Py_REFCNT Unexecuted instantiation: abstract.c:_Py_REFCNT Unexecuted instantiation: boolobject.c:_Py_REFCNT Unexecuted instantiation: bytes_methods.c:_Py_REFCNT Unexecuted instantiation: bytearrayobject.c:_Py_REFCNT Unexecuted instantiation: capsule.c:_Py_REFCNT Unexecuted instantiation: cellobject.c:_Py_REFCNT Unexecuted instantiation: classobject.c:_Py_REFCNT Line | Count | Source | 102 | 231k | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 231k | #if !defined(Py_GIL_DISABLED) | 104 | 231k | return ob->ob_refcnt; | 105 | | #else | 106 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 107 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 108 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 109 | | } | 110 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 111 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 112 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 113 | | #endif | 114 | 231k | } |
Unexecuted instantiation: complexobject.c:_Py_REFCNT Unexecuted instantiation: descrobject.c:_Py_REFCNT Line | Count | Source | 102 | 97.6M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 97.6M | #if !defined(Py_GIL_DISABLED) | 104 | 97.6M | return ob->ob_refcnt; | 105 | | #else | 106 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 107 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 108 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 109 | | } | 110 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 111 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 112 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 113 | | #endif | 114 | 97.6M | } |
Unexecuted instantiation: genobject.c:_Py_REFCNT Unexecuted instantiation: fileobject.c:_Py_REFCNT Unexecuted instantiation: frameobject.c:_Py_REFCNT Line | Count | Source | 102 | 27.5M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 27.5M | #if !defined(Py_GIL_DISABLED) | 104 | 27.5M | return ob->ob_refcnt; | 105 | | #else | 106 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 107 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 108 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 109 | | } | 110 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 111 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 112 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 113 | | #endif | 114 | 27.5M | } |
Unexecuted instantiation: interpolationobject.c:_Py_REFCNT Unexecuted instantiation: iterobject.c:_Py_REFCNT Unexecuted instantiation: odictobject.c:_Py_REFCNT 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: structmember.c:_Py_REFCNT Unexecuted instantiation: pegen.c:_Py_REFCNT Unexecuted instantiation: pegen_errors.c:_Py_REFCNT Unexecuted instantiation: parser.c:_Py_REFCNT Unexecuted instantiation: buffer.c:_Py_REFCNT Unexecuted instantiation: lexer.c:_Py_REFCNT Unexecuted instantiation: state.c:_Py_REFCNT Unexecuted instantiation: readline_tokenizer.c:_Py_REFCNT Unexecuted instantiation: string_tokenizer.c:_Py_REFCNT Unexecuted instantiation: utf8_tokenizer.c:_Py_REFCNT Unexecuted instantiation: getcompiler.c:_Py_REFCNT Unexecuted instantiation: mystrtoul.c:_Py_REFCNT Unexecuted instantiation: token.c:_Py_REFCNT Unexecuted instantiation: action_helpers.c:_Py_REFCNT Unexecuted instantiation: string_parser.c:_Py_REFCNT |
115 | | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000 |
116 | 772M | # define Py_REFCNT(ob) _Py_REFCNT(_PyObject_CAST(ob)) |
117 | | #else |
118 | | # define Py_REFCNT(ob) _Py_REFCNT(ob) |
119 | | #endif |
120 | | #endif |
121 | | |
122 | | #ifndef _Py_OPAQUE_PYOBJECT |
123 | | static inline Py_ALWAYS_INLINE int _Py_IsImmortal(PyObject *op) |
124 | 26.5G | { |
125 | | #if defined(Py_GIL_DISABLED) |
126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == |
127 | | _Py_IMMORTAL_REFCNT_LOCAL); |
128 | | #elif SIZEOF_VOID_P > 4 |
129 | 26.5G | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; |
130 | | #else |
131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; |
132 | | #endif |
133 | 26.5G | } bytesobject.c:_Py_IsImmortal Line | Count | Source | 124 | 5.40M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 5.40M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 5.40M | } |
Line | Count | Source | 124 | 188M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 188M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 188M | } |
exceptions.c:_Py_IsImmortal Line | Count | Source | 124 | 181M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 181M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 181M | } |
genericaliasobject.c:_Py_IsImmortal Line | Count | Source | 124 | 202 | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 202 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 202 | } |
floatobject.c:_Py_IsImmortal Line | Count | Source | 124 | 39.1k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 39.1k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 39.1k | } |
listobject.c:_Py_IsImmortal Line | Count | Source | 124 | 1.63G | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 1.63G | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 1.63G | } |
longobject.c:_Py_IsImmortal Line | Count | Source | 124 | 39.4M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 39.4M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 39.4M | } |
dictobject.c:_Py_IsImmortal Line | Count | Source | 124 | 2.01G | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 2.01G | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 2.01G | } |
memoryobject.c:_Py_IsImmortal Line | Count | Source | 124 | 1.40M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 1.40M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 1.40M | } |
moduleobject.c:_Py_IsImmortal Line | Count | Source | 124 | 2.18M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 2.18M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 2.18M | } |
Line | Count | Source | 124 | 988M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 988M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 988M | } |
Unexecuted instantiation: obmalloc.c:_Py_IsImmortal Unexecuted instantiation: picklebufobject.c:_Py_IsImmortal rangeobject.c:_Py_IsImmortal Line | Count | Source | 124 | 56.6M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 56.6M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 56.6M | } |
setobject.c:_Py_IsImmortal Line | Count | Source | 124 | 16.1M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 16.1M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 16.1M | } |
sliceobject.c:_Py_IsImmortal Line | Count | Source | 124 | 157M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 157M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 157M | } |
structseq.c:_Py_IsImmortal Line | Count | Source | 124 | 10.5M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 10.5M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 10.5M | } |
templateobject.c:_Py_IsImmortal Line | Count | Source | 124 | 4 | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 4 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 4 | } |
tupleobject.c:_Py_IsImmortal Line | Count | Source | 124 | 5.16G | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 5.16G | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 5.16G | } |
typeobject.c:_Py_IsImmortal Line | Count | Source | 124 | 1.28G | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 1.28G | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 1.28G | } |
typevarobject.c:_Py_IsImmortal Line | Count | Source | 124 | 300 | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 300 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 300 | } |
unicode_format.c:_Py_IsImmortal Line | Count | Source | 124 | 72.9M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 72.9M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 72.9M | } |
unicode_formatter.c:_Py_IsImmortal Line | Count | Source | 124 | 256 | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 256 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 256 | } |
unicode_writer.c:_Py_IsImmortal Line | Count | Source | 124 | 15.1M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 15.1M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 15.1M | } |
Unexecuted instantiation: unicodectype.c:_Py_IsImmortal unicodeobject.c:_Py_IsImmortal Line | Count | Source | 124 | 207M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 207M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 207M | } |
unionobject.c:_Py_IsImmortal Line | Count | Source | 124 | 1.57k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 1.57k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 1.57k | } |
weakrefobject.c:_Py_IsImmortal Line | Count | Source | 124 | 86.4k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 86.4k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 86.4k | } |
_warnings.c:_Py_IsImmortal Line | Count | Source | 124 | 20.8M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 20.8M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 20.8M | } |
bltinmodule.c:_Py_IsImmortal Line | Count | Source | 124 | 1.35G | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 1.35G | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 1.35G | } |
Line | Count | Source | 124 | 10.0G | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 10.0G | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 10.0G | } |
Line | Count | Source | 124 | 6.13M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 6.13M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 6.13M | } |
Line | Count | Source | 124 | 191k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 191k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 191k | } |
Line | Count | Source | 124 | 735k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 735k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 735k | } |
Line | Count | Source | 124 | 56 | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 56 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 56 | } |
Line | Count | Source | 124 | 97.0M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 97.0M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 97.0M | } |
flowgraph.c:_Py_IsImmortal Line | Count | Source | 124 | 84.2k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 84.2k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 84.2k | } |
Line | Count | Source | 124 | 83.6M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 83.6M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 83.6M | } |
Unexecuted instantiation: future.c:_Py_IsImmortal Line | Count | Source | 124 | 576M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 576M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 576M | } |
Unexecuted instantiation: gc_gil.c:_Py_IsImmortal Line | Count | Source | 124 | 4.93M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 4.93M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 4.93M | } |
Unexecuted instantiation: ceval_gil.c:_Py_IsImmortal Unexecuted instantiation: hamt.c:_Py_IsImmortal Unexecuted instantiation: hashtable.c:_Py_IsImmortal Line | Count | Source | 124 | 9.33M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 9.33M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 9.33M | } |
importdl.c:_Py_IsImmortal Line | Count | Source | 124 | 2.11k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 2.11k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 2.11k | } |
initconfig.c:_Py_IsImmortal Line | Count | Source | 124 | 3.86k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 3.86k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 3.86k | } |
instrumentation.c:_Py_IsImmortal Line | Count | Source | 124 | 672 | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 672 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 672 | } |
instruction_sequence.c:_Py_IsImmortal Line | Count | Source | 124 | 1 | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 1 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 1 | } |
intrinsics.c:_Py_IsImmortal Line | Count | Source | 124 | 52.1k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 52.1k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 52.1k | } |
Unexecuted instantiation: legacy_tracing.c:_Py_IsImmortal Unexecuted instantiation: lock.c:_Py_IsImmortal Line | Count | Source | 124 | 1.59M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 1.59M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 1.59M | } |
modsupport.c:_Py_IsImmortal Line | Count | Source | 124 | 29.3k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 29.3k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 29.3k | } |
Unexecuted instantiation: mysnprintf.c:_Py_IsImmortal Unexecuted instantiation: parking_lot.c:_Py_IsImmortal Unexecuted instantiation: preconfig.c:_Py_IsImmortal Line | Count | Source | 124 | 4.41M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 4.41M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 4.41M | } |
Unexecuted instantiation: pyctype.c:_Py_IsImmortal Unexecuted instantiation: pyhash.c:_Py_IsImmortal pylifecycle.c:_Py_IsImmortal Line | Count | Source | 124 | 1.00k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 1.00k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 1.00k | } |
Unexecuted instantiation: pymath.c:_Py_IsImmortal Unexecuted instantiation: pystate.c:_Py_IsImmortal pythonrun.c:_Py_IsImmortal Line | Count | Source | 124 | 658 | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 658 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 658 | } |
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 | 124 | 2.14M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 2.14M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 2.14M | } |
symtable.c:_Py_IsImmortal Line | Count | Source | 124 | 994k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 994k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 994k | } |
sysmodule.c:_Py_IsImmortal Line | Count | Source | 124 | 5.33M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 5.33M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 5.33M | } |
Unexecuted instantiation: thread.c:_Py_IsImmortal traceback.c:_Py_IsImmortal Line | Count | Source | 124 | 133M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 133M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 133M | } |
Unexecuted instantiation: tracemalloc.c:_Py_IsImmortal Unexecuted instantiation: getopt.c:_Py_IsImmortal Unexecuted instantiation: pystrcmp.c:_Py_IsImmortal Unexecuted instantiation: pystrtod.c:_Py_IsImmortal Unexecuted instantiation: pystrhex.c:_Py_IsImmortal Unexecuted instantiation: dtoa.c:_Py_IsImmortal fileutils.c:_Py_IsImmortal Line | Count | Source | 124 | 10.3k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 10.3k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 10.3k | } |
Unexecuted instantiation: suggestions.c:_Py_IsImmortal Unexecuted instantiation: perf_trampoline.c:_Py_IsImmortal Unexecuted instantiation: perf_jit_trampoline.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 | 124 | 2 | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 2 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 2 | } |
Unexecuted instantiation: faulthandler.c:_Py_IsImmortal posixmodule.c:_Py_IsImmortal Line | Count | Source | 124 | 5.62M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 5.62M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 5.62M | } |
signalmodule.c:_Py_IsImmortal Line | Count | Source | 124 | 56 | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 56 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 56 | } |
Unexecuted instantiation: _tracemalloc.c:_Py_IsImmortal Unexecuted instantiation: _suggestions.c:_Py_IsImmortal _datetimemodule.c:_Py_IsImmortal Line | Count | Source | 124 | 582 | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 582 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 582 | } |
Unexecuted instantiation: _codecsmodule.c:_Py_IsImmortal _collectionsmodule.c:_Py_IsImmortal Line | Count | Source | 124 | 117k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 117k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 117k | } |
Unexecuted instantiation: errnomodule.c:_Py_IsImmortal _iomodule.c:_Py_IsImmortal Line | Count | Source | 124 | 150k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 150k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 150k | } |
Line | Count | Source | 124 | 306k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 306k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 306k | } |
Line | Count | Source | 124 | 40.2k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 40.2k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 40.2k | } |
Line | Count | Source | 124 | 189k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 189k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 189k | } |
bufferedio.c:_Py_IsImmortal Line | Count | Source | 124 | 4.80M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 4.80M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 4.80M | } |
Line | Count | Source | 124 | 701k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 701k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 701k | } |
stringio.c:_Py_IsImmortal Line | Count | Source | 124 | 323k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 323k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 323k | } |
itertoolsmodule.c:_Py_IsImmortal Line | Count | Source | 124 | 85.5k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 85.5k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 85.5k | } |
Line | Count | Source | 124 | 463M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 463M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 463M | } |
Unexecuted instantiation: _sysconfig.c:_Py_IsImmortal _threadmodule.c:_Py_IsImmortal Line | Count | Source | 124 | 36.5k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 36.5k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 36.5k | } |
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 | 124 | 98.7k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 98.7k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 98.7k | } |
_functoolsmodule.c:_Py_IsImmortal Line | Count | Source | 124 | 462k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 462k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 462k | } |
Unexecuted instantiation: _localemodule.c:_Py_IsImmortal Unexecuted instantiation: _opcode.c:_Py_IsImmortal _operator.c:_Py_IsImmortal Line | Count | Source | 124 | 588k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 588k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 588k | } |
Unexecuted instantiation: _stat.c:_Py_IsImmortal Unexecuted instantiation: symtablemodule.c:_Py_IsImmortal Unexecuted instantiation: pwdmodule.c:_Py_IsImmortal Line | Count | Source | 124 | 924 | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 924 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 924 | } |
Unexecuted instantiation: frozen.c:_Py_IsImmortal Unexecuted instantiation: getbuildinfo.c:_Py_IsImmortal Unexecuted instantiation: peg_api.c:_Py_IsImmortal Unexecuted instantiation: file_tokenizer.c:_Py_IsImmortal Line | Count | Source | 124 | 21.9k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 21.9k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 21.9k | } |
Unexecuted instantiation: myreadline.c:_Py_IsImmortal abstract.c:_Py_IsImmortal Line | Count | Source | 124 | 598M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 598M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 598M | } |
Unexecuted instantiation: boolobject.c:_Py_IsImmortal Unexecuted instantiation: bytes_methods.c:_Py_IsImmortal bytearrayobject.c:_Py_IsImmortal Line | Count | Source | 124 | 2.94M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 2.94M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 2.94M | } |
Line | Count | Source | 124 | 10 | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 10 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 10 | } |
cellobject.c:_Py_IsImmortal Line | Count | Source | 124 | 450k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 450k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 450k | } |
classobject.c:_Py_IsImmortal Line | Count | Source | 124 | 77.0M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 77.0M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 77.0M | } |
codeobject.c:_Py_IsImmortal Line | Count | Source | 124 | 1.31M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 1.31M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 1.31M | } |
Unexecuted instantiation: complexobject.c:_Py_IsImmortal descrobject.c:_Py_IsImmortal Line | Count | Source | 124 | 85.2M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 85.2M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 85.2M | } |
enumobject.c:_Py_IsImmortal Line | Count | Source | 124 | 258M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 258M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 258M | } |
genobject.c:_Py_IsImmortal Line | Count | Source | 124 | 146M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 146M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 146M | } |
fileobject.c:_Py_IsImmortal Line | Count | Source | 124 | 225k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 225k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 225k | } |
frameobject.c:_Py_IsImmortal Line | Count | Source | 124 | 28.7M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 28.7M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 28.7M | } |
funcobject.c:_Py_IsImmortal Line | Count | Source | 124 | 152M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 152M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 152M | } |
interpolationobject.c:_Py_IsImmortal Line | Count | Source | 124 | 28 | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 28 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 28 | } |
iterobject.c:_Py_IsImmortal Line | Count | Source | 124 | 2.03M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 2.03M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 2.03M | } |
odictobject.c:_Py_IsImmortal Line | Count | Source | 124 | 768 | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 768 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 768 | } |
methodobject.c:_Py_IsImmortal Line | Count | Source | 124 | 343M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 343M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 343M | } |
namespaceobject.c:_Py_IsImmortal Line | Count | Source | 124 | 28 | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 28 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 28 | } |
Unexecuted instantiation: _contextvars.c:_Py_IsImmortal Python-ast.c:_Py_IsImmortal Line | Count | Source | 124 | 2.76M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 2.76M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 2.76M | } |
Unexecuted instantiation: Python-tokenize.c:_Py_IsImmortal Unexecuted instantiation: asdl.c:_Py_IsImmortal assemble.c:_Py_IsImmortal Line | Count | Source | 124 | 59.1k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 59.1k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 59.1k | } |
Unexecuted instantiation: ast.c:_Py_IsImmortal ast_preprocess.c:_Py_IsImmortal Line | Count | Source | 124 | 3 | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 3 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 3 | } |
ast_unparse.c:_Py_IsImmortal Line | Count | Source | 124 | 8 | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 8 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 8 | } |
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 structmember.c:_Py_IsImmortal Line | Count | Source | 124 | 1.68k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 1.68k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 1.68k | } |
Line | Count | Source | 124 | 132k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 132k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 132k | } |
pegen_errors.c:_Py_IsImmortal Line | Count | Source | 124 | 40.3k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 40.3k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 40.3k | } |
Unexecuted instantiation: parser.c:_Py_IsImmortal Unexecuted instantiation: buffer.c:_Py_IsImmortal Line | Count | Source | 124 | 12.9k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 12.9k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 12.9k | } |
Line | Count | Source | 124 | 21.4k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 21.4k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 21.4k | } |
Unexecuted instantiation: readline_tokenizer.c:_Py_IsImmortal Unexecuted instantiation: string_tokenizer.c:_Py_IsImmortal Unexecuted instantiation: utf8_tokenizer.c:_Py_IsImmortal Unexecuted instantiation: getcompiler.c:_Py_IsImmortal Unexecuted instantiation: mystrtoul.c:_Py_IsImmortal Unexecuted instantiation: token.c:_Py_IsImmortal Unexecuted instantiation: action_helpers.c:_Py_IsImmortal string_parser.c:_Py_IsImmortal Line | Count | Source | 124 | 38.6k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 38.6k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 38.6k | } |
|
134 | 28.6G | #define _Py_IsImmortal(op) _Py_IsImmortal(_PyObject_CAST(op)) |
135 | | |
136 | | |
137 | | static inline Py_ALWAYS_INLINE int _Py_IsStaticImmortal(PyObject *op) |
138 | 0 | { |
139 | 0 | #if defined(Py_GIL_DISABLED) || SIZEOF_VOID_P > 4 |
140 | 0 | return (op->ob_flags & _Py_STATICALLY_ALLOCATED_FLAG) != 0; |
141 | 0 | #else |
142 | 0 | return op->ob_refcnt >= _Py_STATIC_IMMORTAL_MINIMUM_REFCNT; |
143 | 0 | #endif |
144 | 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: 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: symtable.c:_Py_IsStaticImmortal Unexecuted instantiation: sysmodule.c:_Py_IsStaticImmortal Unexecuted instantiation: thread.c:_Py_IsStaticImmortal Unexecuted instantiation: traceback.c:_Py_IsStaticImmortal Unexecuted instantiation: tracemalloc.c:_Py_IsStaticImmortal Unexecuted instantiation: getopt.c:_Py_IsStaticImmortal Unexecuted instantiation: pystrcmp.c:_Py_IsStaticImmortal Unexecuted instantiation: pystrtod.c:_Py_IsStaticImmortal Unexecuted instantiation: pystrhex.c:_Py_IsStaticImmortal Unexecuted instantiation: dtoa.c:_Py_IsStaticImmortal Unexecuted instantiation: fileutils.c:_Py_IsStaticImmortal Unexecuted instantiation: suggestions.c:_Py_IsStaticImmortal Unexecuted instantiation: perf_trampoline.c:_Py_IsStaticImmortal Unexecuted instantiation: perf_jit_trampoline.c:_Py_IsStaticImmortal Unexecuted instantiation: remote_debugging.c:_Py_IsStaticImmortal Unexecuted instantiation: dynload_shlib.c:_Py_IsStaticImmortal Unexecuted instantiation: config.c:_Py_IsStaticImmortal Unexecuted instantiation: gcmodule.c:_Py_IsStaticImmortal Unexecuted instantiation: _asynciomodule.c:_Py_IsStaticImmortal Unexecuted instantiation: atexitmodule.c:_Py_IsStaticImmortal Unexecuted instantiation: faulthandler.c:_Py_IsStaticImmortal Unexecuted instantiation: posixmodule.c:_Py_IsStaticImmortal Unexecuted instantiation: signalmodule.c:_Py_IsStaticImmortal Unexecuted instantiation: _tracemalloc.c:_Py_IsStaticImmortal Unexecuted instantiation: _suggestions.c:_Py_IsStaticImmortal Unexecuted instantiation: _datetimemodule.c:_Py_IsStaticImmortal Unexecuted instantiation: _codecsmodule.c:_Py_IsStaticImmortal Unexecuted instantiation: _collectionsmodule.c:_Py_IsStaticImmortal Unexecuted instantiation: errnomodule.c:_Py_IsStaticImmortal Unexecuted instantiation: _iomodule.c:_Py_IsStaticImmortal Unexecuted instantiation: iobase.c:_Py_IsStaticImmortal Unexecuted instantiation: fileio.c:_Py_IsStaticImmortal Unexecuted instantiation: bytesio.c:_Py_IsStaticImmortal Unexecuted instantiation: bufferedio.c:_Py_IsStaticImmortal Unexecuted instantiation: textio.c:_Py_IsStaticImmortal Unexecuted instantiation: stringio.c:_Py_IsStaticImmortal Unexecuted instantiation: itertoolsmodule.c:_Py_IsStaticImmortal Unexecuted instantiation: sre.c:_Py_IsStaticImmortal Unexecuted instantiation: _sysconfig.c:_Py_IsStaticImmortal Unexecuted instantiation: _threadmodule.c:_Py_IsStaticImmortal Unexecuted instantiation: timemodule.c:_Py_IsStaticImmortal Unexecuted instantiation: _typesmodule.c:_Py_IsStaticImmortal Unexecuted instantiation: _typingmodule.c:_Py_IsStaticImmortal Unexecuted instantiation: _weakref.c:_Py_IsStaticImmortal Unexecuted instantiation: _abc.c:_Py_IsStaticImmortal Unexecuted instantiation: _functoolsmodule.c:_Py_IsStaticImmortal Unexecuted instantiation: _localemodule.c:_Py_IsStaticImmortal Unexecuted instantiation: _opcode.c:_Py_IsStaticImmortal Unexecuted instantiation: _operator.c:_Py_IsStaticImmortal Unexecuted instantiation: _stat.c:_Py_IsStaticImmortal Unexecuted instantiation: symtablemodule.c:_Py_IsStaticImmortal Unexecuted instantiation: pwdmodule.c:_Py_IsStaticImmortal Unexecuted instantiation: getpath.c:_Py_IsStaticImmortal Unexecuted instantiation: frozen.c:_Py_IsStaticImmortal Unexecuted instantiation: getbuildinfo.c:_Py_IsStaticImmortal Unexecuted instantiation: peg_api.c:_Py_IsStaticImmortal Unexecuted instantiation: file_tokenizer.c:_Py_IsStaticImmortal Unexecuted instantiation: helpers.c:_Py_IsStaticImmortal Unexecuted instantiation: myreadline.c:_Py_IsStaticImmortal Unexecuted instantiation: abstract.c:_Py_IsStaticImmortal Unexecuted instantiation: boolobject.c:_Py_IsStaticImmortal Unexecuted instantiation: bytes_methods.c:_Py_IsStaticImmortal Unexecuted instantiation: bytearrayobject.c:_Py_IsStaticImmortal Unexecuted instantiation: capsule.c:_Py_IsStaticImmortal Unexecuted instantiation: cellobject.c:_Py_IsStaticImmortal Unexecuted instantiation: classobject.c:_Py_IsStaticImmortal Unexecuted instantiation: codeobject.c:_Py_IsStaticImmortal Unexecuted instantiation: complexobject.c:_Py_IsStaticImmortal Unexecuted instantiation: descrobject.c:_Py_IsStaticImmortal Unexecuted instantiation: enumobject.c:_Py_IsStaticImmortal Unexecuted instantiation: genobject.c:_Py_IsStaticImmortal Unexecuted instantiation: fileobject.c:_Py_IsStaticImmortal Unexecuted instantiation: frameobject.c:_Py_IsStaticImmortal Unexecuted instantiation: funcobject.c:_Py_IsStaticImmortal Unexecuted instantiation: interpolationobject.c:_Py_IsStaticImmortal Unexecuted instantiation: iterobject.c:_Py_IsStaticImmortal Unexecuted instantiation: 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: structmember.c:_Py_IsStaticImmortal Unexecuted instantiation: pegen.c:_Py_IsStaticImmortal Unexecuted instantiation: pegen_errors.c:_Py_IsStaticImmortal Unexecuted instantiation: parser.c:_Py_IsStaticImmortal Unexecuted instantiation: buffer.c:_Py_IsStaticImmortal Unexecuted instantiation: lexer.c:_Py_IsStaticImmortal Unexecuted instantiation: state.c:_Py_IsStaticImmortal Unexecuted instantiation: readline_tokenizer.c:_Py_IsStaticImmortal Unexecuted instantiation: string_tokenizer.c:_Py_IsStaticImmortal Unexecuted instantiation: utf8_tokenizer.c:_Py_IsStaticImmortal Unexecuted instantiation: getcompiler.c:_Py_IsStaticImmortal Unexecuted instantiation: mystrtoul.c:_Py_IsStaticImmortal Unexecuted instantiation: token.c:_Py_IsStaticImmortal Unexecuted instantiation: action_helpers.c:_Py_IsStaticImmortal Unexecuted instantiation: string_parser.c:_Py_IsStaticImmortal |
145 | | #define _Py_IsStaticImmortal(op) _Py_IsStaticImmortal(_PyObject_CAST(op)) |
146 | | #endif // !defined(_Py_OPAQUE_PYOBJECT) |
147 | | |
148 | | // Py_SET_REFCNT() implementation for stable ABI |
149 | | PyAPI_FUNC(void) _Py_SetRefcnt(PyObject *ob, Py_ssize_t refcnt); |
150 | | |
151 | 743M | static inline void Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) { |
152 | 743M | assert(refcnt >= 0); |
153 | | #if defined(Py_LIMITED_API) && Py_LIMITED_API+0 >= 0x030d0000 |
154 | | // Stable ABI implements Py_SET_REFCNT() as a function call |
155 | | // on limited C API version 3.13 and newer. |
156 | | _Py_SetRefcnt(ob, refcnt); |
157 | | #else |
158 | | // This immortal check is for code that is unaware of immortal objects. |
159 | | // The runtime tracks these objects and we should avoid as much |
160 | | // as possible having extensions inadvertently change the refcnt |
161 | | // of an immortalized object. |
162 | 743M | if (_Py_IsImmortal(ob)) { |
163 | 796 | return; |
164 | 796 | } |
165 | 743M | #ifndef Py_GIL_DISABLED |
166 | 743M | #if SIZEOF_VOID_P > 4 |
167 | 743M | ob->ob_refcnt = (PY_UINT32_T)refcnt; |
168 | | #else |
169 | | ob->ob_refcnt = refcnt; |
170 | | #endif |
171 | | #else |
172 | | if (_Py_IsOwnedByCurrentThread(ob)) { |
173 | | if ((size_t)refcnt > (size_t)UINT32_MAX) { |
174 | | // On overflow, make the object immortal |
175 | | ob->ob_tid = _Py_UNOWNED_TID; |
176 | | ob->ob_ref_local = _Py_IMMORTAL_REFCNT_LOCAL; |
177 | | ob->ob_ref_shared = 0; |
178 | | } |
179 | | else { |
180 | | // Set local refcount to desired refcount and shared refcount |
181 | | // to zero, but preserve the shared refcount flags. |
182 | | ob->ob_ref_local = _Py_STATIC_CAST(uint32_t, refcnt); |
183 | | ob->ob_ref_shared &= _Py_REF_SHARED_FLAG_MASK; |
184 | | } |
185 | | } |
186 | | else { |
187 | | // Set local refcount to zero and shared refcount to desired refcount. |
188 | | // Mark the object as merged. |
189 | | ob->ob_tid = _Py_UNOWNED_TID; |
190 | | ob->ob_ref_local = 0; |
191 | | ob->ob_ref_shared = _Py_REF_SHARED(refcnt, _Py_REF_MERGED); |
192 | | } |
193 | | #endif // Py_GIL_DISABLED |
194 | 743M | #endif // Py_LIMITED_API+0 < 0x030d0000 |
195 | 743M | } 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 | 151 | 669M | static inline void Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) { | 152 | 669M | assert(refcnt >= 0); | 153 | | #if defined(Py_LIMITED_API) && Py_LIMITED_API+0 >= 0x030d0000 | 154 | | // Stable ABI implements Py_SET_REFCNT() as a function call | 155 | | // on limited C API version 3.13 and newer. | 156 | | _Py_SetRefcnt(ob, refcnt); | 157 | | #else | 158 | | // This immortal check is for code that is unaware of immortal objects. | 159 | | // The runtime tracks these objects and we should avoid as much | 160 | | // as possible having extensions inadvertently change the refcnt | 161 | | // of an immortalized object. | 162 | 669M | if (_Py_IsImmortal(ob)) { | 163 | 0 | return; | 164 | 0 | } | 165 | 669M | #ifndef Py_GIL_DISABLED | 166 | 669M | #if SIZEOF_VOID_P > 4 | 167 | 669M | ob->ob_refcnt = (PY_UINT32_T)refcnt; | 168 | | #else | 169 | | ob->ob_refcnt = refcnt; | 170 | | #endif | 171 | | #else | 172 | | if (_Py_IsOwnedByCurrentThread(ob)) { | 173 | | if ((size_t)refcnt > (size_t)UINT32_MAX) { | 174 | | // On overflow, make the object immortal | 175 | | ob->ob_tid = _Py_UNOWNED_TID; | 176 | | ob->ob_ref_local = _Py_IMMORTAL_REFCNT_LOCAL; | 177 | | ob->ob_ref_shared = 0; | 178 | | } | 179 | | else { | 180 | | // Set local refcount to desired refcount and shared refcount | 181 | | // to zero, but preserve the shared refcount flags. | 182 | | ob->ob_ref_local = _Py_STATIC_CAST(uint32_t, refcnt); | 183 | | ob->ob_ref_shared &= _Py_REF_SHARED_FLAG_MASK; | 184 | | } | 185 | | } | 186 | | else { | 187 | | // Set local refcount to zero and shared refcount to desired refcount. | 188 | | // Mark the object as merged. | 189 | | ob->ob_tid = _Py_UNOWNED_TID; | 190 | | ob->ob_ref_local = 0; | 191 | | ob->ob_ref_shared = _Py_REF_SHARED(refcnt, _Py_REF_MERGED); | 192 | | } | 193 | | #endif // Py_GIL_DISABLED | 194 | 669M | #endif // Py_LIMITED_API+0 < 0x030d0000 | 195 | 669M | } |
Unexecuted instantiation: memoryobject.c:Py_SET_REFCNT moduleobject.c:Py_SET_REFCNT Line | Count | Source | 151 | 796 | static inline void Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) { | 152 | 796 | assert(refcnt >= 0); | 153 | | #if defined(Py_LIMITED_API) && Py_LIMITED_API+0 >= 0x030d0000 | 154 | | // Stable ABI implements Py_SET_REFCNT() as a function call | 155 | | // on limited C API version 3.13 and newer. | 156 | | _Py_SetRefcnt(ob, refcnt); | 157 | | #else | 158 | | // This immortal check is for code that is unaware of immortal objects. | 159 | | // The runtime tracks these objects and we should avoid as much | 160 | | // as possible having extensions inadvertently change the refcnt | 161 | | // of an immortalized object. | 162 | 796 | if (_Py_IsImmortal(ob)) { | 163 | 796 | return; | 164 | 796 | } | 165 | 0 | #ifndef Py_GIL_DISABLED | 166 | 0 | #if SIZEOF_VOID_P > 4 | 167 | 0 | ob->ob_refcnt = (PY_UINT32_T)refcnt; | 168 | | #else | 169 | | ob->ob_refcnt = refcnt; | 170 | | #endif | 171 | | #else | 172 | | if (_Py_IsOwnedByCurrentThread(ob)) { | 173 | | if ((size_t)refcnt > (size_t)UINT32_MAX) { | 174 | | // On overflow, make the object immortal | 175 | | ob->ob_tid = _Py_UNOWNED_TID; | 176 | | ob->ob_ref_local = _Py_IMMORTAL_REFCNT_LOCAL; | 177 | | ob->ob_ref_shared = 0; | 178 | | } | 179 | | else { | 180 | | // Set local refcount to desired refcount and shared refcount | 181 | | // to zero, but preserve the shared refcount flags. | 182 | | ob->ob_ref_local = _Py_STATIC_CAST(uint32_t, refcnt); | 183 | | ob->ob_ref_shared &= _Py_REF_SHARED_FLAG_MASK; | 184 | | } | 185 | | } | 186 | | else { | 187 | | // Set local refcount to zero and shared refcount to desired refcount. | 188 | | // Mark the object as merged. | 189 | | ob->ob_tid = _Py_UNOWNED_TID; | 190 | | ob->ob_ref_local = 0; | 191 | | ob->ob_ref_shared = _Py_REF_SHARED(refcnt, _Py_REF_MERGED); | 192 | | } | 193 | | #endif // Py_GIL_DISABLED | 194 | 0 | #endif // Py_LIMITED_API+0 < 0x030d0000 | 195 | 0 | } |
Line | Count | Source | 151 | 45.0M | static inline void Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) { | 152 | 45.0M | assert(refcnt >= 0); | 153 | | #if defined(Py_LIMITED_API) && Py_LIMITED_API+0 >= 0x030d0000 | 154 | | // Stable ABI implements Py_SET_REFCNT() as a function call | 155 | | // on limited C API version 3.13 and newer. | 156 | | _Py_SetRefcnt(ob, refcnt); | 157 | | #else | 158 | | // This immortal check is for code that is unaware of immortal objects. | 159 | | // The runtime tracks these objects and we should avoid as much | 160 | | // as possible having extensions inadvertently change the refcnt | 161 | | // of an immortalized object. | 162 | 45.0M | if (_Py_IsImmortal(ob)) { | 163 | 0 | return; | 164 | 0 | } | 165 | 45.0M | #ifndef Py_GIL_DISABLED | 166 | 45.0M | #if SIZEOF_VOID_P > 4 | 167 | 45.0M | ob->ob_refcnt = (PY_UINT32_T)refcnt; | 168 | | #else | 169 | | ob->ob_refcnt = refcnt; | 170 | | #endif | 171 | | #else | 172 | | if (_Py_IsOwnedByCurrentThread(ob)) { | 173 | | if ((size_t)refcnt > (size_t)UINT32_MAX) { | 174 | | // On overflow, make the object immortal | 175 | | ob->ob_tid = _Py_UNOWNED_TID; | 176 | | ob->ob_ref_local = _Py_IMMORTAL_REFCNT_LOCAL; | 177 | | ob->ob_ref_shared = 0; | 178 | | } | 179 | | else { | 180 | | // Set local refcount to desired refcount and shared refcount | 181 | | // to zero, but preserve the shared refcount flags. | 182 | | ob->ob_ref_local = _Py_STATIC_CAST(uint32_t, refcnt); | 183 | | ob->ob_ref_shared &= _Py_REF_SHARED_FLAG_MASK; | 184 | | } | 185 | | } | 186 | | else { | 187 | | // Set local refcount to zero and shared refcount to desired refcount. | 188 | | // Mark the object as merged. | 189 | | ob->ob_tid = _Py_UNOWNED_TID; | 190 | | ob->ob_ref_local = 0; | 191 | | ob->ob_ref_shared = _Py_REF_SHARED(refcnt, _Py_REF_MERGED); | 192 | | } | 193 | | #endif // Py_GIL_DISABLED | 194 | 45.0M | #endif // Py_LIMITED_API+0 < 0x030d0000 | 195 | 45.0M | } |
Unexecuted instantiation: obmalloc.c:Py_SET_REFCNT Unexecuted instantiation: picklebufobject.c:Py_SET_REFCNT Unexecuted instantiation: rangeobject.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 | 151 | 1.08M | static inline void Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) { | 152 | 1.08M | assert(refcnt >= 0); | 153 | | #if defined(Py_LIMITED_API) && Py_LIMITED_API+0 >= 0x030d0000 | 154 | | // Stable ABI implements Py_SET_REFCNT() as a function call | 155 | | // on limited C API version 3.13 and newer. | 156 | | _Py_SetRefcnt(ob, refcnt); | 157 | | #else | 158 | | // This immortal check is for code that is unaware of immortal objects. | 159 | | // The runtime tracks these objects and we should avoid as much | 160 | | // as possible having extensions inadvertently change the refcnt | 161 | | // of an immortalized object. | 162 | 1.08M | if (_Py_IsImmortal(ob)) { | 163 | 0 | return; | 164 | 0 | } | 165 | 1.08M | #ifndef Py_GIL_DISABLED | 166 | 1.08M | #if SIZEOF_VOID_P > 4 | 167 | 1.08M | ob->ob_refcnt = (PY_UINT32_T)refcnt; | 168 | | #else | 169 | | ob->ob_refcnt = refcnt; | 170 | | #endif | 171 | | #else | 172 | | if (_Py_IsOwnedByCurrentThread(ob)) { | 173 | | if ((size_t)refcnt > (size_t)UINT32_MAX) { | 174 | | // On overflow, make the object immortal | 175 | | ob->ob_tid = _Py_UNOWNED_TID; | 176 | | ob->ob_ref_local = _Py_IMMORTAL_REFCNT_LOCAL; | 177 | | ob->ob_ref_shared = 0; | 178 | | } | 179 | | else { | 180 | | // Set local refcount to desired refcount and shared refcount | 181 | | // to zero, but preserve the shared refcount flags. | 182 | | ob->ob_ref_local = _Py_STATIC_CAST(uint32_t, refcnt); | 183 | | ob->ob_ref_shared &= _Py_REF_SHARED_FLAG_MASK; | 184 | | } | 185 | | } | 186 | | else { | 187 | | // Set local refcount to zero and shared refcount to desired refcount. | 188 | | // Mark the object as merged. | 189 | | ob->ob_tid = _Py_UNOWNED_TID; | 190 | | ob->ob_ref_local = 0; | 191 | | ob->ob_ref_shared = _Py_REF_SHARED(refcnt, _Py_REF_MERGED); | 192 | | } | 193 | | #endif // Py_GIL_DISABLED | 194 | 1.08M | #endif // Py_LIMITED_API+0 < 0x030d0000 | 195 | 1.08M | } |
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: symtable.c:Py_SET_REFCNT Unexecuted instantiation: sysmodule.c:Py_SET_REFCNT Unexecuted instantiation: thread.c:Py_SET_REFCNT Unexecuted instantiation: traceback.c:Py_SET_REFCNT Unexecuted instantiation: tracemalloc.c:Py_SET_REFCNT Unexecuted instantiation: getopt.c:Py_SET_REFCNT Unexecuted instantiation: pystrcmp.c:Py_SET_REFCNT Unexecuted instantiation: pystrtod.c:Py_SET_REFCNT Unexecuted instantiation: pystrhex.c:Py_SET_REFCNT Unexecuted instantiation: dtoa.c:Py_SET_REFCNT Unexecuted instantiation: fileutils.c:Py_SET_REFCNT Unexecuted instantiation: suggestions.c:Py_SET_REFCNT Unexecuted instantiation: perf_trampoline.c:Py_SET_REFCNT Unexecuted instantiation: perf_jit_trampoline.c:Py_SET_REFCNT Unexecuted instantiation: remote_debugging.c:Py_SET_REFCNT Unexecuted instantiation: dynload_shlib.c:Py_SET_REFCNT Unexecuted instantiation: config.c:Py_SET_REFCNT Unexecuted instantiation: gcmodule.c:Py_SET_REFCNT Unexecuted instantiation: _asynciomodule.c:Py_SET_REFCNT Unexecuted instantiation: atexitmodule.c:Py_SET_REFCNT Unexecuted instantiation: faulthandler.c:Py_SET_REFCNT Unexecuted instantiation: posixmodule.c:Py_SET_REFCNT Unexecuted instantiation: signalmodule.c:Py_SET_REFCNT Unexecuted instantiation: _tracemalloc.c:Py_SET_REFCNT Unexecuted instantiation: _suggestions.c:Py_SET_REFCNT Unexecuted instantiation: _datetimemodule.c:Py_SET_REFCNT Unexecuted instantiation: _codecsmodule.c:Py_SET_REFCNT Unexecuted instantiation: _collectionsmodule.c:Py_SET_REFCNT Unexecuted instantiation: errnomodule.c:Py_SET_REFCNT Unexecuted instantiation: _iomodule.c:Py_SET_REFCNT Unexecuted instantiation: iobase.c:Py_SET_REFCNT Unexecuted instantiation: fileio.c:Py_SET_REFCNT Unexecuted instantiation: bytesio.c:Py_SET_REFCNT Unexecuted instantiation: bufferedio.c:Py_SET_REFCNT Unexecuted instantiation: textio.c:Py_SET_REFCNT Unexecuted instantiation: stringio.c:Py_SET_REFCNT Unexecuted instantiation: itertoolsmodule.c:Py_SET_REFCNT Unexecuted instantiation: sre.c:Py_SET_REFCNT Unexecuted instantiation: _sysconfig.c:Py_SET_REFCNT Unexecuted instantiation: _threadmodule.c:Py_SET_REFCNT Unexecuted instantiation: timemodule.c:Py_SET_REFCNT Unexecuted instantiation: _typesmodule.c:Py_SET_REFCNT Unexecuted instantiation: _typingmodule.c:Py_SET_REFCNT Unexecuted instantiation: _weakref.c:Py_SET_REFCNT Unexecuted instantiation: _abc.c:Py_SET_REFCNT Unexecuted instantiation: _functoolsmodule.c:Py_SET_REFCNT Unexecuted instantiation: _localemodule.c:Py_SET_REFCNT Unexecuted instantiation: _opcode.c:Py_SET_REFCNT Unexecuted instantiation: _operator.c:Py_SET_REFCNT Unexecuted instantiation: _stat.c:Py_SET_REFCNT Unexecuted instantiation: symtablemodule.c:Py_SET_REFCNT Unexecuted instantiation: pwdmodule.c:Py_SET_REFCNT Unexecuted instantiation: getpath.c:Py_SET_REFCNT Unexecuted instantiation: frozen.c:Py_SET_REFCNT Unexecuted instantiation: getbuildinfo.c:Py_SET_REFCNT Unexecuted instantiation: peg_api.c:Py_SET_REFCNT Unexecuted instantiation: file_tokenizer.c:Py_SET_REFCNT Unexecuted instantiation: helpers.c:Py_SET_REFCNT Unexecuted instantiation: myreadline.c:Py_SET_REFCNT Unexecuted instantiation: abstract.c:Py_SET_REFCNT Unexecuted instantiation: boolobject.c:Py_SET_REFCNT Unexecuted instantiation: bytes_methods.c:Py_SET_REFCNT Unexecuted instantiation: bytearrayobject.c:Py_SET_REFCNT Unexecuted instantiation: capsule.c:Py_SET_REFCNT Unexecuted instantiation: cellobject.c:Py_SET_REFCNT Unexecuted instantiation: classobject.c:Py_SET_REFCNT codeobject.c:Py_SET_REFCNT Line | Count | Source | 151 | 231k | static inline void Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) { | 152 | 231k | assert(refcnt >= 0); | 153 | | #if defined(Py_LIMITED_API) && Py_LIMITED_API+0 >= 0x030d0000 | 154 | | // Stable ABI implements Py_SET_REFCNT() as a function call | 155 | | // on limited C API version 3.13 and newer. | 156 | | _Py_SetRefcnt(ob, refcnt); | 157 | | #else | 158 | | // This immortal check is for code that is unaware of immortal objects. | 159 | | // The runtime tracks these objects and we should avoid as much | 160 | | // as possible having extensions inadvertently change the refcnt | 161 | | // of an immortalized object. | 162 | 231k | if (_Py_IsImmortal(ob)) { | 163 | 0 | return; | 164 | 0 | } | 165 | 231k | #ifndef Py_GIL_DISABLED | 166 | 231k | #if SIZEOF_VOID_P > 4 | 167 | 231k | ob->ob_refcnt = (PY_UINT32_T)refcnt; | 168 | | #else | 169 | | ob->ob_refcnt = refcnt; | 170 | | #endif | 171 | | #else | 172 | | if (_Py_IsOwnedByCurrentThread(ob)) { | 173 | | if ((size_t)refcnt > (size_t)UINT32_MAX) { | 174 | | // On overflow, make the object immortal | 175 | | ob->ob_tid = _Py_UNOWNED_TID; | 176 | | ob->ob_ref_local = _Py_IMMORTAL_REFCNT_LOCAL; | 177 | | ob->ob_ref_shared = 0; | 178 | | } | 179 | | else { | 180 | | // Set local refcount to desired refcount and shared refcount | 181 | | // to zero, but preserve the shared refcount flags. | 182 | | ob->ob_ref_local = _Py_STATIC_CAST(uint32_t, refcnt); | 183 | | ob->ob_ref_shared &= _Py_REF_SHARED_FLAG_MASK; | 184 | | } | 185 | | } | 186 | | else { | 187 | | // Set local refcount to zero and shared refcount to desired refcount. | 188 | | // Mark the object as merged. | 189 | | ob->ob_tid = _Py_UNOWNED_TID; | 190 | | ob->ob_ref_local = 0; | 191 | | ob->ob_ref_shared = _Py_REF_SHARED(refcnt, _Py_REF_MERGED); | 192 | | } | 193 | | #endif // Py_GIL_DISABLED | 194 | 231k | #endif // Py_LIMITED_API+0 < 0x030d0000 | 195 | 231k | } |
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 | 151 | 27.5M | static inline void Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) { | 152 | 27.5M | assert(refcnt >= 0); | 153 | | #if defined(Py_LIMITED_API) && Py_LIMITED_API+0 >= 0x030d0000 | 154 | | // Stable ABI implements Py_SET_REFCNT() as a function call | 155 | | // on limited C API version 3.13 and newer. | 156 | | _Py_SetRefcnt(ob, refcnt); | 157 | | #else | 158 | | // This immortal check is for code that is unaware of immortal objects. | 159 | | // The runtime tracks these objects and we should avoid as much | 160 | | // as possible having extensions inadvertently change the refcnt | 161 | | // of an immortalized object. | 162 | 27.5M | if (_Py_IsImmortal(ob)) { | 163 | 0 | return; | 164 | 0 | } | 165 | 27.5M | #ifndef Py_GIL_DISABLED | 166 | 27.5M | #if SIZEOF_VOID_P > 4 | 167 | 27.5M | ob->ob_refcnt = (PY_UINT32_T)refcnt; | 168 | | #else | 169 | | ob->ob_refcnt = refcnt; | 170 | | #endif | 171 | | #else | 172 | | if (_Py_IsOwnedByCurrentThread(ob)) { | 173 | | if ((size_t)refcnt > (size_t)UINT32_MAX) { | 174 | | // On overflow, make the object immortal | 175 | | ob->ob_tid = _Py_UNOWNED_TID; | 176 | | ob->ob_ref_local = _Py_IMMORTAL_REFCNT_LOCAL; | 177 | | ob->ob_ref_shared = 0; | 178 | | } | 179 | | else { | 180 | | // Set local refcount to desired refcount and shared refcount | 181 | | // to zero, but preserve the shared refcount flags. | 182 | | ob->ob_ref_local = _Py_STATIC_CAST(uint32_t, refcnt); | 183 | | ob->ob_ref_shared &= _Py_REF_SHARED_FLAG_MASK; | 184 | | } | 185 | | } | 186 | | else { | 187 | | // Set local refcount to zero and shared refcount to desired refcount. | 188 | | // Mark the object as merged. | 189 | | ob->ob_tid = _Py_UNOWNED_TID; | 190 | | ob->ob_ref_local = 0; | 191 | | ob->ob_ref_shared = _Py_REF_SHARED(refcnt, _Py_REF_MERGED); | 192 | | } | 193 | | #endif // Py_GIL_DISABLED | 194 | 27.5M | #endif // Py_LIMITED_API+0 < 0x030d0000 | 195 | 27.5M | } |
Unexecuted instantiation: interpolationobject.c:Py_SET_REFCNT Unexecuted instantiation: iterobject.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: structmember.c:Py_SET_REFCNT Unexecuted instantiation: pegen.c:Py_SET_REFCNT Unexecuted instantiation: pegen_errors.c:Py_SET_REFCNT Unexecuted instantiation: parser.c:Py_SET_REFCNT Unexecuted instantiation: buffer.c:Py_SET_REFCNT Unexecuted instantiation: lexer.c:Py_SET_REFCNT Unexecuted instantiation: state.c:Py_SET_REFCNT Unexecuted instantiation: readline_tokenizer.c:Py_SET_REFCNT Unexecuted instantiation: string_tokenizer.c:Py_SET_REFCNT Unexecuted instantiation: utf8_tokenizer.c:Py_SET_REFCNT Unexecuted instantiation: getcompiler.c:Py_SET_REFCNT Unexecuted instantiation: mystrtoul.c:Py_SET_REFCNT Unexecuted instantiation: token.c:Py_SET_REFCNT Unexecuted instantiation: action_helpers.c:Py_SET_REFCNT Unexecuted instantiation: string_parser.c:Py_SET_REFCNT |
196 | | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000 |
197 | 743M | # define Py_SET_REFCNT(ob, refcnt) Py_SET_REFCNT(_PyObject_CAST(ob), (refcnt)) |
198 | | #endif |
199 | | |
200 | | |
201 | | /* |
202 | | The macros Py_INCREF(op) and Py_DECREF(op) are used to increment or decrement |
203 | | reference counts. Py_DECREF calls the object's deallocator function when |
204 | | the refcount falls to 0; for |
205 | | objects that don't contain references to other objects or heap memory |
206 | | this can be the standard function free(). Both macros can be used |
207 | | wherever a void expression is allowed. The argument must not be a |
208 | | NULL pointer. If it may be NULL, use Py_XINCREF/Py_XDECREF instead. |
209 | | The macro _Py_NewReference(op) initialize reference counts to 1, and |
210 | | in special builds (Py_REF_DEBUG, Py_TRACE_REFS) performs additional |
211 | | bookkeeping appropriate to the special build. |
212 | | |
213 | | We assume that the reference count field can never overflow; this can |
214 | | be proven when the size of the field is the same as the pointer size, so |
215 | | we ignore the possibility. Provided a C int is at least 32 bits (which |
216 | | is implicitly assumed in many parts of this code), that's enough for |
217 | | about 2**31 references to an object. |
218 | | |
219 | | XXX The following became out of date in Python 2.2, but I'm not sure |
220 | | XXX what the full truth is now. Certainly, heap-allocated type objects |
221 | | XXX can and should be deallocated. |
222 | | Type objects should never be deallocated; the type pointer in an object |
223 | | is not considered to be a reference to the type object, to save |
224 | | complications in the deallocation function. (This is actually a |
225 | | decision that's up to the implementer of each new type so if you want, |
226 | | you can count such references to the type object.) |
227 | | */ |
228 | | |
229 | | #if defined(Py_REF_DEBUG) && !defined(Py_LIMITED_API) |
230 | | PyAPI_FUNC(void) _Py_NegativeRefcount(const char *filename, int lineno, |
231 | | PyObject *op); |
232 | | PyAPI_FUNC(void) _Py_INCREF_IncRefTotal(void); |
233 | | PyAPI_FUNC(void) _Py_DECREF_DecRefTotal(void); |
234 | | #endif // Py_REF_DEBUG && !Py_LIMITED_API |
235 | | |
236 | | PyAPI_FUNC(void) _Py_Dealloc(PyObject *); |
237 | | |
238 | | |
239 | | /* |
240 | | These are provided as conveniences to Python runtime embedders, so that |
241 | | they can have object code that is not dependent on Python compilation flags. |
242 | | */ |
243 | | PyAPI_FUNC(void) Py_IncRef(PyObject *); |
244 | | PyAPI_FUNC(void) Py_DecRef(PyObject *); |
245 | | |
246 | | // Similar to Py_IncRef() and Py_DecRef() but the argument must be non-NULL. |
247 | | // Private functions used by Py_INCREF() and Py_DECREF(). |
248 | | PyAPI_FUNC(void) _Py_IncRef(PyObject *); |
249 | | PyAPI_FUNC(void) _Py_DecRef(PyObject *); |
250 | | |
251 | | static inline Py_ALWAYS_INLINE void Py_INCREF(PyObject *op) |
252 | 15.0G | { |
253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) |
254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API |
255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() |
256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. |
257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. |
258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 |
259 | | _Py_IncRef(op); |
260 | | # else |
261 | | Py_IncRef(op); |
262 | | # endif |
263 | | #else |
264 | | // Non-limited C API and limited C API for Python 3.9 and older access |
265 | | // directly PyObject.ob_refcnt. |
266 | | #if defined(Py_GIL_DISABLED) |
267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); |
268 | | uint32_t new_local = local + 1; |
269 | | if (new_local == 0) { |
270 | | _Py_INCREF_IMMORTAL_STAT_INC(); |
271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing |
272 | | return; |
273 | | } |
274 | | if (_Py_IsOwnedByCurrentThread(op)) { |
275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); |
276 | | } |
277 | | else { |
278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); |
279 | | } |
280 | | #elif SIZEOF_VOID_P > 4 |
281 | 15.0G | PY_UINT32_T cur_refcnt = op->ob_refcnt; |
282 | 15.0G | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { |
283 | | // the object is immortal |
284 | 6.97G | _Py_INCREF_IMMORTAL_STAT_INC(); |
285 | 6.97G | return; |
286 | 6.97G | } |
287 | 8.04G | op->ob_refcnt = cur_refcnt + 1; |
288 | | #else |
289 | | if (_Py_IsImmortal(op)) { |
290 | | _Py_INCREF_IMMORTAL_STAT_INC(); |
291 | | return; |
292 | | } |
293 | | op->ob_refcnt++; |
294 | | #endif |
295 | 8.04G | _Py_INCREF_STAT_INC(); |
296 | | #ifdef Py_REF_DEBUG |
297 | | // Don't count the incref if the object is immortal. |
298 | | if (!_Py_IsImmortal(op)) { |
299 | | _Py_INCREF_IncRefTotal(); |
300 | | } |
301 | | #endif |
302 | 8.04G | #endif |
303 | 8.04G | } Line | Count | Source | 252 | 52.3M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 52.3M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 52.3M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 50.5M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 50.5M | return; | 286 | 50.5M | } | 287 | 1.85M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 1.85M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 1.85M | #endif | 303 | 1.85M | } |
Line | Count | Source | 252 | 29.0M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 29.0M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 29.0M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 10.3M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 10.3M | return; | 286 | 10.3M | } | 287 | 18.7M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 18.7M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 18.7M | #endif | 303 | 18.7M | } |
Line | Count | Source | 252 | 152M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 152M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 152M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 44.5M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 44.5M | return; | 286 | 44.5M | } | 287 | 107M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 107M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 107M | #endif | 303 | 107M | } |
genericaliasobject.c:Py_INCREF Line | Count | Source | 252 | 1.45k | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 1.45k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 1.45k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 1.41k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 1.41k | return; | 286 | 1.41k | } | 287 | 36 | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 36 | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 36 | #endif | 303 | 36 | } |
Line | Count | Source | 252 | 1.34M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 1.34M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 1.34M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 1.34M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 1.34M | return; | 286 | 1.34M | } | 287 | 0 | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 0 | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 0 | #endif | 303 | 0 | } |
Line | Count | Source | 252 | 1.23G | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 1.23G | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 1.23G | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 286M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 286M | return; | 286 | 286M | } | 287 | 951M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 951M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 951M | #endif | 303 | 951M | } |
Line | Count | Source | 252 | 152M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 152M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 152M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 152M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 152M | return; | 286 | 152M | } | 287 | 41.9k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 41.9k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 41.9k | #endif | 303 | 41.9k | } |
Line | Count | Source | 252 | 1.92G | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 1.92G | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 1.92G | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 536M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 536M | return; | 286 | 536M | } | 287 | 1.39G | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 1.39G | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 1.39G | #endif | 303 | 1.39G | } |
Line | Count | Source | 252 | 1.28M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 1.28M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 1.28M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 0 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 0 | return; | 286 | 0 | } | 287 | 1.28M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 1.28M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 1.28M | #endif | 303 | 1.28M | } |
Line | Count | Source | 252 | 7.73k | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 7.73k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 7.73k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 6.85k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 6.85k | return; | 286 | 6.85k | } | 287 | 875 | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 875 | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 875 | #endif | 303 | 875 | } |
Line | Count | Source | 252 | 1.09G | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 1.09G | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 1.09G | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 756M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 756M | return; | 286 | 756M | } | 287 | 335M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 335M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 335M | #endif | 303 | 335M | } |
Unexecuted instantiation: obmalloc.c:Py_INCREF Unexecuted instantiation: picklebufobject.c:Py_INCREF Line | Count | Source | 252 | 112 | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 112 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 112 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 84 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 84 | return; | 286 | 84 | } | 287 | 28 | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 28 | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 28 | #endif | 303 | 28 | } |
Line | Count | Source | 252 | 12.9M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 12.9M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 12.9M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 866k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 866k | return; | 286 | 866k | } | 287 | 12.1M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 12.1M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 12.1M | #endif | 303 | 12.1M | } |
Line | Count | Source | 252 | 55.9M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 55.9M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 55.9M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 55.9M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 55.9M | return; | 286 | 55.9M | } | 287 | 1.22k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 1.22k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 1.22k | #endif | 303 | 1.22k | } |
Unexecuted instantiation: structseq.c:Py_INCREF templateobject.c:Py_INCREF Line | Count | Source | 252 | 4 | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 4 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 4 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 2 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 2 | return; | 286 | 2 | } | 287 | 2 | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 2 | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 2 | #endif | 303 | 2 | } |
Line | Count | Source | 252 | 4.85G | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 4.85G | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 4.85G | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 2.20G | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 2.20G | return; | 286 | 2.20G | } | 287 | 2.65G | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 2.65G | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 2.65G | #endif | 303 | 2.65G | } |
Line | Count | Source | 252 | 425M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 425M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 425M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 176M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 176M | return; | 286 | 176M | } | 287 | 249M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 249M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 249M | #endif | 303 | 249M | } |
typevarobject.c:Py_INCREF Line | Count | Source | 252 | 240 | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 240 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 240 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 148 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 148 | return; | 286 | 148 | } | 287 | 92 | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 92 | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 92 | #endif | 303 | 92 | } |
unicode_format.c:Py_INCREF Line | Count | Source | 252 | 54.9M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 54.9M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 54.9M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 22.3M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 22.3M | return; | 286 | 22.3M | } | 287 | 32.6M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 32.6M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 32.6M | #endif | 303 | 32.6M | } |
Unexecuted instantiation: unicode_formatter.c:Py_INCREF unicode_writer.c:Py_INCREF Line | Count | Source | 252 | 9.98k | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 9.98k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 9.98k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 0 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 0 | return; | 286 | 0 | } | 287 | 9.98k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 9.98k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 9.98k | #endif | 303 | 9.98k | } |
Unexecuted instantiation: unicodectype.c:Py_INCREF unicodeobject.c:Py_INCREF Line | Count | Source | 252 | 804M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 804M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 804M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 713M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 713M | return; | 286 | 713M | } | 287 | 91.0M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 91.0M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 91.0M | #endif | 303 | 91.0M | } |
Unexecuted instantiation: unionobject.c:Py_INCREF weakrefobject.c:Py_INCREF Line | Count | Source | 252 | 411k | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 411k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 411k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 2.33k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 2.33k | return; | 286 | 2.33k | } | 287 | 409k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 409k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 409k | #endif | 303 | 409k | } |
Line | Count | Source | 252 | 2.74M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 2.74M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 2.74M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 1.31M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 1.31M | return; | 286 | 1.31M | } | 287 | 1.42M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 1.42M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 1.42M | #endif | 303 | 1.42M | } |
Line | Count | Source | 252 | 75.1M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 75.1M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 75.1M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 30.3M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 30.3M | return; | 286 | 30.3M | } | 287 | 44.7M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 44.7M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 44.7M | #endif | 303 | 44.7M | } |
Line | Count | Source | 252 | 1.78G | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 1.78G | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 1.78G | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 983M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 983M | return; | 286 | 983M | } | 287 | 801M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 801M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 801M | #endif | 303 | 801M | } |
Line | Count | Source | 252 | 2.73M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 2.73M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 2.73M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 318k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 318k | return; | 286 | 318k | } | 287 | 2.41M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 2.41M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 2.41M | #endif | 303 | 2.41M | } |
Line | Count | Source | 252 | 3.44k | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 3.44k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 3.44k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 3.44k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 3.44k | return; | 286 | 3.44k | } | 287 | 6 | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 6 | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 6 | #endif | 303 | 6 | } |
Line | Count | Source | 252 | 135k | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 135k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 135k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 59.0k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 59.0k | return; | 286 | 59.0k | } | 287 | 76.2k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 76.2k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 76.2k | #endif | 303 | 76.2k | } |
Line | Count | Source | 252 | 42 | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 42 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 42 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 13 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 13 | return; | 286 | 13 | } | 287 | 29 | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 29 | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 29 | #endif | 303 | 29 | } |
Line | Count | Source | 252 | 86.2M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 86.2M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 86.2M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 37.0M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 37.0M | return; | 286 | 37.0M | } | 287 | 49.1M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 49.1M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 49.1M | #endif | 303 | 49.1M | } |
Line | Count | Source | 252 | 113k | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 113k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 113k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 55.8k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 55.8k | return; | 286 | 55.8k | } | 287 | 57.2k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 57.2k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 57.2k | #endif | 303 | 57.2k | } |
Line | Count | Source | 252 | 39.0M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 39.0M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 39.0M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 0 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 0 | return; | 286 | 0 | } | 287 | 39.0M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 39.0M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 39.0M | #endif | 303 | 39.0M | } |
Unexecuted instantiation: future.c:Py_INCREF Line | Count | Source | 252 | 452M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 452M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 452M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 383M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 383M | return; | 286 | 383M | } | 287 | 69.0M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 69.0M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 69.0M | #endif | 303 | 69.0M | } |
Unexecuted instantiation: gc_gil.c:Py_INCREF Line | Count | Source | 252 | 2.39M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 2.39M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 2.39M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 1.72M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 1.72M | return; | 286 | 1.72M | } | 287 | 674k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 674k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 674k | #endif | 303 | 674k | } |
Unexecuted instantiation: ceval_gil.c:Py_INCREF Unexecuted instantiation: hamt.c:Py_INCREF Unexecuted instantiation: hashtable.c:Py_INCREF Line | Count | Source | 252 | 6.25M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 6.25M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 6.25M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 1.77M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 1.77M | return; | 286 | 1.77M | } | 287 | 4.47M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 4.47M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 4.47M | #endif | 303 | 4.47M | } |
Line | Count | Source | 252 | 932 | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 932 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 932 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 730 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 730 | return; | 286 | 730 | } | 287 | 202 | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 202 | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 202 | #endif | 303 | 202 | } |
Line | Count | Source | 252 | 476 | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 476 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 476 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 476 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 476 | return; | 286 | 476 | } | 287 | 0 | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 0 | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 0 | #endif | 303 | 0 | } |
Unexecuted instantiation: instrumentation.c:Py_INCREF Unexecuted instantiation: instruction_sequence.c:Py_INCREF Line | Count | Source | 252 | 24.4k | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 24.4k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 24.4k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 0 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 0 | return; | 286 | 0 | } | 287 | 24.4k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 24.4k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 24.4k | #endif | 303 | 24.4k | } |
Unexecuted instantiation: legacy_tracing.c:Py_INCREF Unexecuted instantiation: lock.c:Py_INCREF Line | Count | Source | 252 | 1.66M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 1.66M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 1.66M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 1.52M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 1.52M | return; | 286 | 1.52M | } | 287 | 138k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 138k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 138k | #endif | 303 | 138k | } |
Line | Count | Source | 252 | 2.92M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 2.92M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 2.92M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 821k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 821k | return; | 286 | 821k | } | 287 | 2.10M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 2.10M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 2.10M | #endif | 303 | 2.10M | } |
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 | 252 | 28 | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 28 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 28 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 0 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 0 | return; | 286 | 0 | } | 287 | 28 | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 28 | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 28 | #endif | 303 | 28 | } |
Unexecuted instantiation: pymath.c:Py_INCREF Line | Count | Source | 252 | 571k | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 571k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 571k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 0 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 0 | return; | 286 | 0 | } | 287 | 571k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 571k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 571k | #endif | 303 | 571k | } |
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 Line | Count | Source | 252 | 341k | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 341k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 341k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 340k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 340k | return; | 286 | 340k | } | 287 | 828 | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 828 | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 828 | #endif | 303 | 828 | } |
Line | Count | Source | 252 | 2.21k | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 2.21k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 2.21k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 1.48k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 1.48k | return; | 286 | 1.48k | } | 287 | 721 | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 721 | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 721 | #endif | 303 | 721 | } |
Unexecuted instantiation: thread.c:Py_INCREF Line | Count | Source | 252 | 66.5M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 66.5M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 66.5M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 0 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 0 | return; | 286 | 0 | } | 287 | 66.5M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 66.5M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 66.5M | #endif | 303 | 66.5M | } |
Unexecuted instantiation: tracemalloc.c:Py_INCREF Unexecuted instantiation: getopt.c:Py_INCREF Unexecuted instantiation: pystrcmp.c:Py_INCREF Unexecuted instantiation: pystrtod.c:Py_INCREF Unexecuted instantiation: pystrhex.c:Py_INCREF Unexecuted instantiation: dtoa.c:Py_INCREF Unexecuted instantiation: fileutils.c:Py_INCREF Unexecuted instantiation: suggestions.c:Py_INCREF Unexecuted instantiation: perf_trampoline.c:Py_INCREF Unexecuted instantiation: perf_jit_trampoline.c:Py_INCREF Unexecuted instantiation: 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 | 252 | 2 | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 2 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 2 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 0 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 0 | return; | 286 | 0 | } | 287 | 2 | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 2 | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 2 | #endif | 303 | 2 | } |
Unexecuted instantiation: faulthandler.c:Py_INCREF Line | Count | Source | 252 | 3.97M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 3.97M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 3.97M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 768k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 768k | return; | 286 | 768k | } | 287 | 3.20M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 3.20M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 3.20M | #endif | 303 | 3.20M | } |
Line | Count | Source | 252 | 1.79k | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 1.79k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 1.79k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 1.79k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 1.79k | return; | 286 | 1.79k | } | 287 | 0 | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 0 | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 0 | #endif | 303 | 0 | } |
Unexecuted instantiation: _tracemalloc.c:Py_INCREF Unexecuted instantiation: _suggestions.c:Py_INCREF _datetimemodule.c:Py_INCREF Line | Count | Source | 252 | 225 | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 225 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 225 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 165 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 165 | return; | 286 | 165 | } | 287 | 60 | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 60 | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 60 | #endif | 303 | 60 | } |
Unexecuted instantiation: _codecsmodule.c:Py_INCREF _collectionsmodule.c:Py_INCREF Line | Count | Source | 252 | 23.3M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 23.3M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 23.3M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 20.1M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 20.1M | return; | 286 | 20.1M | } | 287 | 3.14M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 3.14M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 3.14M | #endif | 303 | 3.14M | } |
Unexecuted instantiation: errnomodule.c:Py_INCREF Line | Count | Source | 252 | 349 | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 349 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 349 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 349 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 349 | return; | 286 | 349 | } | 287 | 0 | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 0 | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 0 | #endif | 303 | 0 | } |
Line | Count | Source | 252 | 65.8k | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 65.8k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 65.8k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 0 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 0 | return; | 286 | 0 | } | 287 | 65.8k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 65.8k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 65.8k | #endif | 303 | 65.8k | } |
Unexecuted instantiation: fileio.c:Py_INCREF Line | Count | Source | 252 | 50.7k | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 50.7k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 50.7k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 422 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 422 | return; | 286 | 422 | } | 287 | 50.3k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 50.3k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 50.3k | #endif | 303 | 50.3k | } |
Line | Count | Source | 252 | 26.7k | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 26.7k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 26.7k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 3 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 3 | return; | 286 | 3 | } | 287 | 26.7k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 26.7k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 26.7k | #endif | 303 | 26.7k | } |
Line | Count | Source | 252 | 409k | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 409k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 409k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 20.8k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 20.8k | return; | 286 | 20.8k | } | 287 | 388k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 388k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 388k | #endif | 303 | 388k | } |
Line | Count | Source | 252 | 22.0k | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 22.0k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 22.0k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 87 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 87 | return; | 286 | 87 | } | 287 | 21.9k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 21.9k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 21.9k | #endif | 303 | 21.9k | } |
itertoolsmodule.c:Py_INCREF Line | Count | Source | 252 | 40.1k | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 40.1k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 40.1k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 39.3k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 39.3k | return; | 286 | 39.3k | } | 287 | 816 | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 816 | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 816 | #endif | 303 | 816 | } |
Line | Count | Source | 252 | 260M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 260M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 260M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 77.0M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 77.0M | return; | 286 | 77.0M | } | 287 | 183M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 183M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 183M | #endif | 303 | 183M | } |
Unexecuted instantiation: _sysconfig.c:Py_INCREF _threadmodule.c:Py_INCREF Line | Count | Source | 252 | 4 | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 4 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 4 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 2 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 2 | return; | 286 | 2 | } | 287 | 2 | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 2 | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 2 | #endif | 303 | 2 | } |
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 | 252 | 29.1k | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 29.1k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 29.1k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 28.9k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 28.9k | return; | 286 | 28.9k | } | 287 | 214 | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 214 | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 214 | #endif | 303 | 214 | } |
_functoolsmodule.c:Py_INCREF Line | Count | Source | 252 | 233k | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 233k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 233k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 295 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 295 | return; | 286 | 295 | } | 287 | 233k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 233k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 233k | #endif | 303 | 233k | } |
Unexecuted instantiation: _localemodule.c:Py_INCREF Unexecuted instantiation: _opcode.c:Py_INCREF Line | Count | Source | 252 | 1.35M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 1.35M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 1.35M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 1.31M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 1.31M | return; | 286 | 1.31M | } | 287 | 34.4k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 34.4k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 34.4k | #endif | 303 | 34.4k | } |
Unexecuted instantiation: _stat.c:Py_INCREF Unexecuted instantiation: symtablemodule.c:Py_INCREF Unexecuted instantiation: pwdmodule.c:Py_INCREF Line | Count | Source | 252 | 308 | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 308 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 308 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 308 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 308 | return; | 286 | 308 | } | 287 | 0 | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 0 | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 0 | #endif | 303 | 0 | } |
Unexecuted instantiation: frozen.c:Py_INCREF Unexecuted instantiation: getbuildinfo.c:Py_INCREF Unexecuted instantiation: peg_api.c:Py_INCREF Unexecuted instantiation: file_tokenizer.c:Py_INCREF Unexecuted instantiation: helpers.c:Py_INCREF Unexecuted instantiation: myreadline.c:Py_INCREF Line | Count | Source | 252 | 660M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 660M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 660M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 331M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 331M | return; | 286 | 331M | } | 287 | 329M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 329M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 329M | #endif | 303 | 329M | } |
Unexecuted instantiation: boolobject.c:Py_INCREF Unexecuted instantiation: bytes_methods.c:Py_INCREF bytearrayobject.c:Py_INCREF Line | Count | Source | 252 | 221k | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 221k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 221k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 0 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 0 | return; | 286 | 0 | } | 287 | 221k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 221k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 221k | #endif | 303 | 221k | } |
Unexecuted instantiation: capsule.c:Py_INCREF Line | Count | Source | 252 | 132k | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 132k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 132k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 52.2k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 52.2k | return; | 286 | 52.2k | } | 287 | 80.3k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 80.3k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 80.3k | #endif | 303 | 80.3k | } |
Line | Count | Source | 252 | 77.0M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 77.0M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 77.0M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 10 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 10 | return; | 286 | 10 | } | 287 | 77.0M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 77.0M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 77.0M | #endif | 303 | 77.0M | } |
Line | Count | Source | 252 | 1.67M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 1.67M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 1.67M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 804k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 804k | return; | 286 | 804k | } | 287 | 875k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 875k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 875k | #endif | 303 | 875k | } |
complexobject.c:Py_INCREF Line | Count | Source | 252 | 3.84k | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 3.84k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 3.84k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 3.84k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 3.84k | return; | 286 | 3.84k | } | 287 | 0 | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 0 | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 0 | #endif | 303 | 0 | } |
Line | Count | Source | 252 | 23.0M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 23.0M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 23.0M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 53.1k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 53.1k | return; | 286 | 53.1k | } | 287 | 22.9M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 22.9M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 22.9M | #endif | 303 | 22.9M | } |
Line | Count | Source | 252 | 97.6M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 97.6M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 97.6M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 0 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 0 | return; | 286 | 0 | } | 287 | 97.6M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 97.6M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 97.6M | #endif | 303 | 97.6M | } |
Line | Count | Source | 252 | 44.7M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 44.7M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 44.7M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 44.6M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 44.6M | return; | 286 | 44.6M | } | 287 | 73.6k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 73.6k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 73.6k | #endif | 303 | 73.6k | } |
Unexecuted instantiation: fileobject.c:Py_INCREF Line | Count | Source | 252 | 12.0M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 12.0M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 12.0M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 0 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 0 | return; | 286 | 0 | } | 287 | 12.0M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 12.0M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 12.0M | #endif | 303 | 12.0M | } |
Line | Count | Source | 252 | 89.0M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 89.0M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 89.0M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 41.3M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 41.3M | return; | 286 | 41.3M | } | 287 | 47.6M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 47.6M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 47.6M | #endif | 303 | 47.6M | } |
Unexecuted instantiation: interpolationobject.c:Py_INCREF Line | Count | Source | 252 | 1.62M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 1.62M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 1.62M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 405k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 405k | return; | 286 | 405k | } | 287 | 1.22M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 1.22M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 1.22M | #endif | 303 | 1.22M | } |
Line | Count | Source | 252 | 376 | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 376 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 376 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 352 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 352 | return; | 286 | 352 | } | 287 | 24 | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 24 | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 24 | #endif | 303 | 24 | } |
Line | Count | Source | 252 | 343M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 343M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 343M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 6.89M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 6.89M | return; | 286 | 6.89M | } | 287 | 336M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 336M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 336M | #endif | 303 | 336M | } |
Unexecuted instantiation: namespaceobject.c:Py_INCREF Unexecuted instantiation: _contextvars.c:Py_INCREF Line | Count | Source | 252 | 401k | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 401k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 401k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 212k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 212k | return; | 286 | 212k | } | 287 | 189k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 189k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 189k | #endif | 303 | 189k | } |
Unexecuted instantiation: Python-tokenize.c:Py_INCREF Unexecuted instantiation: asdl.c:Py_INCREF Line | Count | Source | 252 | 56.9k | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 56.9k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 56.9k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 56.7k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 56.7k | return; | 286 | 56.7k | } | 287 | 163 | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 163 | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 163 | #endif | 303 | 163 | } |
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 | 252 | 2.11M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 2.11M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 2.11M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 1.04M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 1.04M | return; | 286 | 1.04M | } | 287 | 1.06M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 1.06M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 1.06M | #endif | 303 | 1.06M | } |
Line | Count | Source | 252 | 19.1k | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 19.1k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 19.1k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 358 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 358 | return; | 286 | 358 | } | 287 | 18.8k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 18.8k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 18.8k | #endif | 303 | 18.8k | } |
Unexecuted instantiation: pegen_errors.c:Py_INCREF Unexecuted instantiation: parser.c:Py_INCREF Unexecuted instantiation: buffer.c:Py_INCREF Unexecuted instantiation: lexer.c:Py_INCREF Unexecuted instantiation: state.c:Py_INCREF Unexecuted instantiation: readline_tokenizer.c:Py_INCREF Unexecuted instantiation: string_tokenizer.c:Py_INCREF Unexecuted instantiation: utf8_tokenizer.c:Py_INCREF Unexecuted instantiation: getcompiler.c:Py_INCREF Unexecuted instantiation: mystrtoul.c:Py_INCREF Unexecuted instantiation: token.c:Py_INCREF Unexecuted instantiation: action_helpers.c:Py_INCREF Unexecuted instantiation: string_parser.c:Py_INCREF |
304 | | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000 |
305 | 15.0G | # define Py_INCREF(op) Py_INCREF(_PyObject_CAST(op)) |
306 | | #endif |
307 | | |
308 | | |
309 | | #if !defined(Py_LIMITED_API) && defined(Py_GIL_DISABLED) |
310 | | // Implements Py_DECREF on objects not owned by the current thread. |
311 | | PyAPI_FUNC(void) _Py_DecRefShared(PyObject *); |
312 | | PyAPI_FUNC(void) _Py_DecRefSharedDebug(PyObject *, const char *, int); |
313 | | |
314 | | // Called from Py_DECREF by the owning thread when the local refcount reaches |
315 | | // zero. The call will deallocate the object if the shared refcount is also |
316 | | // zero. Otherwise, the thread gives up ownership and merges the reference |
317 | | // count fields. |
318 | | PyAPI_FUNC(void) _Py_MergeZeroLocalRefcount(PyObject *); |
319 | | #endif |
320 | | |
321 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) |
322 | | // Stable ABI implements Py_DECREF() as a function call on limited C API |
323 | | // version 3.12 and newer, and on Python built in debug mode. _Py_DecRef() was |
324 | | // added to Python 3.10.0a7, use Py_DecRef() on older Python versions. |
325 | | // Py_DecRef() accepts NULL whereas _Py_DecRef() doesn't. |
326 | 7.70k | static inline void Py_DECREF(PyObject *op) { |
327 | 7.70k | # if Py_LIMITED_API+0 >= 0x030a00A7 |
328 | 7.70k | _Py_DecRef(op); |
329 | | # else |
330 | | Py_DecRef(op); |
331 | | # endif |
332 | 7.70k | } Line | Count | Source | 326 | 7.70k | static inline void Py_DECREF(PyObject *op) { | 327 | 7.70k | # if Py_LIMITED_API+0 >= 0x030a00A7 | 328 | 7.70k | _Py_DecRef(op); | 329 | | # else | 330 | | Py_DecRef(op); | 331 | | # endif | 332 | 7.70k | } |
Unexecuted instantiation: _stat.c:Py_DECREF |
333 | 7.70k | #define Py_DECREF(op) Py_DECREF(_PyObject_CAST(op)) |
334 | | |
335 | | #elif defined(Py_GIL_DISABLED) && defined(Py_REF_DEBUG) |
336 | | static inline void Py_DECREF(const char *filename, int lineno, PyObject *op) |
337 | | { |
338 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); |
339 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { |
340 | | _Py_DECREF_IMMORTAL_STAT_INC(); |
341 | | return; |
342 | | } |
343 | | _Py_DECREF_STAT_INC(); |
344 | | _Py_DECREF_DecRefTotal(); |
345 | | if (_Py_IsOwnedByCurrentThread(op)) { |
346 | | if (local == 0) { |
347 | | _Py_NegativeRefcount(filename, lineno, op); |
348 | | } |
349 | | local--; |
350 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, local); |
351 | | if (local == 0) { |
352 | | _Py_MergeZeroLocalRefcount(op); |
353 | | } |
354 | | } |
355 | | else { |
356 | | _Py_DecRefSharedDebug(op, filename, lineno); |
357 | | } |
358 | | } |
359 | | #define Py_DECREF(op) Py_DECREF(__FILE__, __LINE__, _PyObject_CAST(op)) |
360 | | |
361 | | #elif defined(Py_GIL_DISABLED) |
362 | | static inline void Py_DECREF(PyObject *op) |
363 | | { |
364 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); |
365 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { |
366 | | _Py_DECREF_IMMORTAL_STAT_INC(); |
367 | | return; |
368 | | } |
369 | | _Py_DECREF_STAT_INC(); |
370 | | if (_Py_IsOwnedByCurrentThread(op)) { |
371 | | local--; |
372 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, local); |
373 | | if (local == 0) { |
374 | | _Py_MergeZeroLocalRefcount(op); |
375 | | } |
376 | | } |
377 | | else { |
378 | | _Py_DecRefShared(op); |
379 | | } |
380 | | } |
381 | | #define Py_DECREF(op) Py_DECREF(_PyObject_CAST(op)) |
382 | | |
383 | | #elif defined(Py_REF_DEBUG) |
384 | | |
385 | | static inline void Py_DECREF(const char *filename, int lineno, PyObject *op) |
386 | | { |
387 | | #if SIZEOF_VOID_P > 4 |
388 | | /* If an object has been freed, it will have a negative full refcnt |
389 | | * If it has not it been freed, will have a very large refcnt */ |
390 | | if (op->ob_refcnt_full <= 0 || op->ob_refcnt > (((PY_UINT32_T)-1) - (1<<20))) { |
391 | | #else |
392 | | if (op->ob_refcnt <= 0) { |
393 | | #endif |
394 | | _Py_NegativeRefcount(filename, lineno, op); |
395 | | } |
396 | | if (_Py_IsImmortal(op)) { |
397 | | _Py_DECREF_IMMORTAL_STAT_INC(); |
398 | | return; |
399 | | } |
400 | | _Py_DECREF_STAT_INC(); |
401 | | _Py_DECREF_DecRefTotal(); |
402 | | if (--op->ob_refcnt == 0) { |
403 | | _Py_Dealloc(op); |
404 | | } |
405 | | } |
406 | | #define Py_DECREF(op) Py_DECREF(__FILE__, __LINE__, _PyObject_CAST(op)) |
407 | | |
408 | | #else |
409 | | |
410 | | static inline Py_ALWAYS_INLINE void Py_DECREF(PyObject *op) |
411 | 14.2G | { |
412 | | // Non-limited C API and limited C API for Python 3.9 and older access |
413 | | // directly PyObject.ob_refcnt. |
414 | 14.2G | if (_Py_IsImmortal(op)) { |
415 | 6.63G | _Py_DECREF_IMMORTAL_STAT_INC(); |
416 | 6.63G | return; |
417 | 6.63G | } |
418 | 7.62G | _Py_DECREF_STAT_INC(); |
419 | 7.62G | if (--op->ob_refcnt == 0) { |
420 | 1.43G | _Py_Dealloc(op); |
421 | 1.43G | } |
422 | 7.62G | } Line | Count | Source | 411 | 5.40M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 5.40M | if (_Py_IsImmortal(op)) { | 415 | 5.17M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 5.17M | return; | 417 | 5.17M | } | 418 | 227k | _Py_DECREF_STAT_INC(); | 419 | 227k | if (--op->ob_refcnt == 0) { | 420 | 148k | _Py_Dealloc(op); | 421 | 148k | } | 422 | 227k | } |
Line | Count | Source | 411 | 188M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 188M | if (_Py_IsImmortal(op)) { | 415 | 70.0M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 70.0M | return; | 417 | 70.0M | } | 418 | 118M | _Py_DECREF_STAT_INC(); | 419 | 118M | if (--op->ob_refcnt == 0) { | 420 | 89.0M | _Py_Dealloc(op); | 421 | 89.0M | } | 422 | 118M | } |
Line | Count | Source | 411 | 181M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 181M | if (_Py_IsImmortal(op)) { | 415 | 46.6M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 46.6M | return; | 417 | 46.6M | } | 418 | 134M | _Py_DECREF_STAT_INC(); | 419 | 134M | if (--op->ob_refcnt == 0) { | 420 | 96.3M | _Py_Dealloc(op); | 421 | 96.3M | } | 422 | 134M | } |
genericaliasobject.c:Py_DECREF Line | Count | Source | 411 | 202 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 202 | if (_Py_IsImmortal(op)) { | 415 | 85 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 85 | return; | 417 | 85 | } | 418 | 117 | _Py_DECREF_STAT_INC(); | 419 | 117 | if (--op->ob_refcnt == 0) { | 420 | 101 | _Py_Dealloc(op); | 421 | 101 | } | 422 | 117 | } |
Line | Count | Source | 411 | 39.1k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 39.1k | if (_Py_IsImmortal(op)) { | 415 | 5 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 5 | return; | 417 | 5 | } | 418 | 39.1k | _Py_DECREF_STAT_INC(); | 419 | 39.1k | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 39.1k | } |
Line | Count | Source | 411 | 1.63G | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 1.63G | if (_Py_IsImmortal(op)) { | 415 | 467M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 467M | return; | 417 | 467M | } | 418 | 1.16G | _Py_DECREF_STAT_INC(); | 419 | 1.16G | if (--op->ob_refcnt == 0) { | 420 | 329M | _Py_Dealloc(op); | 421 | 329M | } | 422 | 1.16G | } |
Line | Count | Source | 411 | 16.9M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 16.9M | if (_Py_IsImmortal(op)) { | 415 | 8.45M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 8.45M | return; | 417 | 8.45M | } | 418 | 8.53M | _Py_DECREF_STAT_INC(); | 419 | 8.53M | if (--op->ob_refcnt == 0) { | 420 | 5.66M | _Py_Dealloc(op); | 421 | 5.66M | } | 422 | 8.53M | } |
Line | Count | Source | 411 | 1.33G | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 1.33G | if (_Py_IsImmortal(op)) { | 415 | 644M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 644M | return; | 417 | 644M | } | 418 | 686M | _Py_DECREF_STAT_INC(); | 419 | 686M | if (--op->ob_refcnt == 0) { | 420 | 116M | _Py_Dealloc(op); | 421 | 116M | } | 422 | 686M | } |
Line | Count | Source | 411 | 1.40M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 1.40M | if (_Py_IsImmortal(op)) { | 415 | 75.6k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 75.6k | return; | 417 | 75.6k | } | 418 | 1.32M | _Py_DECREF_STAT_INC(); | 419 | 1.32M | if (--op->ob_refcnt == 0) { | 420 | 609k | _Py_Dealloc(op); | 421 | 609k | } | 422 | 1.32M | } |
Line | Count | Source | 411 | 2.18M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 2.18M | if (_Py_IsImmortal(op)) { | 415 | 2.13M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 2.13M | return; | 417 | 2.13M | } | 418 | 45.7k | _Py_DECREF_STAT_INC(); | 419 | 45.7k | if (--op->ob_refcnt == 0) { | 420 | 5.42k | _Py_Dealloc(op); | 421 | 5.42k | } | 422 | 45.7k | } |
Line | Count | Source | 411 | 943M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 943M | if (_Py_IsImmortal(op)) { | 415 | 727M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 727M | return; | 417 | 727M | } | 418 | 216M | _Py_DECREF_STAT_INC(); | 419 | 216M | if (--op->ob_refcnt == 0) { | 420 | 11.3k | _Py_Dealloc(op); | 421 | 11.3k | } | 422 | 216M | } |
Unexecuted instantiation: obmalloc.c:Py_DECREF Unexecuted instantiation: picklebufobject.c:Py_DECREF Line | Count | Source | 411 | 56.6M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 56.6M | if (_Py_IsImmortal(op)) { | 415 | 54.7M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 54.7M | return; | 417 | 54.7M | } | 418 | 1.83M | _Py_DECREF_STAT_INC(); | 419 | 1.83M | if (--op->ob_refcnt == 0) { | 420 | 815k | _Py_Dealloc(op); | 421 | 815k | } | 422 | 1.83M | } |
Line | Count | Source | 411 | 16.1M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 16.1M | if (_Py_IsImmortal(op)) { | 415 | 4.25M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 4.25M | return; | 417 | 4.25M | } | 418 | 11.8M | _Py_DECREF_STAT_INC(); | 419 | 11.8M | if (--op->ob_refcnt == 0) { | 420 | 1.16M | _Py_Dealloc(op); | 421 | 1.16M | } | 422 | 11.8M | } |
Line | Count | Source | 411 | 157M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 157M | if (_Py_IsImmortal(op)) { | 415 | 99.2M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 99.2M | return; | 417 | 99.2M | } | 418 | 57.9M | _Py_DECREF_STAT_INC(); | 419 | 57.9M | if (--op->ob_refcnt == 0) { | 420 | 14.8M | _Py_Dealloc(op); | 421 | 14.8M | } | 422 | 57.9M | } |
Line | Count | Source | 411 | 10.5M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 10.5M | if (_Py_IsImmortal(op)) { | 415 | 3.12M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 3.12M | return; | 417 | 3.12M | } | 418 | 7.41M | _Py_DECREF_STAT_INC(); | 419 | 7.41M | if (--op->ob_refcnt == 0) { | 420 | 6.85M | _Py_Dealloc(op); | 421 | 6.85M | } | 422 | 7.41M | } |
templateobject.c:Py_DECREF Line | Count | Source | 411 | 4 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 4 | if (_Py_IsImmortal(op)) { | 415 | 2 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 2 | return; | 417 | 2 | } | 418 | 2 | _Py_DECREF_STAT_INC(); | 419 | 2 | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 2 | } |
Line | Count | Source | 411 | 5.16G | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 5.16G | if (_Py_IsImmortal(op)) { | 415 | 2.26G | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 2.26G | return; | 417 | 2.26G | } | 418 | 2.89G | _Py_DECREF_STAT_INC(); | 419 | 2.89G | if (--op->ob_refcnt == 0) { | 420 | 130M | _Py_Dealloc(op); | 421 | 130M | } | 422 | 2.89G | } |
Line | Count | Source | 411 | 524M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 524M | if (_Py_IsImmortal(op)) { | 415 | 92.3M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 92.3M | return; | 417 | 92.3M | } | 418 | 432M | _Py_DECREF_STAT_INC(); | 419 | 432M | if (--op->ob_refcnt == 0) { | 420 | 33.4M | _Py_Dealloc(op); | 421 | 33.4M | } | 422 | 432M | } |
typevarobject.c:Py_DECREF Line | Count | Source | 411 | 300 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 300 | if (_Py_IsImmortal(op)) { | 415 | 72 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 72 | return; | 417 | 72 | } | 418 | 228 | _Py_DECREF_STAT_INC(); | 419 | 228 | if (--op->ob_refcnt == 0) { | 420 | 64 | _Py_Dealloc(op); | 421 | 64 | } | 422 | 228 | } |
unicode_format.c:Py_DECREF Line | Count | Source | 411 | 72.9M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 72.9M | if (_Py_IsImmortal(op)) { | 415 | 22.3M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 22.3M | return; | 417 | 22.3M | } | 418 | 50.5M | _Py_DECREF_STAT_INC(); | 419 | 50.5M | if (--op->ob_refcnt == 0) { | 420 | 13.6M | _Py_Dealloc(op); | 421 | 13.6M | } | 422 | 50.5M | } |
unicode_formatter.c:Py_DECREF Line | Count | Source | 411 | 256 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 256 | if (_Py_IsImmortal(op)) { | 415 | 192 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 192 | return; | 417 | 192 | } | 418 | 64 | _Py_DECREF_STAT_INC(); | 419 | 64 | if (--op->ob_refcnt == 0) { | 420 | 64 | _Py_Dealloc(op); | 421 | 64 | } | 422 | 64 | } |
unicode_writer.c:Py_DECREF Line | Count | Source | 411 | 15.1M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 15.1M | if (_Py_IsImmortal(op)) { | 415 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 0 | return; | 417 | 0 | } | 418 | 15.1M | _Py_DECREF_STAT_INC(); | 419 | 15.1M | if (--op->ob_refcnt == 0) { | 420 | 15.1M | _Py_Dealloc(op); | 421 | 15.1M | } | 422 | 15.1M | } |
Unexecuted instantiation: unicodectype.c:Py_DECREF unicodeobject.c:Py_DECREF Line | Count | Source | 411 | 201M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 201M | if (_Py_IsImmortal(op)) { | 415 | 118M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 118M | return; | 417 | 118M | } | 418 | 82.9M | _Py_DECREF_STAT_INC(); | 419 | 82.9M | if (--op->ob_refcnt == 0) { | 420 | 14.2M | _Py_Dealloc(op); | 421 | 14.2M | } | 422 | 82.9M | } |
Line | Count | Source | 411 | 1.57k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 1.57k | if (_Py_IsImmortal(op)) { | 415 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 0 | return; | 417 | 0 | } | 418 | 1.57k | _Py_DECREF_STAT_INC(); | 419 | 1.57k | if (--op->ob_refcnt == 0) { | 420 | 1.57k | _Py_Dealloc(op); | 421 | 1.57k | } | 422 | 1.57k | } |
weakrefobject.c:Py_DECREF Line | Count | Source | 411 | 86.4k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 86.4k | if (_Py_IsImmortal(op)) { | 415 | 31.0k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 31.0k | return; | 417 | 31.0k | } | 418 | 55.3k | _Py_DECREF_STAT_INC(); | 419 | 55.3k | if (--op->ob_refcnt == 0) { | 420 | 29.5k | _Py_Dealloc(op); | 421 | 29.5k | } | 422 | 55.3k | } |
Line | Count | Source | 411 | 20.8M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 20.8M | if (_Py_IsImmortal(op)) { | 415 | 3.04M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 3.04M | return; | 417 | 3.04M | } | 418 | 17.8M | _Py_DECREF_STAT_INC(); | 419 | 17.8M | if (--op->ob_refcnt == 0) { | 420 | 1.17M | _Py_Dealloc(op); | 421 | 1.17M | } | 422 | 17.8M | } |
Line | Count | Source | 411 | 1.35G | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 1.35G | if (_Py_IsImmortal(op)) { | 415 | 1.19G | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 1.19G | return; | 417 | 1.19G | } | 418 | 161M | _Py_DECREF_STAT_INC(); | 419 | 161M | if (--op->ob_refcnt == 0) { | 420 | 92.5M | _Py_Dealloc(op); | 421 | 92.5M | } | 422 | 161M | } |
Line | Count | Source | 411 | 6.09k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 6.09k | if (_Py_IsImmortal(op)) { | 415 | 605 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 605 | return; | 417 | 605 | } | 418 | 5.48k | _Py_DECREF_STAT_INC(); | 419 | 5.48k | if (--op->ob_refcnt == 0) { | 420 | 685 | _Py_Dealloc(op); | 421 | 685 | } | 422 | 5.48k | } |
Line | Count | Source | 411 | 6.13M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 6.13M | if (_Py_IsImmortal(op)) { | 415 | 2.26M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 2.26M | return; | 417 | 2.26M | } | 418 | 3.87M | _Py_DECREF_STAT_INC(); | 419 | 3.87M | if (--op->ob_refcnt == 0) { | 420 | 1.81M | _Py_Dealloc(op); | 421 | 1.81M | } | 422 | 3.87M | } |
Line | Count | Source | 411 | 191k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 191k | if (_Py_IsImmortal(op)) { | 415 | 170k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 170k | return; | 417 | 170k | } | 418 | 20.8k | _Py_DECREF_STAT_INC(); | 419 | 20.8k | if (--op->ob_refcnt == 0) { | 420 | 1.44k | _Py_Dealloc(op); | 421 | 1.44k | } | 422 | 20.8k | } |
Line | Count | Source | 411 | 735k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 735k | if (_Py_IsImmortal(op)) { | 415 | 389k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 389k | return; | 417 | 389k | } | 418 | 346k | _Py_DECREF_STAT_INC(); | 419 | 346k | if (--op->ob_refcnt == 0) { | 420 | 119k | _Py_Dealloc(op); | 421 | 119k | } | 422 | 346k | } |
Line | Count | Source | 411 | 56 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 56 | if (_Py_IsImmortal(op)) { | 415 | 28 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 28 | return; | 417 | 28 | } | 418 | 28 | _Py_DECREF_STAT_INC(); | 419 | 28 | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 28 | } |
Line | Count | Source | 411 | 97.0M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 97.0M | if (_Py_IsImmortal(op)) { | 415 | 37.0M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 37.0M | return; | 417 | 37.0M | } | 418 | 60.0M | _Py_DECREF_STAT_INC(); | 419 | 60.0M | if (--op->ob_refcnt == 0) { | 420 | 17.5M | _Py_Dealloc(op); | 421 | 17.5M | } | 422 | 60.0M | } |
Line | Count | Source | 411 | 84.2k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 84.2k | if (_Py_IsImmortal(op)) { | 415 | 47.9k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 47.9k | return; | 417 | 47.9k | } | 418 | 36.3k | _Py_DECREF_STAT_INC(); | 419 | 36.3k | if (--op->ob_refcnt == 0) { | 420 | 69 | _Py_Dealloc(op); | 421 | 69 | } | 422 | 36.3k | } |
Line | Count | Source | 411 | 44.6M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 44.6M | if (_Py_IsImmortal(op)) { | 415 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 0 | return; | 417 | 0 | } | 418 | 44.6M | _Py_DECREF_STAT_INC(); | 419 | 44.6M | if (--op->ob_refcnt == 0) { | 420 | 15.8M | _Py_Dealloc(op); | 421 | 15.8M | } | 422 | 44.6M | } |
Unexecuted instantiation: future.c:Py_DECREF Line | Count | Source | 411 | 774k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 774k | if (_Py_IsImmortal(op)) { | 415 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 0 | return; | 417 | 0 | } | 418 | 774k | _Py_DECREF_STAT_INC(); | 419 | 774k | if (--op->ob_refcnt == 0) { | 420 | 494k | _Py_Dealloc(op); | 421 | 494k | } | 422 | 774k | } |
Unexecuted instantiation: gc_gil.c:Py_DECREF Line | Count | Source | 411 | 4.93M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 4.93M | if (_Py_IsImmortal(op)) { | 415 | 4.18M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 4.18M | return; | 417 | 4.18M | } | 418 | 754k | _Py_DECREF_STAT_INC(); | 419 | 754k | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 754k | } |
Unexecuted instantiation: ceval_gil.c:Py_DECREF Unexecuted instantiation: hamt.c:Py_DECREF Unexecuted instantiation: hashtable.c:Py_DECREF Line | Count | Source | 411 | 9.33M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 9.33M | if (_Py_IsImmortal(op)) { | 415 | 1.77M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 1.77M | return; | 417 | 1.77M | } | 418 | 7.55M | _Py_DECREF_STAT_INC(); | 419 | 7.55M | if (--op->ob_refcnt == 0) { | 420 | 186k | _Py_Dealloc(op); | 421 | 186k | } | 422 | 7.55M | } |
Line | Count | Source | 411 | 2.11k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 2.11k | if (_Py_IsImmortal(op)) { | 415 | 843 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 843 | return; | 417 | 843 | } | 418 | 1.26k | _Py_DECREF_STAT_INC(); | 419 | 1.26k | if (--op->ob_refcnt == 0) { | 420 | 808 | _Py_Dealloc(op); | 421 | 808 | } | 422 | 1.26k | } |
Line | Count | Source | 411 | 3.86k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 3.86k | if (_Py_IsImmortal(op)) { | 415 | 3.10k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 3.10k | return; | 417 | 3.10k | } | 418 | 756 | _Py_DECREF_STAT_INC(); | 419 | 756 | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 756 | } |
instrumentation.c:Py_DECREF Line | Count | Source | 411 | 672 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 672 | if (_Py_IsImmortal(op)) { | 415 | 420 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 420 | return; | 417 | 420 | } | 418 | 252 | _Py_DECREF_STAT_INC(); | 419 | 252 | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 252 | } |
instruction_sequence.c:Py_DECREF Line | Count | Source | 411 | 1 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 1 | if (_Py_IsImmortal(op)) { | 415 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 0 | return; | 417 | 0 | } | 418 | 1 | _Py_DECREF_STAT_INC(); | 419 | 1 | if (--op->ob_refcnt == 0) { | 420 | 1 | _Py_Dealloc(op); | 421 | 1 | } | 422 | 1 | } |
Line | Count | Source | 411 | 52.1k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 52.1k | if (_Py_IsImmortal(op)) { | 415 | 29.4k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 29.4k | return; | 417 | 29.4k | } | 418 | 22.7k | _Py_DECREF_STAT_INC(); | 419 | 22.7k | if (--op->ob_refcnt == 0) { | 420 | 232 | _Py_Dealloc(op); | 421 | 232 | } | 422 | 22.7k | } |
Unexecuted instantiation: legacy_tracing.c:Py_DECREF Unexecuted instantiation: lock.c:Py_DECREF Line | Count | Source | 411 | 1.59M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 1.59M | if (_Py_IsImmortal(op)) { | 415 | 659k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 659k | return; | 417 | 659k | } | 418 | 931k | _Py_DECREF_STAT_INC(); | 419 | 931k | if (--op->ob_refcnt == 0) { | 420 | 8.37k | _Py_Dealloc(op); | 421 | 8.37k | } | 422 | 931k | } |
Line | Count | Source | 411 | 29.3k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 29.3k | if (_Py_IsImmortal(op)) { | 415 | 19.5k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 19.5k | return; | 417 | 19.5k | } | 418 | 9.79k | _Py_DECREF_STAT_INC(); | 419 | 9.79k | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 9.79k | } |
Unexecuted instantiation: mysnprintf.c:Py_DECREF Unexecuted instantiation: parking_lot.c:Py_DECREF Unexecuted instantiation: preconfig.c:Py_DECREF Line | Count | Source | 411 | 4.41M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 4.41M | if (_Py_IsImmortal(op)) { | 415 | 3.71M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 3.71M | return; | 417 | 3.71M | } | 418 | 698k | _Py_DECREF_STAT_INC(); | 419 | 698k | if (--op->ob_refcnt == 0) { | 420 | 20.9k | _Py_Dealloc(op); | 421 | 20.9k | } | 422 | 698k | } |
Unexecuted instantiation: pyctype.c:Py_DECREF Unexecuted instantiation: pyhash.c:Py_DECREF Line | Count | Source | 411 | 1.00k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 1.00k | if (_Py_IsImmortal(op)) { | 415 | 196 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 196 | return; | 417 | 196 | } | 418 | 812 | _Py_DECREF_STAT_INC(); | 419 | 812 | if (--op->ob_refcnt == 0) { | 420 | 84 | _Py_Dealloc(op); | 421 | 84 | } | 422 | 812 | } |
Unexecuted instantiation: pymath.c:Py_DECREF Unexecuted instantiation: pystate.c:Py_DECREF Line | Count | Source | 411 | 658 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 658 | if (_Py_IsImmortal(op)) { | 415 | 192 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 192 | return; | 417 | 192 | } | 418 | 466 | _Py_DECREF_STAT_INC(); | 419 | 466 | if (--op->ob_refcnt == 0) { | 420 | 182 | _Py_Dealloc(op); | 421 | 182 | } | 422 | 466 | } |
Unexecuted instantiation: pytime.c:Py_DECREF Unexecuted instantiation: qsbr.c:Py_DECREF Unexecuted instantiation: bootstrap_hash.c:Py_DECREF Line | Count | Source | 411 | 2.14M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 2.14M | if (_Py_IsImmortal(op)) { | 415 | 1.23M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 1.23M | return; | 417 | 1.23M | } | 418 | 916k | _Py_DECREF_STAT_INC(); | 419 | 916k | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 916k | } |
Line | Count | Source | 411 | 994k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 994k | if (_Py_IsImmortal(op)) { | 415 | 461k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 461k | return; | 417 | 461k | } | 418 | 532k | _Py_DECREF_STAT_INC(); | 419 | 532k | if (--op->ob_refcnt == 0) { | 420 | 248k | _Py_Dealloc(op); | 421 | 248k | } | 422 | 532k | } |
Line | Count | Source | 411 | 5.33M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 5.33M | if (_Py_IsImmortal(op)) { | 415 | 1.25M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 1.25M | return; | 417 | 1.25M | } | 418 | 4.08M | _Py_DECREF_STAT_INC(); | 419 | 4.08M | if (--op->ob_refcnt == 0) { | 420 | 3.03M | _Py_Dealloc(op); | 421 | 3.03M | } | 422 | 4.08M | } |
Unexecuted instantiation: thread.c:Py_DECREF Line | Count | Source | 411 | 133M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 133M | if (_Py_IsImmortal(op)) { | 415 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 0 | return; | 417 | 0 | } | 418 | 133M | _Py_DECREF_STAT_INC(); | 419 | 133M | if (--op->ob_refcnt == 0) { | 420 | 36.4M | _Py_Dealloc(op); | 421 | 36.4M | } | 422 | 133M | } |
Unexecuted instantiation: tracemalloc.c:Py_DECREF Unexecuted instantiation: getopt.c:Py_DECREF Unexecuted instantiation: pystrcmp.c:Py_DECREF Unexecuted instantiation: pystrtod.c:Py_DECREF Unexecuted instantiation: pystrhex.c:Py_DECREF Unexecuted instantiation: dtoa.c:Py_DECREF Line | Count | Source | 411 | 10.3k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 10.3k | if (_Py_IsImmortal(op)) { | 415 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 0 | return; | 417 | 0 | } | 418 | 10.3k | _Py_DECREF_STAT_INC(); | 419 | 10.3k | if (--op->ob_refcnt == 0) { | 420 | 10.3k | _Py_Dealloc(op); | 421 | 10.3k | } | 422 | 10.3k | } |
Unexecuted instantiation: suggestions.c:Py_DECREF Unexecuted instantiation: perf_trampoline.c:Py_DECREF Unexecuted instantiation: perf_jit_trampoline.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 | 411 | 2 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 2 | if (_Py_IsImmortal(op)) { | 415 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 0 | return; | 417 | 0 | } | 418 | 2 | _Py_DECREF_STAT_INC(); | 419 | 2 | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 2 | } |
Unexecuted instantiation: faulthandler.c:Py_DECREF Line | Count | Source | 411 | 5.62M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 5.62M | if (_Py_IsImmortal(op)) { | 415 | 2.03M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 2.03M | return; | 417 | 2.03M | } | 418 | 3.58M | _Py_DECREF_STAT_INC(); | 419 | 3.58M | if (--op->ob_refcnt == 0) { | 420 | 1.53M | _Py_Dealloc(op); | 421 | 1.53M | } | 422 | 3.58M | } |
Line | Count | Source | 411 | 56 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 56 | if (_Py_IsImmortal(op)) { | 415 | 28 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 28 | return; | 417 | 28 | } | 418 | 28 | _Py_DECREF_STAT_INC(); | 419 | 28 | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 28 | } |
Unexecuted instantiation: _tracemalloc.c:Py_DECREF Unexecuted instantiation: _suggestions.c:Py_DECREF _datetimemodule.c:Py_DECREF Line | Count | Source | 411 | 582 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 582 | if (_Py_IsImmortal(op)) { | 415 | 80 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 80 | return; | 417 | 80 | } | 418 | 502 | _Py_DECREF_STAT_INC(); | 419 | 502 | if (--op->ob_refcnt == 0) { | 420 | 8 | _Py_Dealloc(op); | 421 | 8 | } | 422 | 502 | } |
Unexecuted instantiation: _codecsmodule.c:Py_DECREF _collectionsmodule.c:Py_DECREF Line | Count | Source | 411 | 117k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 117k | if (_Py_IsImmortal(op)) { | 415 | 50.2k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 50.2k | return; | 417 | 50.2k | } | 418 | 67.5k | _Py_DECREF_STAT_INC(); | 419 | 67.5k | if (--op->ob_refcnt == 0) { | 420 | 51.0k | _Py_Dealloc(op); | 421 | 51.0k | } | 422 | 67.5k | } |
Line | Count | Source | 411 | 150k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 150k | if (_Py_IsImmortal(op)) { | 415 | 96.5k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 96.5k | return; | 417 | 96.5k | } | 418 | 54.1k | _Py_DECREF_STAT_INC(); | 419 | 54.1k | if (--op->ob_refcnt == 0) { | 420 | 27.1k | _Py_Dealloc(op); | 421 | 27.1k | } | 422 | 54.1k | } |
Line | Count | Source | 411 | 306k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 306k | if (_Py_IsImmortal(op)) { | 415 | 248k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 248k | return; | 417 | 248k | } | 418 | 58.1k | _Py_DECREF_STAT_INC(); | 419 | 58.1k | if (--op->ob_refcnt == 0) { | 420 | 29.0k | _Py_Dealloc(op); | 421 | 29.0k | } | 422 | 58.1k | } |
Line | Count | Source | 411 | 40.2k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 40.2k | if (_Py_IsImmortal(op)) { | 415 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 0 | return; | 417 | 0 | } | 418 | 40.2k | _Py_DECREF_STAT_INC(); | 419 | 40.2k | if (--op->ob_refcnt == 0) { | 420 | 26.7k | _Py_Dealloc(op); | 421 | 26.7k | } | 422 | 40.2k | } |
Line | Count | Source | 411 | 189k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 189k | if (_Py_IsImmortal(op)) { | 415 | 81.0k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 81.0k | return; | 417 | 81.0k | } | 418 | 108k | _Py_DECREF_STAT_INC(); | 419 | 108k | if (--op->ob_refcnt == 0) { | 420 | 7.07k | _Py_Dealloc(op); | 421 | 7.07k | } | 422 | 108k | } |
Line | Count | Source | 411 | 4.80M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 4.80M | if (_Py_IsImmortal(op)) { | 415 | 4.51M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 4.51M | return; | 417 | 4.51M | } | 418 | 282k | _Py_DECREF_STAT_INC(); | 419 | 282k | if (--op->ob_refcnt == 0) { | 420 | 233k | _Py_Dealloc(op); | 421 | 233k | } | 422 | 282k | } |
Line | Count | Source | 411 | 701k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 701k | if (_Py_IsImmortal(op)) { | 415 | 196k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 196k | return; | 417 | 196k | } | 418 | 505k | _Py_DECREF_STAT_INC(); | 419 | 505k | if (--op->ob_refcnt == 0) { | 420 | 162k | _Py_Dealloc(op); | 421 | 162k | } | 422 | 505k | } |
Line | Count | Source | 411 | 323k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 323k | if (_Py_IsImmortal(op)) { | 415 | 167k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 167k | return; | 417 | 167k | } | 418 | 156k | _Py_DECREF_STAT_INC(); | 419 | 156k | if (--op->ob_refcnt == 0) { | 420 | 33.0k | _Py_Dealloc(op); | 421 | 33.0k | } | 422 | 156k | } |
itertoolsmodule.c:Py_DECREF Line | Count | Source | 411 | 85.5k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 85.5k | if (_Py_IsImmortal(op)) { | 415 | 4.65k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 4.65k | return; | 417 | 4.65k | } | 418 | 80.9k | _Py_DECREF_STAT_INC(); | 419 | 80.9k | if (--op->ob_refcnt == 0) { | 420 | 27.0k | _Py_Dealloc(op); | 421 | 27.0k | } | 422 | 80.9k | } |
Line | Count | Source | 411 | 463M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 463M | if (_Py_IsImmortal(op)) { | 415 | 150M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 150M | return; | 417 | 150M | } | 418 | 313M | _Py_DECREF_STAT_INC(); | 419 | 313M | if (--op->ob_refcnt == 0) { | 420 | 20.0M | _Py_Dealloc(op); | 421 | 20.0M | } | 422 | 313M | } |
Unexecuted instantiation: _sysconfig.c:Py_DECREF _threadmodule.c:Py_DECREF Line | Count | Source | 411 | 36.5k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 36.5k | if (_Py_IsImmortal(op)) { | 415 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 0 | return; | 417 | 0 | } | 418 | 36.5k | _Py_DECREF_STAT_INC(); | 419 | 36.5k | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 36.5k | } |
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 | 411 | 98.7k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 98.7k | if (_Py_IsImmortal(op)) { | 415 | 19.9k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 19.9k | return; | 417 | 19.9k | } | 418 | 78.8k | _Py_DECREF_STAT_INC(); | 419 | 78.8k | if (--op->ob_refcnt == 0) { | 420 | 4.97k | _Py_Dealloc(op); | 421 | 4.97k | } | 422 | 78.8k | } |
_functoolsmodule.c:Py_DECREF Line | Count | Source | 411 | 462k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 462k | if (_Py_IsImmortal(op)) { | 415 | 115k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 115k | return; | 417 | 115k | } | 418 | 346k | _Py_DECREF_STAT_INC(); | 419 | 346k | if (--op->ob_refcnt == 0) { | 420 | 231k | _Py_Dealloc(op); | 421 | 231k | } | 422 | 346k | } |
Unexecuted instantiation: _localemodule.c:Py_DECREF Unexecuted instantiation: _opcode.c:Py_DECREF Line | Count | Source | 411 | 588k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 588k | if (_Py_IsImmortal(op)) { | 415 | 294k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 294k | return; | 417 | 294k | } | 418 | 294k | _Py_DECREF_STAT_INC(); | 419 | 294k | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 294k | } |
Unexecuted instantiation: symtablemodule.c:Py_DECREF Unexecuted instantiation: pwdmodule.c:Py_DECREF Line | Count | Source | 411 | 924 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 924 | if (_Py_IsImmortal(op)) { | 415 | 336 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 336 | return; | 417 | 336 | } | 418 | 588 | _Py_DECREF_STAT_INC(); | 419 | 588 | if (--op->ob_refcnt == 0) { | 420 | 28 | _Py_Dealloc(op); | 421 | 28 | } | 422 | 588 | } |
Unexecuted instantiation: frozen.c:Py_DECREF Unexecuted instantiation: getbuildinfo.c:Py_DECREF Unexecuted instantiation: peg_api.c:Py_DECREF Unexecuted instantiation: file_tokenizer.c:Py_DECREF Line | Count | Source | 411 | 21.9k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 21.9k | if (_Py_IsImmortal(op)) { | 415 | 745 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 745 | return; | 417 | 745 | } | 418 | 21.2k | _Py_DECREF_STAT_INC(); | 419 | 21.2k | if (--op->ob_refcnt == 0) { | 420 | 15.3k | _Py_Dealloc(op); | 421 | 15.3k | } | 422 | 21.2k | } |
Unexecuted instantiation: myreadline.c:Py_DECREF Line | Count | Source | 411 | 598M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 598M | if (_Py_IsImmortal(op)) { | 415 | 352M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 352M | return; | 417 | 352M | } | 418 | 246M | _Py_DECREF_STAT_INC(); | 419 | 246M | if (--op->ob_refcnt == 0) { | 420 | 2.19M | _Py_Dealloc(op); | 421 | 2.19M | } | 422 | 246M | } |
Unexecuted instantiation: boolobject.c:Py_DECREF Unexecuted instantiation: bytes_methods.c:Py_DECREF bytearrayobject.c:Py_DECREF Line | Count | Source | 411 | 2.94M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 2.94M | if (_Py_IsImmortal(op)) { | 415 | 420k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 420k | return; | 417 | 420k | } | 418 | 2.52M | _Py_DECREF_STAT_INC(); | 419 | 2.52M | if (--op->ob_refcnt == 0) { | 420 | 2.52M | _Py_Dealloc(op); | 421 | 2.52M | } | 422 | 2.52M | } |
Line | Count | Source | 411 | 10 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 10 | if (_Py_IsImmortal(op)) { | 415 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 0 | return; | 417 | 0 | } | 418 | 10 | _Py_DECREF_STAT_INC(); | 419 | 10 | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 10 | } |
Line | Count | Source | 411 | 450k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 450k | if (_Py_IsImmortal(op)) { | 415 | 57.2k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 57.2k | return; | 417 | 57.2k | } | 418 | 393k | _Py_DECREF_STAT_INC(); | 419 | 393k | if (--op->ob_refcnt == 0) { | 420 | 270k | _Py_Dealloc(op); | 421 | 270k | } | 422 | 393k | } |
Line | Count | Source | 411 | 77.0M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 77.0M | if (_Py_IsImmortal(op)) { | 415 | 10 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 10 | return; | 417 | 10 | } | 418 | 77.0M | _Py_DECREF_STAT_INC(); | 419 | 77.0M | if (--op->ob_refcnt == 0) { | 420 | 5.44k | _Py_Dealloc(op); | 421 | 5.44k | } | 422 | 77.0M | } |
Line | Count | Source | 411 | 1.08M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 1.08M | if (_Py_IsImmortal(op)) { | 415 | 480k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 480k | return; | 417 | 480k | } | 418 | 600k | _Py_DECREF_STAT_INC(); | 419 | 600k | if (--op->ob_refcnt == 0) { | 420 | 501k | _Py_Dealloc(op); | 421 | 501k | } | 422 | 600k | } |
Unexecuted instantiation: complexobject.c:Py_DECREF Line | Count | Source | 411 | 85.2M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 85.2M | if (_Py_IsImmortal(op)) { | 415 | 10.4M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 10.4M | return; | 417 | 10.4M | } | 418 | 74.8M | _Py_DECREF_STAT_INC(); | 419 | 74.8M | if (--op->ob_refcnt == 0) { | 420 | 41.3M | _Py_Dealloc(op); | 421 | 41.3M | } | 422 | 74.8M | } |
Line | Count | Source | 411 | 258M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 258M | if (_Py_IsImmortal(op)) { | 415 | 94.1M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 94.1M | return; | 417 | 94.1M | } | 418 | 164M | _Py_DECREF_STAT_INC(); | 419 | 164M | if (--op->ob_refcnt == 0) { | 420 | 62.8M | _Py_Dealloc(op); | 421 | 62.8M | } | 422 | 164M | } |
Line | Count | Source | 411 | 57.6M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 57.6M | if (_Py_IsImmortal(op)) { | 415 | 57.6M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 57.6M | return; | 417 | 57.6M | } | 418 | 72.7k | _Py_DECREF_STAT_INC(); | 419 | 72.7k | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 72.7k | } |
Line | Count | Source | 411 | 225k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 225k | if (_Py_IsImmortal(op)) { | 415 | 219k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 219k | return; | 417 | 219k | } | 418 | 6.78k | _Py_DECREF_STAT_INC(); | 419 | 6.78k | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 6.78k | } |
Line | Count | Source | 411 | 28.7M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 28.7M | if (_Py_IsImmortal(op)) { | 415 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 0 | return; | 417 | 0 | } | 418 | 28.7M | _Py_DECREF_STAT_INC(); | 419 | 28.7M | if (--op->ob_refcnt == 0) { | 420 | 6.26M | _Py_Dealloc(op); | 421 | 6.26M | } | 422 | 28.7M | } |
Line | Count | Source | 411 | 124M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 124M | if (_Py_IsImmortal(op)) { | 415 | 70.9M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 70.9M | return; | 417 | 70.9M | } | 418 | 53.6M | _Py_DECREF_STAT_INC(); | 419 | 53.6M | if (--op->ob_refcnt == 0) { | 420 | 502k | _Py_Dealloc(op); | 421 | 502k | } | 422 | 53.6M | } |
interpolationobject.c:Py_DECREF Line | Count | Source | 411 | 28 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 28 | if (_Py_IsImmortal(op)) { | 415 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 0 | return; | 417 | 0 | } | 418 | 28 | _Py_DECREF_STAT_INC(); | 419 | 28 | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 28 | } |
Line | Count | Source | 411 | 2.03M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 2.03M | if (_Py_IsImmortal(op)) { | 415 | 810k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 810k | return; | 417 | 810k | } | 418 | 1.22M | _Py_DECREF_STAT_INC(); | 419 | 1.22M | if (--op->ob_refcnt == 0) { | 420 | 405k | _Py_Dealloc(op); | 421 | 405k | } | 422 | 1.22M | } |
Line | Count | Source | 411 | 768 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 768 | if (_Py_IsImmortal(op)) { | 415 | 460 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 460 | return; | 417 | 460 | } | 418 | 308 | _Py_DECREF_STAT_INC(); | 419 | 308 | if (--op->ob_refcnt == 0) { | 420 | 184 | _Py_Dealloc(op); | 421 | 184 | } | 422 | 308 | } |
Line | Count | Source | 411 | 343M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 343M | if (_Py_IsImmortal(op)) { | 415 | 6.88M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 6.88M | return; | 417 | 6.88M | } | 418 | 336M | _Py_DECREF_STAT_INC(); | 419 | 336M | if (--op->ob_refcnt == 0) { | 420 | 256M | _Py_Dealloc(op); | 421 | 256M | } | 422 | 336M | } |
namespaceobject.c:Py_DECREF Line | Count | Source | 411 | 28 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 28 | if (_Py_IsImmortal(op)) { | 415 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 0 | return; | 417 | 0 | } | 418 | 28 | _Py_DECREF_STAT_INC(); | 419 | 28 | if (--op->ob_refcnt == 0) { | 420 | 28 | _Py_Dealloc(op); | 421 | 28 | } | 422 | 28 | } |
Unexecuted instantiation: _contextvars.c:Py_DECREF Line | Count | Source | 411 | 2.76M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 2.76M | if (_Py_IsImmortal(op)) { | 415 | 1.53M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 1.53M | return; | 417 | 1.53M | } | 418 | 1.22M | _Py_DECREF_STAT_INC(); | 419 | 1.22M | if (--op->ob_refcnt == 0) { | 420 | 343k | _Py_Dealloc(op); | 421 | 343k | } | 422 | 1.22M | } |
Unexecuted instantiation: Python-tokenize.c:Py_DECREF Unexecuted instantiation: asdl.c:Py_DECREF Line | Count | Source | 411 | 59.1k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 59.1k | if (_Py_IsImmortal(op)) { | 415 | 9.77k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 9.77k | return; | 417 | 9.77k | } | 418 | 49.4k | _Py_DECREF_STAT_INC(); | 419 | 49.4k | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 49.4k | } |
Unexecuted instantiation: ast.c:Py_DECREF ast_preprocess.c:Py_DECREF Line | Count | Source | 411 | 3 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 3 | if (_Py_IsImmortal(op)) { | 415 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 0 | return; | 417 | 0 | } | 418 | 3 | _Py_DECREF_STAT_INC(); | 419 | 3 | if (--op->ob_refcnt == 0) { | 420 | 3 | _Py_Dealloc(op); | 421 | 3 | } | 422 | 3 | } |
Line | Count | Source | 411 | 8 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 8 | if (_Py_IsImmortal(op)) { | 415 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 0 | return; | 417 | 0 | } | 418 | 8 | _Py_DECREF_STAT_INC(); | 419 | 8 | if (--op->ob_refcnt == 0) { | 420 | 8 | _Py_Dealloc(op); | 421 | 8 | } | 422 | 8 | } |
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 | 411 | 1.68k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 1.68k | if (_Py_IsImmortal(op)) { | 415 | 1.31k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 1.31k | return; | 417 | 1.31k | } | 418 | 370 | _Py_DECREF_STAT_INC(); | 419 | 370 | if (--op->ob_refcnt == 0) { | 420 | 30 | _Py_Dealloc(op); | 421 | 30 | } | 422 | 370 | } |
Line | Count | Source | 411 | 132k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 132k | if (_Py_IsImmortal(op)) { | 415 | 49.7k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 49.7k | return; | 417 | 49.7k | } | 418 | 82.6k | _Py_DECREF_STAT_INC(); | 419 | 82.6k | if (--op->ob_refcnt == 0) { | 420 | 63.0k | _Py_Dealloc(op); | 421 | 63.0k | } | 422 | 82.6k | } |
Line | Count | Source | 411 | 40.3k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 40.3k | if (_Py_IsImmortal(op)) { | 415 | 2.00k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 2.00k | return; | 417 | 2.00k | } | 418 | 38.3k | _Py_DECREF_STAT_INC(); | 419 | 38.3k | if (--op->ob_refcnt == 0) { | 420 | 2.77k | _Py_Dealloc(op); | 421 | 2.77k | } | 422 | 38.3k | } |
Unexecuted instantiation: parser.c:Py_DECREF Unexecuted instantiation: buffer.c:Py_DECREF Line | Count | Source | 411 | 12.9k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 12.9k | if (_Py_IsImmortal(op)) { | 415 | 853 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 853 | return; | 417 | 853 | } | 418 | 12.0k | _Py_DECREF_STAT_INC(); | 419 | 12.0k | if (--op->ob_refcnt == 0) { | 420 | 12.0k | _Py_Dealloc(op); | 421 | 12.0k | } | 422 | 12.0k | } |
Line | Count | Source | 411 | 21.4k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 21.4k | if (_Py_IsImmortal(op)) { | 415 | 391 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 391 | return; | 417 | 391 | } | 418 | 21.0k | _Py_DECREF_STAT_INC(); | 419 | 21.0k | if (--op->ob_refcnt == 0) { | 420 | 2.24k | _Py_Dealloc(op); | 421 | 2.24k | } | 422 | 21.0k | } |
Unexecuted instantiation: readline_tokenizer.c:Py_DECREF Unexecuted instantiation: string_tokenizer.c:Py_DECREF Unexecuted instantiation: utf8_tokenizer.c:Py_DECREF Unexecuted instantiation: getcompiler.c:Py_DECREF Unexecuted instantiation: mystrtoul.c:Py_DECREF Unexecuted instantiation: token.c:Py_DECREF Unexecuted instantiation: action_helpers.c:Py_DECREF string_parser.c:Py_DECREF Line | Count | Source | 411 | 38.6k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 38.6k | if (_Py_IsImmortal(op)) { | 415 | 2.42k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 2.42k | return; | 417 | 2.42k | } | 418 | 36.2k | _Py_DECREF_STAT_INC(); | 419 | 36.2k | if (--op->ob_refcnt == 0) { | 420 | 36.2k | _Py_Dealloc(op); | 421 | 36.2k | } | 422 | 36.2k | } |
|
423 | 14.2G | #define Py_DECREF(op) Py_DECREF(_PyObject_CAST(op)) |
424 | | #endif |
425 | | |
426 | | |
427 | | /* Safely decref `op` and set `op` to NULL, especially useful in tp_clear |
428 | | * and tp_dealloc implementations. |
429 | | * |
430 | | * Note that "the obvious" code can be deadly: |
431 | | * |
432 | | * Py_XDECREF(op); |
433 | | * op = NULL; |
434 | | * |
435 | | * Typically, `op` is something like self->containee, and `self` is done |
436 | | * using its `containee` member. In the code sequence above, suppose |
437 | | * `containee` is non-NULL with a refcount of 1. Its refcount falls to |
438 | | * 0 on the first line, which can trigger an arbitrary amount of code, |
439 | | * possibly including finalizers (like __del__ methods or weakref callbacks) |
440 | | * coded in Python, which in turn can release the GIL and allow other threads |
441 | | * to run, etc. Such code may even invoke methods of `self` again, or cause |
442 | | * cyclic gc to trigger, but-- oops! --self->containee still points to the |
443 | | * object being torn down, and it may be in an insane state while being torn |
444 | | * down. This has in fact been a rich historic source of miserable (rare & |
445 | | * hard-to-diagnose) segfaulting (and other) bugs. |
446 | | * |
447 | | * The safe way is: |
448 | | * |
449 | | * Py_CLEAR(op); |
450 | | * |
451 | | * That arranges to set `op` to NULL _before_ decref'ing, so that any code |
452 | | * triggered as a side-effect of `op` getting torn down no longer believes |
453 | | * `op` points to a valid object. |
454 | | * |
455 | | * There are cases where it's safe to use the naive code, but they're brittle. |
456 | | * For example, if `op` points to a Python integer, you know that destroying |
457 | | * one of those can't cause problems -- but in part that relies on that |
458 | | * Python integers aren't currently weakly referencable. Best practice is |
459 | | * to use Py_CLEAR() even if you can't think of a reason for why you need to. |
460 | | * |
461 | | * gh-98724: Use a temporary variable to only evaluate the macro argument once, |
462 | | * to avoid the duplication of side effects if the argument has side effects. |
463 | | * |
464 | | * gh-99701: If the PyObject* type is used with casting arguments to PyObject*, |
465 | | * the code can be miscompiled with strict aliasing because of type punning. |
466 | | * With strict aliasing, a compiler considers that two pointers of different |
467 | | * types cannot read or write the same memory which enables optimization |
468 | | * opportunities. |
469 | | * |
470 | | * If available, use _Py_TYPEOF() to use the 'op' type for temporary variables, |
471 | | * and so avoid type punning. Otherwise, use memcpy() which causes type erasure |
472 | | * and so prevents the compiler to reuse an old cached 'op' value after |
473 | | * Py_CLEAR(). |
474 | | */ |
475 | | #ifdef _Py_TYPEOF |
476 | | #define Py_CLEAR(op) \ |
477 | 2.23G | do { \ |
478 | 2.23G | _Py_TYPEOF(op)* _tmp_op_ptr = &(op); \ |
479 | 2.23G | _Py_TYPEOF(op) _tmp_old_op = (*_tmp_op_ptr); \ |
480 | 2.23G | if (_tmp_old_op != NULL) { \ |
481 | 508M | *_tmp_op_ptr = _Py_NULL; \ |
482 | 508M | Py_DECREF(_tmp_old_op); \ |
483 | 508M | } \ |
484 | 2.23G | } while (0) |
485 | | #else |
486 | | #define Py_CLEAR(op) \ |
487 | | do { \ |
488 | | PyObject **_tmp_op_ptr = _Py_CAST(PyObject**, &(op)); \ |
489 | | PyObject *_tmp_old_op = (*_tmp_op_ptr); \ |
490 | | if (_tmp_old_op != NULL) { \ |
491 | | PyObject *_null_ptr = _Py_NULL; \ |
492 | | memcpy(_tmp_op_ptr, &_null_ptr, sizeof(PyObject*)); \ |
493 | | Py_DECREF(_tmp_old_op); \ |
494 | | } \ |
495 | | } while (0) |
496 | | #endif |
497 | | |
498 | | |
499 | | /* Function to use in case the object pointer can be NULL: */ |
500 | | static inline void Py_XINCREF(PyObject *op) |
501 | 2.01G | { |
502 | 2.01G | if (op != _Py_NULL) { |
503 | 867M | Py_INCREF(op); |
504 | 867M | } |
505 | 2.01G | } Unexecuted instantiation: bytesobject.c:Py_XINCREF Unexecuted instantiation: call.c:Py_XINCREF Line | Count | Source | 501 | 101M | { | 502 | 101M | if (op != _Py_NULL) { | 503 | 15.8M | Py_INCREF(op); | 504 | 15.8M | } | 505 | 101M | } |
Unexecuted instantiation: genericaliasobject.c:Py_XINCREF Unexecuted instantiation: floatobject.c:Py_XINCREF Line | Count | Source | 501 | 4.39M | { | 502 | 4.39M | if (op != _Py_NULL) { | 503 | 4.39M | Py_INCREF(op); | 504 | 4.39M | } | 505 | 4.39M | } |
Unexecuted instantiation: longobject.c:Py_XINCREF Line | Count | Source | 501 | 708M | { | 502 | 708M | if (op != _Py_NULL) { | 503 | 229M | Py_INCREF(op); | 504 | 229M | } | 505 | 708M | } |
Unexecuted instantiation: memoryobject.c:Py_XINCREF 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 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 | 501 | 56.9M | { | 502 | 56.9M | if (op != _Py_NULL) { | 503 | 56.6M | Py_INCREF(op); | 504 | 56.6M | } | 505 | 56.9M | } |
typevarobject.c:Py_XINCREF Line | Count | Source | 501 | 296 | { | 502 | 296 | if (op != _Py_NULL) { | 503 | 52 | Py_INCREF(op); | 504 | 52 | } | 505 | 296 | } |
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 | 501 | 333k | { | 502 | 333k | if (op != _Py_NULL) { | 503 | 35.2k | Py_INCREF(op); | 504 | 35.2k | } | 505 | 333k | } |
Unexecuted instantiation: _warnings.c:Py_XINCREF Line | Count | Source | 501 | 589 | { | 502 | 589 | if (op != _Py_NULL) { | 503 | 589 | Py_INCREF(op); | 504 | 589 | } | 505 | 589 | } |
Line | Count | Source | 501 | 284M | { | 502 | 284M | if (op != _Py_NULL) { | 503 | 85.2M | Py_INCREF(op); | 504 | 85.2M | } | 505 | 284M | } |
Unexecuted instantiation: codecs.c:Py_XINCREF Unexecuted instantiation: codegen.c:Py_XINCREF Line | Count | Source | 501 | 12.1k | { | 502 | 12.1k | if (op != _Py_NULL) { | 503 | 6.10k | Py_INCREF(op); | 504 | 6.10k | } | 505 | 12.1k | } |
Line | Count | Source | 501 | 183k | { | 502 | 183k | if (op != _Py_NULL) { | 503 | 0 | Py_INCREF(op); | 504 | 0 | } | 505 | 183k | } |
Line | Count | Source | 501 | 41.0M | { | 502 | 41.0M | if (op != _Py_NULL) { | 503 | 40.9M | Py_INCREF(op); | 504 | 40.9M | } | 505 | 41.0M | } |
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 | 501 | 41.0k | { | 502 | 41.0k | if (op != _Py_NULL) { | 503 | 34.0k | Py_INCREF(op); | 504 | 34.0k | } | 505 | 41.0k | } |
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 | 501 | 571k | { | 502 | 571k | if (op != _Py_NULL) { | 503 | 571k | Py_INCREF(op); | 504 | 571k | } | 505 | 571k | } |
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: symtable.c:Py_XINCREF Line | Count | Source | 501 | 28 | { | 502 | 28 | if (op != _Py_NULL) { | 503 | 28 | Py_INCREF(op); | 504 | 28 | } | 505 | 28 | } |
Unexecuted instantiation: thread.c:Py_XINCREF Line | Count | Source | 501 | 105M | { | 502 | 105M | if (op != _Py_NULL) { | 503 | 66.5M | Py_INCREF(op); | 504 | 66.5M | } | 505 | 105M | } |
Unexecuted instantiation: tracemalloc.c:Py_XINCREF Unexecuted instantiation: getopt.c:Py_XINCREF Unexecuted instantiation: pystrcmp.c:Py_XINCREF Unexecuted instantiation: pystrtod.c:Py_XINCREF Unexecuted instantiation: pystrhex.c:Py_XINCREF Unexecuted instantiation: dtoa.c:Py_XINCREF Unexecuted instantiation: fileutils.c:Py_XINCREF Unexecuted instantiation: suggestions.c:Py_XINCREF Unexecuted instantiation: perf_trampoline.c:Py_XINCREF Unexecuted instantiation: perf_jit_trampoline.c:Py_XINCREF Unexecuted instantiation: 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 | 501 | 235k | { | 502 | 235k | if (op != _Py_NULL) { | 503 | 235k | Py_INCREF(op); | 504 | 235k | } | 505 | 235k | } |
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 | 501 | 56 | { | 502 | 56 | if (op != _Py_NULL) { | 503 | 0 | Py_INCREF(op); | 504 | 0 | } | 505 | 56 | } |
Unexecuted instantiation: _codecsmodule.c:Py_XINCREF _collectionsmodule.c:Py_XINCREF Line | Count | Source | 501 | 4 | { | 502 | 4 | if (op != _Py_NULL) { | 503 | 4 | Py_INCREF(op); | 504 | 4 | } | 505 | 4 | } |
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 | 501 | 6.77k | { | 502 | 6.77k | if (op != _Py_NULL) { | 503 | 6.77k | Py_INCREF(op); | 504 | 6.77k | } | 505 | 6.77k | } |
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 | 501 | 4 | { | 502 | 4 | if (op != _Py_NULL) { | 503 | 2 | Py_INCREF(op); | 504 | 2 | } | 505 | 4 | } |
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 | 501 | 1.13k | { | 502 | 1.13k | if (op != _Py_NULL) { | 503 | 1.13k | Py_INCREF(op); | 504 | 1.13k | } | 505 | 1.13k | } |
Unexecuted instantiation: _functoolsmodule.c:Py_XINCREF Unexecuted instantiation: _localemodule.c:Py_XINCREF Unexecuted instantiation: _opcode.c:Py_XINCREF Unexecuted instantiation: _operator.c:Py_XINCREF Unexecuted instantiation: _stat.c:Py_XINCREF Unexecuted instantiation: symtablemodule.c:Py_XINCREF Unexecuted instantiation: pwdmodule.c:Py_XINCREF Line | Count | Source | 501 | 84 | { | 502 | 84 | if (op != _Py_NULL) { | 503 | 84 | Py_INCREF(op); | 504 | 84 | } | 505 | 84 | } |
Unexecuted instantiation: frozen.c:Py_XINCREF Unexecuted instantiation: getbuildinfo.c:Py_XINCREF Unexecuted instantiation: peg_api.c:Py_XINCREF Unexecuted instantiation: file_tokenizer.c:Py_XINCREF Unexecuted instantiation: helpers.c:Py_XINCREF Unexecuted instantiation: myreadline.c:Py_XINCREF Line | Count | Source | 501 | 24.8M | { | 502 | 24.8M | if (op != _Py_NULL) { | 503 | 24.3M | Py_INCREF(op); | 504 | 24.3M | } | 505 | 24.8M | } |
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 | 501 | 7.90M | { | 502 | 7.90M | if (op != _Py_NULL) { | 503 | 132k | Py_INCREF(op); | 504 | 132k | } | 505 | 7.90M | } |
Unexecuted instantiation: classobject.c:Py_XINCREF Line | Count | Source | 501 | 7.95k | { | 502 | 7.95k | if (op != _Py_NULL) { | 503 | 7.95k | Py_INCREF(op); | 504 | 7.95k | } | 505 | 7.95k | } |
Unexecuted instantiation: complexobject.c:Py_XINCREF Line | Count | Source | 501 | 79.6k | { | 502 | 79.6k | if (op != _Py_NULL) { | 503 | 76.8k | Py_INCREF(op); | 504 | 76.8k | } | 505 | 79.6k | } |
Unexecuted instantiation: enumobject.c:Py_XINCREF Line | Count | Source | 501 | 1.85k | { | 502 | 1.85k | if (op != _Py_NULL) { | 503 | 0 | Py_INCREF(op); | 504 | 0 | } | 505 | 1.85k | } |
Unexecuted instantiation: fileobject.c:Py_XINCREF Line | Count | Source | 501 | 5.70M | { | 502 | 5.70M | if (op != _Py_NULL) { | 503 | 5.70M | Py_INCREF(op); | 504 | 5.70M | } | 505 | 5.70M | } |
Line | Count | Source | 501 | 21.3k | { | 502 | 21.3k | if (op != _Py_NULL) { | 503 | 16 | Py_INCREF(op); | 504 | 16 | } | 505 | 21.3k | } |
Unexecuted instantiation: interpolationobject.c:Py_XINCREF Unexecuted instantiation: iterobject.c:Py_XINCREF Unexecuted instantiation: odictobject.c:Py_XINCREF methodobject.c:Py_XINCREF Line | Count | Source | 501 | 670M | { | 502 | 670M | if (op != _Py_NULL) { | 503 | 335M | Py_INCREF(op); | 504 | 335M | } | 505 | 670M | } |
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 structmember.c:Py_XINCREF Line | Count | Source | 501 | 3.01M | { | 502 | 3.01M | if (op != _Py_NULL) { | 503 | 2.02M | Py_INCREF(op); | 504 | 2.02M | } | 505 | 3.01M | } |
Line | Count | Source | 501 | 18.7k | { | 502 | 18.7k | if (op != _Py_NULL) { | 503 | 447 | Py_INCREF(op); | 504 | 447 | } | 505 | 18.7k | } |
Unexecuted instantiation: pegen_errors.c:Py_XINCREF Unexecuted instantiation: parser.c:Py_XINCREF Unexecuted instantiation: buffer.c:Py_XINCREF Unexecuted instantiation: lexer.c:Py_XINCREF Unexecuted instantiation: state.c:Py_XINCREF Unexecuted instantiation: readline_tokenizer.c:Py_XINCREF Unexecuted instantiation: string_tokenizer.c:Py_XINCREF Unexecuted instantiation: utf8_tokenizer.c:Py_XINCREF Unexecuted instantiation: getcompiler.c:Py_XINCREF Unexecuted instantiation: mystrtoul.c:Py_XINCREF Unexecuted instantiation: token.c:Py_XINCREF Unexecuted instantiation: action_helpers.c:Py_XINCREF Unexecuted instantiation: string_parser.c:Py_XINCREF |
506 | | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000 |
507 | 2.01G | # define Py_XINCREF(op) Py_XINCREF(_PyObject_CAST(op)) |
508 | | #endif |
509 | | |
510 | | static inline void Py_XDECREF(PyObject *op) |
511 | 9.56G | { |
512 | 9.56G | if (op != _Py_NULL) { |
513 | 8.41G | Py_DECREF(op); |
514 | 8.41G | } |
515 | 9.56G | } Line | Count | Source | 511 | 8.52M | { | 512 | 8.52M | if (op != _Py_NULL) { | 513 | 76.6k | Py_DECREF(op); | 514 | 76.6k | } | 515 | 8.52M | } |
Unexecuted instantiation: call.c:Py_XDECREF Line | Count | Source | 511 | 98.5M | { | 512 | 98.5M | if (op != _Py_NULL) { | 513 | 49.5M | Py_DECREF(op); | 514 | 49.5M | } | 515 | 98.5M | } |
genericaliasobject.c:Py_XDECREF Line | Count | Source | 511 | 303 | { | 512 | 303 | if (op != _Py_NULL) { | 513 | 202 | Py_DECREF(op); | 514 | 202 | } | 515 | 303 | } |
Line | Count | Source | 511 | 769k | { | 512 | 769k | if (op != _Py_NULL) { | 513 | 39.1k | Py_DECREF(op); | 514 | 39.1k | } | 515 | 769k | } |
Line | Count | Source | 511 | 1.56G | { | 512 | 1.56G | if (op != _Py_NULL) { | 513 | 1.53G | Py_DECREF(op); | 514 | 1.53G | } | 515 | 1.56G | } |
Line | Count | Source | 511 | 12.4M | { | 512 | 12.4M | if (op != _Py_NULL) { | 513 | 4.48M | Py_DECREF(op); | 514 | 4.48M | } | 515 | 12.4M | } |
Line | Count | Source | 511 | 871M | { | 512 | 871M | if (op != _Py_NULL) { | 513 | 864M | Py_DECREF(op); | 514 | 864M | } | 515 | 871M | } |
Unexecuted instantiation: memoryobject.c:Py_XDECREF moduleobject.c:Py_XDECREF Line | Count | Source | 511 | 24.7k | { | 512 | 24.7k | if (op != _Py_NULL) { | 513 | 16.6k | Py_DECREF(op); | 514 | 16.6k | } | 515 | 24.7k | } |
Line | Count | Source | 511 | 4.31M | { | 512 | 4.31M | if (op != _Py_NULL) { | 513 | 22.4k | Py_DECREF(op); | 514 | 22.4k | } | 515 | 4.31M | } |
Unexecuted instantiation: obmalloc.c:Py_XDECREF Unexecuted instantiation: picklebufobject.c:Py_XDECREF Line | Count | Source | 511 | 84 | { | 512 | 84 | if (op != _Py_NULL) { | 513 | 84 | Py_DECREF(op); | 514 | 84 | } | 515 | 84 | } |
Line | Count | Source | 511 | 269k | { | 512 | 269k | if (op != _Py_NULL) { | 513 | 28 | Py_DECREF(op); | 514 | 28 | } | 515 | 269k | } |
Unexecuted instantiation: sliceobject.c:Py_XDECREF Line | Count | Source | 511 | 10.0M | { | 512 | 10.0M | if (op != _Py_NULL) { | 513 | 10.0M | Py_DECREF(op); | 514 | 10.0M | } | 515 | 10.0M | } |
Unexecuted instantiation: templateobject.c:Py_XDECREF Line | Count | Source | 511 | 5.15G | { | 512 | 5.15G | if (op != _Py_NULL) { | 513 | 5.15G | Py_DECREF(op); | 514 | 5.15G | } | 515 | 5.15G | } |
Line | Count | Source | 511 | 35.8M | { | 512 | 35.8M | if (op != _Py_NULL) { | 513 | 22.5M | Py_DECREF(op); | 514 | 22.5M | } | 515 | 35.8M | } |
typevarobject.c:Py_XDECREF Line | Count | Source | 511 | 108 | { | 512 | 108 | if (op != _Py_NULL) { | 513 | 76 | Py_DECREF(op); | 514 | 76 | } | 515 | 108 | } |
Unexecuted instantiation: unicode_format.c:Py_XDECREF unicode_formatter.c:Py_XDECREF Line | Count | Source | 511 | 548 | { | 512 | 548 | if (op != _Py_NULL) { | 513 | 256 | Py_DECREF(op); | 514 | 256 | } | 515 | 548 | } |
Unexecuted instantiation: unicode_writer.c:Py_XDECREF Unexecuted instantiation: unicodectype.c:Py_XDECREF unicodeobject.c:Py_XDECREF Line | Count | Source | 511 | 101M | { | 512 | 101M | if (op != _Py_NULL) { | 513 | 74.2M | Py_DECREF(op); | 514 | 74.2M | } | 515 | 101M | } |
Line | Count | Source | 511 | 858 | { | 512 | 858 | if (op != _Py_NULL) { | 513 | 48 | Py_DECREF(op); | 514 | 48 | } | 515 | 858 | } |
weakrefobject.c:Py_XDECREF Line | Count | Source | 511 | 343k | { | 512 | 343k | if (op != _Py_NULL) { | 513 | 4.62k | Py_DECREF(op); | 514 | 4.62k | } | 515 | 343k | } |
Line | Count | Source | 511 | 3.49M | { | 512 | 3.49M | if (op != _Py_NULL) { | 513 | 3.09M | Py_DECREF(op); | 514 | 3.09M | } | 515 | 3.49M | } |
Line | Count | Source | 511 | 9.55M | { | 512 | 9.55M | if (op != _Py_NULL) { | 513 | 733k | Py_DECREF(op); | 514 | 733k | } | 515 | 9.55M | } |
Line | Count | Source | 511 | 326k | { | 512 | 326k | if (op != _Py_NULL) { | 513 | 6.09k | Py_DECREF(op); | 514 | 6.09k | } | 515 | 326k | } |
Line | Count | Source | 511 | 201k | { | 512 | 201k | if (op != _Py_NULL) { | 513 | 134k | Py_DECREF(op); | 514 | 134k | } | 515 | 201k | } |
Unexecuted instantiation: codegen.c:Py_XDECREF Line | Count | Source | 511 | 33.7k | { | 512 | 33.7k | if (op != _Py_NULL) { | 513 | 10.3k | Py_DECREF(op); | 514 | 10.3k | } | 515 | 33.7k | } |
Unexecuted instantiation: context.c:Py_XDECREF Line | Count | Source | 511 | 242M | { | 512 | 242M | if (op != _Py_NULL) { | 513 | 33.9M | Py_DECREF(op); | 514 | 33.9M | } | 515 | 242M | } |
Unexecuted instantiation: flowgraph.c:Py_XDECREF Unexecuted instantiation: frame.c:Py_XDECREF Unexecuted instantiation: future.c:Py_XDECREF Line | Count | Source | 511 | 171k | { | 512 | 171k | if (op != _Py_NULL) { | 513 | 0 | Py_DECREF(op); | 514 | 0 | } | 515 | 171k | } |
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 | 511 | 6.13M | { | 512 | 6.13M | if (op != _Py_NULL) { | 513 | 4.31M | Py_DECREF(op); | 514 | 4.31M | } | 515 | 6.13M | } |
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 | 511 | 16.9k | { | 512 | 16.9k | if (op != _Py_NULL) { | 513 | 0 | Py_DECREF(op); | 514 | 0 | } | 515 | 16.9k | } |
Line | Count | Source | 511 | 24.8k | { | 512 | 24.8k | if (op != _Py_NULL) { | 513 | 24.8k | Py_DECREF(op); | 514 | 24.8k | } | 515 | 24.8k | } |
Unexecuted instantiation: legacy_tracing.c:Py_XDECREF Unexecuted instantiation: lock.c:Py_XDECREF Line | Count | Source | 511 | 1.56M | { | 512 | 1.56M | if (op != _Py_NULL) { | 513 | 1.56M | Py_DECREF(op); | 514 | 1.56M | } | 515 | 1.56M | } |
Line | Count | Source | 511 | 11.2k | { | 512 | 11.2k | if (op != _Py_NULL) { | 513 | 11.2k | Py_DECREF(op); | 514 | 11.2k | } | 515 | 11.2k | } |
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 | 511 | 168 | { | 512 | 168 | if (op != _Py_NULL) { | 513 | 168 | Py_DECREF(op); | 514 | 168 | } | 515 | 168 | } |
Unexecuted instantiation: pymath.c:Py_XDECREF Unexecuted instantiation: pystate.c:Py_XDECREF Line | Count | Source | 511 | 546 | { | 512 | 546 | if (op != _Py_NULL) { | 513 | 364 | Py_DECREF(op); | 514 | 364 | } | 515 | 546 | } |
Unexecuted instantiation: pytime.c:Py_XDECREF Unexecuted instantiation: qsbr.c:Py_XDECREF Unexecuted instantiation: bootstrap_hash.c:Py_XDECREF Line | Count | Source | 511 | 3.48M | { | 512 | 3.48M | if (op != _Py_NULL) { | 513 | 2.14M | Py_DECREF(op); | 514 | 2.14M | } | 515 | 3.48M | } |
Line | Count | Source | 511 | 205k | { | 512 | 205k | if (op != _Py_NULL) { | 513 | 161k | Py_DECREF(op); | 514 | 161k | } | 515 | 205k | } |
Line | Count | Source | 511 | 4.07M | { | 512 | 4.07M | if (op != _Py_NULL) { | 513 | 3.06M | Py_DECREF(op); | 514 | 3.06M | } | 515 | 4.07M | } |
Unexecuted instantiation: thread.c:Py_XDECREF Line | Count | Source | 511 | 210M | { | 512 | 210M | if (op != _Py_NULL) { | 513 | 133M | Py_DECREF(op); | 514 | 133M | } | 515 | 210M | } |
Unexecuted instantiation: tracemalloc.c:Py_XDECREF Unexecuted instantiation: getopt.c:Py_XDECREF Unexecuted instantiation: pystrcmp.c:Py_XDECREF Unexecuted instantiation: pystrtod.c:Py_XDECREF Unexecuted instantiation: pystrhex.c:Py_XDECREF Unexecuted instantiation: dtoa.c:Py_XDECREF Unexecuted instantiation: fileutils.c:Py_XDECREF Unexecuted instantiation: suggestions.c:Py_XDECREF Unexecuted instantiation: perf_trampoline.c:Py_XDECREF Unexecuted instantiation: perf_jit_trampoline.c:Py_XDECREF Unexecuted instantiation: remote_debugging.c:Py_XDECREF Unexecuted instantiation: dynload_shlib.c:Py_XDECREF Unexecuted instantiation: config.c:Py_XDECREF Unexecuted instantiation: gcmodule.c:Py_XDECREF Unexecuted instantiation: _asynciomodule.c:Py_XDECREF Unexecuted instantiation: atexitmodule.c:Py_XDECREF Unexecuted instantiation: faulthandler.c:Py_XDECREF Line | Count | Source | 511 | 1.70M | { | 512 | 1.70M | if (op != _Py_NULL) { | 513 | 1.46M | Py_DECREF(op); | 514 | 1.46M | } | 515 | 1.70M | } |
signalmodule.c:Py_XDECREF Line | Count | Source | 511 | 1.79k | { | 512 | 1.79k | if (op != _Py_NULL) { | 513 | 0 | Py_DECREF(op); | 514 | 0 | } | 515 | 1.79k | } |
Unexecuted instantiation: _tracemalloc.c:Py_XDECREF Unexecuted instantiation: _suggestions.c:Py_XDECREF _datetimemodule.c:Py_XDECREF Line | Count | Source | 511 | 30 | { | 512 | 30 | if (op != _Py_NULL) { | 513 | 16 | Py_DECREF(op); | 514 | 16 | } | 515 | 30 | } |
Unexecuted instantiation: _codecsmodule.c:Py_XDECREF _collectionsmodule.c:Py_XDECREF Line | Count | Source | 511 | 4 | { | 512 | 4 | if (op != _Py_NULL) { | 513 | 0 | Py_DECREF(op); | 514 | 0 | } | 515 | 4 | } |
Unexecuted instantiation: errnomodule.c:Py_XDECREF Unexecuted instantiation: _iomodule.c:Py_XDECREF Unexecuted instantiation: iobase.c:Py_XDECREF Unexecuted instantiation: fileio.c:Py_XDECREF Line | Count | Source | 511 | 34.5k | { | 512 | 34.5k | if (op != _Py_NULL) { | 513 | 34.5k | Py_DECREF(op); | 514 | 34.5k | } | 515 | 34.5k | } |
Line | Count | Source | 511 | 40.2k | { | 512 | 40.2k | if (op != _Py_NULL) { | 513 | 6.77k | Py_DECREF(op); | 514 | 6.77k | } | 515 | 40.2k | } |
Line | Count | Source | 511 | 33.2k | { | 512 | 33.2k | if (op != _Py_NULL) { | 513 | 56 | Py_DECREF(op); | 514 | 56 | } | 515 | 33.2k | } |
Unexecuted instantiation: stringio.c:Py_XDECREF itertoolsmodule.c:Py_XDECREF Line | Count | Source | 511 | 29.7k | { | 512 | 29.7k | if (op != _Py_NULL) { | 513 | 4.75k | Py_DECREF(op); | 514 | 4.75k | } | 515 | 29.7k | } |
Line | Count | Source | 511 | 94.9M | { | 512 | 94.9M | if (op != _Py_NULL) { | 513 | 94.9M | Py_DECREF(op); | 514 | 94.9M | } | 515 | 94.9M | } |
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 | 511 | 27.6k | { | 512 | 27.6k | if (op != _Py_NULL) { | 513 | 25.8k | Py_DECREF(op); | 514 | 25.8k | } | 515 | 27.6k | } |
_functoolsmodule.c:Py_XDECREF Line | Count | Source | 511 | 77 | { | 512 | 77 | if (op != _Py_NULL) { | 513 | 0 | Py_DECREF(op); | 514 | 0 | } | 515 | 77 | } |
Unexecuted instantiation: _localemodule.c:Py_XDECREF Unexecuted instantiation: _opcode.c:Py_XDECREF Unexecuted instantiation: _operator.c:Py_XDECREF Unexecuted instantiation: _stat.c:Py_XDECREF Unexecuted instantiation: symtablemodule.c:Py_XDECREF Unexecuted instantiation: pwdmodule.c:Py_XDECREF Unexecuted instantiation: getpath.c:Py_XDECREF Unexecuted instantiation: frozen.c:Py_XDECREF Unexecuted instantiation: getbuildinfo.c:Py_XDECREF Unexecuted instantiation: peg_api.c:Py_XDECREF Unexecuted instantiation: file_tokenizer.c:Py_XDECREF Line | Count | Source | 511 | 2.90k | { | 512 | 2.90k | if (op != _Py_NULL) { | 513 | 2.90k | Py_DECREF(op); | 514 | 2.90k | } | 515 | 2.90k | } |
Unexecuted instantiation: myreadline.c:Py_XDECREF Line | Count | Source | 511 | 325k | { | 512 | 325k | if (op != _Py_NULL) { | 513 | 163k | Py_DECREF(op); | 514 | 163k | } | 515 | 325k | } |
Unexecuted instantiation: boolobject.c:Py_XDECREF Unexecuted instantiation: bytes_methods.c:Py_XDECREF bytearrayobject.c:Py_XDECREF Line | Count | Source | 511 | 2.94M | { | 512 | 2.94M | if (op != _Py_NULL) { | 513 | 2.94M | Py_DECREF(op); | 514 | 2.94M | } | 515 | 2.94M | } |
Line | Count | Source | 511 | 5 | { | 512 | 5 | if (op != _Py_NULL) { | 513 | 5 | Py_DECREF(op); | 514 | 5 | } | 515 | 5 | } |
Line | Count | Source | 511 | 7.90M | { | 512 | 7.90M | if (op != _Py_NULL) { | 513 | 450k | Py_DECREF(op); | 514 | 450k | } | 515 | 7.90M | } |
Line | Count | Source | 511 | 38.5M | { | 512 | 38.5M | if (op != _Py_NULL) { | 513 | 38.5M | Py_DECREF(op); | 514 | 38.5M | } | 515 | 38.5M | } |
Line | Count | Source | 511 | 1.20M | { | 512 | 1.20M | if (op != _Py_NULL) { | 513 | 1.04M | Py_DECREF(op); | 514 | 1.04M | } | 515 | 1.20M | } |
Unexecuted instantiation: complexobject.c:Py_XDECREF Line | Count | Source | 511 | 31.6M | { | 512 | 31.6M | if (op != _Py_NULL) { | 513 | 22.8M | Py_DECREF(op); | 514 | 22.8M | } | 515 | 31.6M | } |
Line | Count | Source | 511 | 24.0M | { | 512 | 24.0M | if (op != _Py_NULL) { | 513 | 16.0M | Py_DECREF(op); | 514 | 16.0M | } | 515 | 24.0M | } |
Line | Count | Source | 511 | 928 | { | 512 | 928 | if (op != _Py_NULL) { | 513 | 0 | Py_DECREF(op); | 514 | 0 | } | 515 | 928 | } |
Unexecuted instantiation: fileobject.c:Py_XDECREF Unexecuted instantiation: frameobject.c:Py_XDECREF Line | Count | Source | 511 | 4.84k | { | 512 | 4.84k | if (op != _Py_NULL) { | 513 | 1.68k | Py_DECREF(op); | 514 | 1.68k | } | 515 | 4.84k | } |
Unexecuted instantiation: interpolationobject.c:Py_XDECREF Line | Count | Source | 511 | 2.03M | { | 512 | 2.03M | if (op != _Py_NULL) { | 513 | 405k | Py_DECREF(op); | 514 | 405k | } | 515 | 2.03M | } |
Line | Count | Source | 511 | 324 | { | 512 | 324 | if (op != _Py_NULL) { | 513 | 276 | Py_DECREF(op); | 514 | 276 | } | 515 | 324 | } |
methodobject.c:Py_XDECREF Line | Count | Source | 511 | 1.00G | { | 512 | 1.00G | if (op != _Py_NULL) { | 513 | 343M | Py_DECREF(op); | 514 | 343M | } | 515 | 1.00G | } |
Unexecuted instantiation: namespaceobject.c:Py_XDECREF Unexecuted instantiation: _contextvars.c:Py_XDECREF Line | Count | Source | 511 | 282 | { | 512 | 282 | if (op != _Py_NULL) { | 513 | 188 | Py_DECREF(op); | 514 | 188 | } | 515 | 282 | } |
Unexecuted instantiation: Python-tokenize.c:Py_XDECREF Unexecuted instantiation: asdl.c:Py_XDECREF Line | Count | Source | 511 | 59.1k | { | 512 | 59.1k | if (op != _Py_NULL) { | 513 | 59.1k | Py_DECREF(op); | 514 | 59.1k | } | 515 | 59.1k | } |
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 structmember.c:Py_XDECREF Line | Count | Source | 511 | 2.01M | { | 512 | 2.01M | if (op != _Py_NULL) { | 513 | 1.68k | Py_DECREF(op); | 514 | 1.68k | } | 515 | 2.01M | } |
Line | Count | Source | 511 | 30.8k | { | 512 | 30.8k | if (op != _Py_NULL) { | 513 | 1.43k | Py_DECREF(op); | 514 | 1.43k | } | 515 | 30.8k | } |
pegen_errors.c:Py_XDECREF Line | Count | Source | 511 | 9.12k | { | 512 | 9.12k | if (op != _Py_NULL) { | 513 | 7.78k | Py_DECREF(op); | 514 | 7.78k | } | 515 | 9.12k | } |
Unexecuted instantiation: parser.c:Py_XDECREF Unexecuted instantiation: buffer.c:Py_XDECREF Unexecuted instantiation: lexer.c:Py_XDECREF Line | Count | Source | 511 | 112k | { | 512 | 112k | if (op != _Py_NULL) { | 513 | 21.4k | Py_DECREF(op); | 514 | 21.4k | } | 515 | 112k | } |
Unexecuted instantiation: readline_tokenizer.c:Py_XDECREF Unexecuted instantiation: string_tokenizer.c:Py_XDECREF Unexecuted instantiation: utf8_tokenizer.c:Py_XDECREF Unexecuted instantiation: getcompiler.c:Py_XDECREF Unexecuted instantiation: mystrtoul.c:Py_XDECREF Unexecuted instantiation: token.c:Py_XDECREF Unexecuted instantiation: action_helpers.c:Py_XDECREF string_parser.c:Py_XDECREF Line | Count | Source | 511 | 30.3k | { | 512 | 30.3k | if (op != _Py_NULL) { | 513 | 30.3k | Py_DECREF(op); | 514 | 30.3k | } | 515 | 30.3k | } |
|
516 | | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000 |
517 | 9.56G | # define Py_XDECREF(op) Py_XDECREF(_PyObject_CAST(op)) |
518 | | #endif |
519 | | |
520 | | // Create a new strong reference to an object: |
521 | | // increment the reference count of the object and return the object. |
522 | | PyAPI_FUNC(PyObject*) Py_NewRef(PyObject *obj); |
523 | | |
524 | | // Similar to Py_NewRef(), but the object can be NULL. |
525 | | PyAPI_FUNC(PyObject*) Py_XNewRef(PyObject *obj); |
526 | | |
527 | | static inline PyObject* _Py_NewRef(PyObject *obj) |
528 | 11.0G | { |
529 | 11.0G | Py_INCREF(obj); |
530 | 11.0G | return obj; |
531 | 11.0G | } Line | Count | Source | 528 | 431k | { | 529 | 431k | Py_INCREF(obj); | 530 | 431k | return obj; | 531 | 431k | } |
Line | Count | Source | 528 | 29.0M | { | 529 | 29.0M | Py_INCREF(obj); | 530 | 29.0M | return obj; | 531 | 29.0M | } |
Line | Count | Source | 528 | 135M | { | 529 | 135M | Py_INCREF(obj); | 530 | 135M | return obj; | 531 | 135M | } |
genericaliasobject.c:_Py_NewRef Line | Count | Source | 528 | 1.43k | { | 529 | 1.43k | Py_INCREF(obj); | 530 | 1.43k | return obj; | 531 | 1.43k | } |
Unexecuted instantiation: floatobject.c:_Py_NewRef Line | Count | Source | 528 | 1.21G | { | 529 | 1.21G | Py_INCREF(obj); | 530 | 1.21G | return obj; | 531 | 1.21G | } |
Line | Count | Source | 528 | 9.62M | { | 529 | 9.62M | Py_INCREF(obj); | 530 | 9.62M | return obj; | 531 | 9.62M | } |
Line | Count | Source | 528 | 1.49G | { | 529 | 1.49G | Py_INCREF(obj); | 530 | 1.49G | return obj; | 531 | 1.49G | } |
memoryobject.c:_Py_NewRef Line | Count | Source | 528 | 1.28M | { | 529 | 1.28M | Py_INCREF(obj); | 530 | 1.28M | return obj; | 531 | 1.28M | } |
moduleobject.c:_Py_NewRef Line | Count | Source | 528 | 7.73k | { | 529 | 7.73k | Py_INCREF(obj); | 530 | 7.73k | return obj; | 531 | 7.73k | } |
Line | Count | Source | 528 | 154M | { | 529 | 154M | Py_INCREF(obj); | 530 | 154M | return obj; | 531 | 154M | } |
Unexecuted instantiation: obmalloc.c:_Py_NewRef Unexecuted instantiation: picklebufobject.c:_Py_NewRef Line | Count | Source | 528 | 84 | { | 529 | 84 | Py_INCREF(obj); | 530 | 84 | return obj; | 531 | 84 | } |
Line | Count | Source | 528 | 8.08M | { | 529 | 8.08M | Py_INCREF(obj); | 530 | 8.08M | return obj; | 531 | 8.08M | } |
Line | Count | Source | 528 | 55.9M | { | 529 | 55.9M | Py_INCREF(obj); | 530 | 55.9M | return obj; | 531 | 55.9M | } |
Unexecuted instantiation: structseq.c:_Py_NewRef templateobject.c:_Py_NewRef Line | Count | Source | 528 | 4 | { | 529 | 4 | Py_INCREF(obj); | 530 | 4 | return obj; | 531 | 4 | } |
Line | Count | Source | 528 | 4.85G | { | 529 | 4.85G | Py_INCREF(obj); | 530 | 4.85G | return obj; | 531 | 4.85G | } |
Line | Count | Source | 528 | 150M | { | 529 | 150M | Py_INCREF(obj); | 530 | 150M | return obj; | 531 | 150M | } |
typevarobject.c:_Py_NewRef Line | Count | Source | 528 | 188 | { | 529 | 188 | Py_INCREF(obj); | 530 | 188 | return obj; | 531 | 188 | } |
unicode_format.c:_Py_NewRef Line | Count | Source | 528 | 54.9M | { | 529 | 54.9M | Py_INCREF(obj); | 530 | 54.9M | return obj; | 531 | 54.9M | } |
Unexecuted instantiation: unicode_formatter.c:_Py_NewRef unicode_writer.c:_Py_NewRef Line | Count | Source | 528 | 9.98k | { | 529 | 9.98k | Py_INCREF(obj); | 530 | 9.98k | return obj; | 531 | 9.98k | } |
Unexecuted instantiation: unicodectype.c:_Py_NewRef unicodeobject.c:_Py_NewRef Line | Count | Source | 528 | 190M | { | 529 | 190M | Py_INCREF(obj); | 530 | 190M | return obj; | 531 | 190M | } |
Unexecuted instantiation: unionobject.c:_Py_NewRef Unexecuted instantiation: weakrefobject.c:_Py_NewRef Line | Count | Source | 528 | 1.31M | { | 529 | 1.31M | Py_INCREF(obj); | 530 | 1.31M | return obj; | 531 | 1.31M | } |
Line | Count | Source | 528 | 20.6M | { | 529 | 20.6M | Py_INCREF(obj); | 530 | 20.6M | return obj; | 531 | 20.6M | } |
Line | Count | Source | 528 | 1.52G | { | 529 | 1.52G | Py_INCREF(obj); | 530 | 1.52G | return obj; | 531 | 1.52G | } |
Line | Count | Source | 528 | 2.73M | { | 529 | 2.73M | Py_INCREF(obj); | 530 | 2.73M | return obj; | 531 | 2.73M | } |
Line | Count | Source | 528 | 3.37k | { | 529 | 3.37k | Py_INCREF(obj); | 530 | 3.37k | return obj; | 531 | 3.37k | } |
Line | Count | Source | 528 | 129k | { | 529 | 129k | Py_INCREF(obj); | 530 | 129k | return obj; | 531 | 129k | } |
Line | Count | Source | 528 | 42 | { | 529 | 42 | Py_INCREF(obj); | 530 | 42 | return obj; | 531 | 42 | } |
Line | Count | Source | 528 | 41.0M | { | 529 | 41.0M | Py_INCREF(obj); | 530 | 41.0M | return obj; | 531 | 41.0M | } |
Line | Count | Source | 528 | 113k | { | 529 | 113k | Py_INCREF(obj); | 530 | 113k | return obj; | 531 | 113k | } |
Line | Count | Source | 528 | 28.7M | { | 529 | 28.7M | Py_INCREF(obj); | 530 | 28.7M | return obj; | 531 | 28.7M | } |
Unexecuted instantiation: future.c:_Py_NewRef Unexecuted instantiation: gc.c:_Py_NewRef Unexecuted instantiation: gc_gil.c:_Py_NewRef Line | Count | Source | 528 | 2.39M | { | 529 | 2.39M | Py_INCREF(obj); | 530 | 2.39M | return obj; | 531 | 2.39M | } |
Unexecuted instantiation: ceval_gil.c:_Py_NewRef Unexecuted instantiation: hamt.c:_Py_NewRef Unexecuted instantiation: hashtable.c:_Py_NewRef Line | Count | Source | 528 | 3.56M | { | 529 | 3.56M | Py_INCREF(obj); | 530 | 3.56M | return obj; | 531 | 3.56M | } |
Line | Count | Source | 528 | 808 | { | 529 | 808 | Py_INCREF(obj); | 530 | 808 | return obj; | 531 | 808 | } |
Line | Count | Source | 528 | 476 | { | 529 | 476 | Py_INCREF(obj); | 530 | 476 | return obj; | 531 | 476 | } |
Unexecuted instantiation: instrumentation.c:_Py_NewRef Unexecuted instantiation: instruction_sequence.c:_Py_NewRef Line | Count | Source | 528 | 24.4k | { | 529 | 24.4k | Py_INCREF(obj); | 530 | 24.4k | return obj; | 531 | 24.4k | } |
Unexecuted instantiation: legacy_tracing.c:_Py_NewRef Unexecuted instantiation: lock.c:_Py_NewRef Line | Count | Source | 528 | 1.66M | { | 529 | 1.66M | Py_INCREF(obj); | 530 | 1.66M | return obj; | 531 | 1.66M | } |
Unexecuted instantiation: modsupport.c:_Py_NewRef 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 | 528 | 28 | { | 529 | 28 | Py_INCREF(obj); | 530 | 28 | return obj; | 531 | 28 | } |
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 Line | Count | Source | 528 | 341k | { | 529 | 341k | Py_INCREF(obj); | 530 | 341k | return obj; | 531 | 341k | } |
Line | Count | Source | 528 | 1.34k | { | 529 | 1.34k | Py_INCREF(obj); | 530 | 1.34k | return obj; | 531 | 1.34k | } |
Unexecuted instantiation: thread.c:_Py_NewRef Unexecuted instantiation: traceback.c:_Py_NewRef Unexecuted instantiation: tracemalloc.c:_Py_NewRef Unexecuted instantiation: getopt.c:_Py_NewRef Unexecuted instantiation: pystrcmp.c:_Py_NewRef Unexecuted instantiation: pystrtod.c:_Py_NewRef Unexecuted instantiation: pystrhex.c:_Py_NewRef Unexecuted instantiation: dtoa.c:_Py_NewRef Unexecuted instantiation: fileutils.c:_Py_NewRef Unexecuted instantiation: suggestions.c:_Py_NewRef Unexecuted instantiation: perf_trampoline.c:_Py_NewRef Unexecuted instantiation: perf_jit_trampoline.c:_Py_NewRef Unexecuted instantiation: 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 | 528 | 2 | { | 529 | 2 | Py_INCREF(obj); | 530 | 2 | return obj; | 531 | 2 | } |
Unexecuted instantiation: faulthandler.c:_Py_NewRef Line | Count | Source | 528 | 2.13M | { | 529 | 2.13M | Py_INCREF(obj); | 530 | 2.13M | return obj; | 531 | 2.13M | } |
signalmodule.c:_Py_NewRef Line | Count | Source | 528 | 1.79k | { | 529 | 1.79k | Py_INCREF(obj); | 530 | 1.79k | return obj; | 531 | 1.79k | } |
Unexecuted instantiation: _tracemalloc.c:_Py_NewRef Unexecuted instantiation: _suggestions.c:_Py_NewRef _datetimemodule.c:_Py_NewRef Line | Count | Source | 528 | 86 | { | 529 | 86 | Py_INCREF(obj); | 530 | 86 | return obj; | 531 | 86 | } |
Unexecuted instantiation: _codecsmodule.c:_Py_NewRef _collectionsmodule.c:_Py_NewRef Line | Count | Source | 528 | 23.3M | { | 529 | 23.3M | Py_INCREF(obj); | 530 | 23.3M | return obj; | 531 | 23.3M | } |
Unexecuted instantiation: errnomodule.c:_Py_NewRef Line | Count | Source | 528 | 349 | { | 529 | 349 | Py_INCREF(obj); | 530 | 349 | return obj; | 531 | 349 | } |
Line | Count | Source | 528 | 65.8k | { | 529 | 65.8k | Py_INCREF(obj); | 530 | 65.8k | return obj; | 531 | 65.8k | } |
Unexecuted instantiation: fileio.c:_Py_NewRef Line | Count | Source | 528 | 50.7k | { | 529 | 50.7k | Py_INCREF(obj); | 530 | 50.7k | return obj; | 531 | 50.7k | } |
Line | Count | Source | 528 | 13.1k | { | 529 | 13.1k | Py_INCREF(obj); | 530 | 13.1k | return obj; | 531 | 13.1k | } |
Line | Count | Source | 528 | 246k | { | 529 | 246k | Py_INCREF(obj); | 530 | 246k | return obj; | 531 | 246k | } |
Line | Count | Source | 528 | 22.0k | { | 529 | 22.0k | Py_INCREF(obj); | 530 | 22.0k | return obj; | 531 | 22.0k | } |
itertoolsmodule.c:_Py_NewRef Line | Count | Source | 528 | 39.2k | { | 529 | 39.2k | Py_INCREF(obj); | 530 | 39.2k | return obj; | 531 | 39.2k | } |
Line | Count | Source | 528 | 192M | { | 529 | 192M | Py_INCREF(obj); | 530 | 192M | return obj; | 531 | 192M | } |
Unexecuted instantiation: _sysconfig.c:_Py_NewRef _threadmodule.c:_Py_NewRef Line | Count | Source | 528 | 2 | { | 529 | 2 | Py_INCREF(obj); | 530 | 2 | return obj; | 531 | 2 | } |
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 | 528 | 11.6k | { | 529 | 11.6k | Py_INCREF(obj); | 530 | 11.6k | return obj; | 531 | 11.6k | } |
_functoolsmodule.c:_Py_NewRef Line | Count | Source | 528 | 233k | { | 529 | 233k | Py_INCREF(obj); | 530 | 233k | return obj; | 531 | 233k | } |
Unexecuted instantiation: _localemodule.c:_Py_NewRef Unexecuted instantiation: _opcode.c:_Py_NewRef Line | Count | Source | 528 | 1.35M | { | 529 | 1.35M | Py_INCREF(obj); | 530 | 1.35M | return obj; | 531 | 1.35M | } |
Unexecuted instantiation: _stat.c:_Py_NewRef Unexecuted instantiation: symtablemodule.c:_Py_NewRef Unexecuted instantiation: pwdmodule.c:_Py_NewRef Line | Count | Source | 528 | 224 | { | 529 | 224 | Py_INCREF(obj); | 530 | 224 | return obj; | 531 | 224 | } |
Unexecuted instantiation: frozen.c:_Py_NewRef Unexecuted instantiation: getbuildinfo.c:_Py_NewRef Unexecuted instantiation: peg_api.c:_Py_NewRef Unexecuted instantiation: file_tokenizer.c:_Py_NewRef Unexecuted instantiation: helpers.c:_Py_NewRef Unexecuted instantiation: myreadline.c:_Py_NewRef Line | Count | Source | 528 | 636M | { | 529 | 636M | Py_INCREF(obj); | 530 | 636M | return obj; | 531 | 636M | } |
Unexecuted instantiation: boolobject.c:_Py_NewRef Unexecuted instantiation: bytes_methods.c:_Py_NewRef bytearrayobject.c:_Py_NewRef Line | Count | Source | 528 | 221k | { | 529 | 221k | Py_INCREF(obj); | 530 | 221k | return obj; | 531 | 221k | } |
Unexecuted instantiation: capsule.c:_Py_NewRef Unexecuted instantiation: cellobject.c:_Py_NewRef Line | Count | Source | 528 | 77.0M | { | 529 | 77.0M | Py_INCREF(obj); | 530 | 77.0M | return obj; | 531 | 77.0M | } |
Line | Count | Source | 528 | 1.67M | { | 529 | 1.67M | Py_INCREF(obj); | 530 | 1.67M | return obj; | 531 | 1.67M | } |
Unexecuted instantiation: complexobject.c:_Py_NewRef Line | Count | Source | 528 | 22.9M | { | 529 | 22.9M | Py_INCREF(obj); | 530 | 22.9M | return obj; | 531 | 22.9M | } |
Line | Count | Source | 528 | 20 | { | 529 | 20 | Py_INCREF(obj); | 530 | 20 | return obj; | 531 | 20 | } |
Line | Count | Source | 528 | 44.7M | { | 529 | 44.7M | Py_INCREF(obj); | 530 | 44.7M | return obj; | 531 | 44.7M | } |
Unexecuted instantiation: fileobject.c:_Py_NewRef Line | Count | Source | 528 | 6.32M | { | 529 | 6.32M | Py_INCREF(obj); | 530 | 6.32M | return obj; | 531 | 6.32M | } |
Line | Count | Source | 528 | 33.7M | { | 529 | 33.7M | Py_INCREF(obj); | 530 | 33.7M | return obj; | 531 | 33.7M | } |
Unexecuted instantiation: interpolationobject.c:_Py_NewRef Line | Count | Source | 528 | 1.62M | { | 529 | 1.62M | Py_INCREF(obj); | 530 | 1.62M | return obj; | 531 | 1.62M | } |
Line | Count | Source | 528 | 192 | { | 529 | 192 | Py_INCREF(obj); | 530 | 192 | return obj; | 531 | 192 | } |
methodobject.c:_Py_NewRef Line | Count | Source | 528 | 8.41M | { | 529 | 8.41M | Py_INCREF(obj); | 530 | 8.41M | return obj; | 531 | 8.41M | } |
Unexecuted instantiation: namespaceobject.c:_Py_NewRef Unexecuted instantiation: _contextvars.c:_Py_NewRef Line | Count | Source | 528 | 400k | { | 529 | 400k | Py_INCREF(obj); | 530 | 400k | return obj; | 531 | 400k | } |
Unexecuted instantiation: Python-tokenize.c:_Py_NewRef Unexecuted instantiation: asdl.c:_Py_NewRef Line | Count | Source | 528 | 56.9k | { | 529 | 56.9k | Py_INCREF(obj); | 530 | 56.9k | return obj; | 531 | 56.9k | } |
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: structmember.c:_Py_NewRef Line | Count | Source | 528 | 18.7k | { | 529 | 18.7k | Py_INCREF(obj); | 530 | 18.7k | return obj; | 531 | 18.7k | } |
Unexecuted instantiation: pegen_errors.c:_Py_NewRef Unexecuted instantiation: parser.c:_Py_NewRef Unexecuted instantiation: buffer.c:_Py_NewRef Unexecuted instantiation: lexer.c:_Py_NewRef Unexecuted instantiation: state.c:_Py_NewRef Unexecuted instantiation: readline_tokenizer.c:_Py_NewRef Unexecuted instantiation: string_tokenizer.c:_Py_NewRef Unexecuted instantiation: utf8_tokenizer.c:_Py_NewRef Unexecuted instantiation: getcompiler.c:_Py_NewRef Unexecuted instantiation: mystrtoul.c:_Py_NewRef Unexecuted instantiation: token.c:_Py_NewRef Unexecuted instantiation: action_helpers.c:_Py_NewRef Unexecuted instantiation: string_parser.c:_Py_NewRef |
532 | | |
533 | | static inline PyObject* _Py_XNewRef(PyObject *obj) |
534 | 1.71G | { |
535 | 1.71G | Py_XINCREF(obj); |
536 | 1.71G | return obj; |
537 | 1.71G | } Unexecuted instantiation: bytesobject.c:_Py_XNewRef Unexecuted instantiation: call.c:_Py_XNewRef Line | Count | Source | 534 | 101M | { | 535 | 101M | Py_XINCREF(obj); | 536 | 101M | return obj; | 537 | 101M | } |
Unexecuted instantiation: genericaliasobject.c:_Py_XNewRef Unexecuted instantiation: floatobject.c:_Py_XNewRef Line | Count | Source | 534 | 4.39M | { | 535 | 4.39M | Py_XINCREF(obj); | 536 | 4.39M | return obj; | 537 | 4.39M | } |
Unexecuted instantiation: longobject.c:_Py_XNewRef Line | Count | Source | 534 | 708M | { | 535 | 708M | Py_XINCREF(obj); | 536 | 708M | return obj; | 537 | 708M | } |
Unexecuted instantiation: memoryobject.c:_Py_XNewRef 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 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 | 534 | 301k | { | 535 | 301k | Py_XINCREF(obj); | 536 | 301k | return obj; | 537 | 301k | } |
typevarobject.c:_Py_XNewRef Line | Count | Source | 534 | 296 | { | 535 | 296 | Py_XINCREF(obj); | 536 | 296 | return obj; | 537 | 296 | } |
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 | 534 | 333k | { | 535 | 333k | Py_XINCREF(obj); | 536 | 333k | return obj; | 537 | 333k | } |
Unexecuted instantiation: _warnings.c:_Py_XNewRef bltinmodule.c:_Py_XNewRef Line | Count | Source | 534 | 589 | { | 535 | 589 | Py_XINCREF(obj); | 536 | 589 | return obj; | 537 | 589 | } |
Line | Count | Source | 534 | 85.2M | { | 535 | 85.2M | Py_XINCREF(obj); | 536 | 85.2M | return obj; | 537 | 85.2M | } |
Unexecuted instantiation: codecs.c:_Py_XNewRef Unexecuted instantiation: codegen.c:_Py_XNewRef Line | Count | Source | 534 | 12.1k | { | 535 | 12.1k | Py_XINCREF(obj); | 536 | 12.1k | return obj; | 537 | 12.1k | } |
Line | Count | Source | 534 | 42 | { | 535 | 42 | Py_XINCREF(obj); | 536 | 42 | return obj; | 537 | 42 | } |
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 | 534 | 41.0k | { | 535 | 41.0k | Py_XINCREF(obj); | 536 | 41.0k | return obj; | 537 | 41.0k | } |
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 | 534 | 571k | { | 535 | 571k | Py_XINCREF(obj); | 536 | 571k | return obj; | 537 | 571k | } |
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: symtable.c:_Py_XNewRef Line | Count | Source | 534 | 28 | { | 535 | 28 | Py_XINCREF(obj); | 536 | 28 | return obj; | 537 | 28 | } |
Unexecuted instantiation: thread.c:_Py_XNewRef Line | Count | Source | 534 | 105M | { | 535 | 105M | Py_XINCREF(obj); | 536 | 105M | return obj; | 537 | 105M | } |
Unexecuted instantiation: tracemalloc.c:_Py_XNewRef Unexecuted instantiation: getopt.c:_Py_XNewRef Unexecuted instantiation: pystrcmp.c:_Py_XNewRef Unexecuted instantiation: pystrtod.c:_Py_XNewRef Unexecuted instantiation: pystrhex.c:_Py_XNewRef Unexecuted instantiation: dtoa.c:_Py_XNewRef Unexecuted instantiation: fileutils.c:_Py_XNewRef Unexecuted instantiation: suggestions.c:_Py_XNewRef Unexecuted instantiation: perf_trampoline.c:_Py_XNewRef Unexecuted instantiation: perf_jit_trampoline.c:_Py_XNewRef Unexecuted instantiation: 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 | 534 | 235k | { | 535 | 235k | Py_XINCREF(obj); | 536 | 235k | return obj; | 537 | 235k | } |
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 | 534 | 56 | { | 535 | 56 | Py_XINCREF(obj); | 536 | 56 | return obj; | 537 | 56 | } |
Unexecuted instantiation: _codecsmodule.c:_Py_XNewRef _collectionsmodule.c:_Py_XNewRef Line | Count | Source | 534 | 4 | { | 535 | 4 | Py_XINCREF(obj); | 536 | 4 | return obj; | 537 | 4 | } |
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 | 534 | 4 | { | 535 | 4 | Py_XINCREF(obj); | 536 | 4 | return obj; | 537 | 4 | } |
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 | 534 | 1.13k | { | 535 | 1.13k | Py_XINCREF(obj); | 536 | 1.13k | return obj; | 537 | 1.13k | } |
Unexecuted instantiation: _functoolsmodule.c:_Py_XNewRef Unexecuted instantiation: _localemodule.c:_Py_XNewRef Unexecuted instantiation: _opcode.c:_Py_XNewRef Unexecuted instantiation: _operator.c:_Py_XNewRef Unexecuted instantiation: _stat.c:_Py_XNewRef Unexecuted instantiation: symtablemodule.c:_Py_XNewRef Unexecuted instantiation: pwdmodule.c:_Py_XNewRef Line | Count | Source | 534 | 84 | { | 535 | 84 | Py_XINCREF(obj); | 536 | 84 | return obj; | 537 | 84 | } |
Unexecuted instantiation: frozen.c:_Py_XNewRef Unexecuted instantiation: getbuildinfo.c:_Py_XNewRef Unexecuted instantiation: peg_api.c:_Py_XNewRef Unexecuted instantiation: file_tokenizer.c:_Py_XNewRef Unexecuted instantiation: helpers.c:_Py_XNewRef Unexecuted instantiation: myreadline.c:_Py_XNewRef Line | Count | Source | 534 | 24.8M | { | 535 | 24.8M | Py_XINCREF(obj); | 536 | 24.8M | return obj; | 537 | 24.8M | } |
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 | 534 | 7.90M | { | 535 | 7.90M | Py_XINCREF(obj); | 536 | 7.90M | return obj; | 537 | 7.90M | } |
Unexecuted instantiation: classobject.c:_Py_XNewRef Line | Count | Source | 534 | 7.95k | { | 535 | 7.95k | Py_XINCREF(obj); | 536 | 7.95k | return obj; | 537 | 7.95k | } |
Unexecuted instantiation: complexobject.c:_Py_XNewRef descrobject.c:_Py_XNewRef Line | Count | Source | 534 | 79.6k | { | 535 | 79.6k | Py_XINCREF(obj); | 536 | 79.6k | return obj; | 537 | 79.6k | } |
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 | 534 | 5.70M | { | 535 | 5.70M | Py_XINCREF(obj); | 536 | 5.70M | return obj; | 537 | 5.70M | } |
Line | Count | Source | 534 | 21.3k | { | 535 | 21.3k | Py_XINCREF(obj); | 536 | 21.3k | return obj; | 537 | 21.3k | } |
Unexecuted instantiation: interpolationobject.c:_Py_XNewRef Unexecuted instantiation: iterobject.c:_Py_XNewRef Unexecuted instantiation: odictobject.c:_Py_XNewRef methodobject.c:_Py_XNewRef Line | Count | Source | 534 | 670M | { | 535 | 670M | Py_XINCREF(obj); | 536 | 670M | return obj; | 537 | 670M | } |
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 structmember.c:_Py_XNewRef Line | Count | Source | 534 | 2.01M | { | 535 | 2.01M | Py_XINCREF(obj); | 536 | 2.01M | return obj; | 537 | 2.01M | } |
Line | Count | Source | 534 | 18.7k | { | 535 | 18.7k | Py_XINCREF(obj); | 536 | 18.7k | return obj; | 537 | 18.7k | } |
Unexecuted instantiation: pegen_errors.c:_Py_XNewRef Unexecuted instantiation: parser.c:_Py_XNewRef Unexecuted instantiation: buffer.c:_Py_XNewRef Unexecuted instantiation: lexer.c:_Py_XNewRef Unexecuted instantiation: state.c:_Py_XNewRef Unexecuted instantiation: readline_tokenizer.c:_Py_XNewRef Unexecuted instantiation: string_tokenizer.c:_Py_XNewRef Unexecuted instantiation: utf8_tokenizer.c:_Py_XNewRef Unexecuted instantiation: getcompiler.c:_Py_XNewRef Unexecuted instantiation: mystrtoul.c:_Py_XNewRef Unexecuted instantiation: token.c:_Py_XNewRef Unexecuted instantiation: action_helpers.c:_Py_XNewRef Unexecuted instantiation: string_parser.c:_Py_XNewRef |
538 | | |
539 | | // Py_NewRef() and Py_XNewRef() are exported as functions for the stable ABI. |
540 | | // Names overridden with macros by static inline functions for best |
541 | | // performances. |
542 | | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000 |
543 | 10.8G | # define Py_NewRef(obj) _Py_NewRef(_PyObject_CAST(obj)) |
544 | 1.69G | # define Py_XNewRef(obj) _Py_XNewRef(_PyObject_CAST(obj)) |
545 | | #else |
546 | | # define Py_NewRef(obj) _Py_NewRef(obj) |
547 | | # define Py_XNewRef(obj) _Py_XNewRef(obj) |
548 | | #endif |
549 | | |
550 | | |
551 | | #ifdef __cplusplus |
552 | | } |
553 | | #endif |
554 | | #endif // !_Py_REFCOUNT_H |