/src/cpython/Include/refcount.h
Line | Count | Source |
1 | | #ifndef _Py_REFCOUNT_H |
2 | | #define _Py_REFCOUNT_H |
3 | | #ifdef __cplusplus |
4 | | extern "C" { |
5 | | #endif |
6 | | |
7 | | |
8 | | #if !defined(_Py_OPAQUE_PYOBJECT) |
9 | | /* |
10 | | Immortalization: |
11 | | |
12 | | The following indicates the immortalization strategy depending on the amount |
13 | | of available bits in the reference count field. All strategies are backwards |
14 | | compatible but the specific reference count value or immortalization check |
15 | | might change depending on the specializations for the underlying system. |
16 | | |
17 | | Proper deallocation of immortal instances requires distinguishing between |
18 | | statically allocated immortal instances vs those promoted by the runtime to be |
19 | | immortal. The latter should be the only instances that require |
20 | | cleanup during runtime finalization. |
21 | | */ |
22 | | |
23 | | #if SIZEOF_VOID_P > 4 |
24 | | /* |
25 | | In 64+ bit systems, any object whose 32 bit reference count is >= 2**31 |
26 | | will be treated as immortal. |
27 | | |
28 | | Using the lower 32 bits makes the value backwards compatible by allowing |
29 | | C-Extensions without the updated checks in Py_INCREF and Py_DECREF to safely |
30 | | increase and decrease the objects reference count. |
31 | | |
32 | | In order to offer sufficient resilience to C extensions using the stable ABI |
33 | | compiled against 3.11 or earlier, we set the initial value near the |
34 | | middle of the range (2**31, 2**32). That way the refcount can be |
35 | | off by ~1 billion without affecting immortality. |
36 | | |
37 | | Reference count increases will use saturated arithmetic, taking advantage of |
38 | | having all the lower 32 bits set, which will avoid the reference count to go |
39 | | beyond the refcount limit. Immortality checks for reference count decreases will |
40 | | be done by checking the bit sign flag in the lower 32 bits. |
41 | | |
42 | | To ensure that once an object becomes immortal, it remains immortal, the threshold |
43 | | for omitting increfs is much higher than for omitting decrefs. Consequently, once |
44 | | the refcount for an object exceeds _Py_IMMORTAL_MINIMUM_REFCNT it will gradually |
45 | | increase over time until it reaches _Py_IMMORTAL_INITIAL_REFCNT. |
46 | | */ |
47 | 18.1G | #define _Py_IMMORTAL_INITIAL_REFCNT (3ULL << 30) |
48 | 399 | #define _Py_IMMORTAL_MINIMUM_REFCNT (1ULL << 31) |
49 | 260M | #define _Py_STATIC_FLAG_BITS ((Py_ssize_t)(_Py_STATICALLY_ALLOCATED_FLAG | _Py_IMMORTAL_FLAGS)) |
50 | 260M | #define _Py_STATIC_IMMORTAL_INITIAL_REFCNT (((Py_ssize_t)_Py_IMMORTAL_INITIAL_REFCNT) | (_Py_STATIC_FLAG_BITS << 48)) |
51 | | |
52 | | #else |
53 | | /* |
54 | | In 32 bit systems, an object will be treated as immortal if its reference |
55 | | count equals or exceeds _Py_IMMORTAL_MINIMUM_REFCNT (2**30). |
56 | | |
57 | | Using the lower 30 bits makes the value backwards compatible by allowing |
58 | | C-Extensions without the updated checks in Py_INCREF and Py_DECREF to safely |
59 | | increase and decrease the objects reference count. The object would lose its |
60 | | immortality, but the execution would still be correct. |
61 | | |
62 | | Reference count increases and decreases will first go through an immortality |
63 | | check by comparing the reference count field to the minimum immortality refcount. |
64 | | */ |
65 | | #define _Py_IMMORTAL_INITIAL_REFCNT ((Py_ssize_t)(5L << 28)) |
66 | | #define _Py_IMMORTAL_MINIMUM_REFCNT ((Py_ssize_t)(1L << 30)) |
67 | | #define _Py_STATIC_IMMORTAL_INITIAL_REFCNT ((Py_ssize_t)(7L << 28)) |
68 | | #define _Py_STATIC_IMMORTAL_MINIMUM_REFCNT ((Py_ssize_t)(6L << 28)) |
69 | | #endif |
70 | | |
71 | | // Py_GIL_DISABLED builds indicate immortal objects using `ob_ref_local`, which is |
72 | | // always 32-bits. |
73 | | #ifdef Py_GIL_DISABLED |
74 | | #define _Py_IMMORTAL_REFCNT_LOCAL UINT32_MAX |
75 | | #endif |
76 | | |
77 | | |
78 | | #ifdef Py_GIL_DISABLED |
79 | | // The shared reference count uses the two least-significant bits to store |
80 | | // flags. The remaining bits are used to store the reference count. |
81 | | # define _Py_REF_SHARED_SHIFT 2 |
82 | | # define _Py_REF_SHARED_FLAG_MASK 0x3 |
83 | | |
84 | | // The shared flags are initialized to zero. |
85 | | # define _Py_REF_SHARED_INIT 0x0 |
86 | | # define _Py_REF_MAYBE_WEAKREF 0x1 |
87 | | # define _Py_REF_QUEUED 0x2 |
88 | | # define _Py_REF_MERGED 0x3 |
89 | | |
90 | | // Create a shared field from a refcnt and desired flags |
91 | | # define _Py_REF_SHARED(refcnt, flags) \ |
92 | | (((refcnt) << _Py_REF_SHARED_SHIFT) + (flags)) |
93 | | #endif // Py_GIL_DISABLED |
94 | | #endif // _Py_OPAQUE_PYOBJECT |
95 | | |
96 | | // Py_REFCNT() implementation for the stable ABI |
97 | | PyAPI_FUNC(Py_ssize_t) Py_REFCNT(PyObject *ob); |
98 | | |
99 | | #if defined(Py_LIMITED_API) && Py_LIMITED_API+0 >= 0x030e0000 |
100 | | // Stable ABI implements Py_REFCNT() as a function call |
101 | | // on limited C API version 3.14 and newer, and on abi3t. |
102 | | #elif defined(_Py_OPAQUE_PYOBJECT) |
103 | | // Py_REFCNT() is also a function call in abi3t. |
104 | | #else |
105 | 650M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { |
106 | 650M | #if !defined(Py_GIL_DISABLED) |
107 | 650M | return ob->ob_refcnt; |
108 | | #else |
109 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); |
110 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { |
111 | | return _Py_IMMORTAL_INITIAL_REFCNT; |
112 | | } |
113 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); |
114 | | return _Py_STATIC_CAST(Py_ssize_t, local) + |
115 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); |
116 | | #endif |
117 | 650M | } Line | Count | Source | 105 | 2.25M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 2.25M | #if !defined(Py_GIL_DISABLED) | 107 | 2.25M | return ob->ob_refcnt; | 108 | | #else | 109 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 110 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 111 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 112 | | } | 113 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 114 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 115 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 116 | | #endif | 117 | 2.25M | } |
Unexecuted instantiation: call.c:_Py_REFCNT Unexecuted instantiation: exceptions.c:_Py_REFCNT Unexecuted instantiation: genericaliasobject.c:_Py_REFCNT Unexecuted instantiation: floatobject.c:_Py_REFCNT Line | Count | Source | 105 | 399 | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 399 | #if !defined(Py_GIL_DISABLED) | 107 | 399 | return ob->ob_refcnt; | 108 | | #else | 109 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 110 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 111 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 112 | | } | 113 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 114 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 115 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 116 | | #endif | 117 | 399 | } |
Line | Count | Source | 105 | 28.0k | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 28.0k | #if !defined(Py_GIL_DISABLED) | 107 | 28.0k | return ob->ob_refcnt; | 108 | | #else | 109 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 110 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 111 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 112 | | } | 113 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 114 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 115 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 116 | | #endif | 117 | 28.0k | } |
Line | Count | Source | 105 | 240M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 240M | #if !defined(Py_GIL_DISABLED) | 107 | 240M | return ob->ob_refcnt; | 108 | | #else | 109 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 110 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 111 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 112 | | } | 113 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 114 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 115 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 116 | | #endif | 117 | 240M | } |
Unexecuted instantiation: memoryobject.c:_Py_REFCNT Unexecuted instantiation: moduleobject.c:_Py_REFCNT Line | Count | Source | 105 | 71.3M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 71.3M | #if !defined(Py_GIL_DISABLED) | 107 | 71.3M | return ob->ob_refcnt; | 108 | | #else | 109 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 110 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 111 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 112 | | } | 113 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 114 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 115 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 116 | | #endif | 117 | 71.3M | } |
Unexecuted instantiation: obmalloc.c:_Py_REFCNT Unexecuted instantiation: picklebufobject.c:_Py_REFCNT Unexecuted instantiation: rangeobject.c:_Py_REFCNT Line | Count | Source | 105 | 4.62k | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 4.62k | #if !defined(Py_GIL_DISABLED) | 107 | 4.62k | return ob->ob_refcnt; | 108 | | #else | 109 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 110 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 111 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 112 | | } | 113 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 114 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 115 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 116 | | #endif | 117 | 4.62k | } |
Unexecuted instantiation: sliceobject.c:_Py_REFCNT Unexecuted instantiation: structseq.c:_Py_REFCNT Unexecuted instantiation: templateobject.c:_Py_REFCNT Line | Count | Source | 105 | 142k | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 142k | #if !defined(Py_GIL_DISABLED) | 107 | 142k | return ob->ob_refcnt; | 108 | | #else | 109 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 110 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 111 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 112 | | } | 113 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 114 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 115 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 116 | | #endif | 117 | 142k | } |
Line | Count | Source | 105 | 514 | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 514 | #if !defined(Py_GIL_DISABLED) | 107 | 514 | return ob->ob_refcnt; | 108 | | #else | 109 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 110 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 111 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 112 | | } | 113 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 114 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 115 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 116 | | #endif | 117 | 514 | } |
Unexecuted instantiation: typevarobject.c:_Py_REFCNT unicode_format.c:_Py_REFCNT Line | Count | Source | 105 | 9.35M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 9.35M | #if !defined(Py_GIL_DISABLED) | 107 | 9.35M | return ob->ob_refcnt; | 108 | | #else | 109 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 110 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 111 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 112 | | } | 113 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 114 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 115 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 116 | | #endif | 117 | 9.35M | } |
Unexecuted instantiation: unicode_formatter.c:_Py_REFCNT Unexecuted instantiation: unicode_writer.c:_Py_REFCNT Unexecuted instantiation: unicodectype.c:_Py_REFCNT unicodeobject.c:_Py_REFCNT Line | Count | Source | 105 | 73.5M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 73.5M | #if !defined(Py_GIL_DISABLED) | 107 | 73.5M | return ob->ob_refcnt; | 108 | | #else | 109 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 110 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 111 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 112 | | } | 113 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 114 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 115 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 116 | | #endif | 117 | 73.5M | } |
Unexecuted instantiation: unionobject.c:_Py_REFCNT weakrefobject.c:_Py_REFCNT Line | Count | Source | 105 | 52.6M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 52.6M | #if !defined(Py_GIL_DISABLED) | 107 | 52.6M | return ob->ob_refcnt; | 108 | | #else | 109 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 110 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 111 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 112 | | } | 113 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 114 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 115 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 116 | | #endif | 117 | 52.6M | } |
Unexecuted instantiation: _warnings.c:_Py_REFCNT Line | Count | Source | 105 | 2.01M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 2.01M | #if !defined(Py_GIL_DISABLED) | 107 | 2.01M | return ob->ob_refcnt; | 108 | | #else | 109 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 110 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 111 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 112 | | } | 113 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 114 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 115 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 116 | | #endif | 117 | 2.01M | } |
Unexecuted instantiation: ceval.c:_Py_REFCNT Unexecuted instantiation: codecs.c:_Py_REFCNT Unexecuted instantiation: codegen.c:_Py_REFCNT Unexecuted instantiation: compile.c:_Py_REFCNT Unexecuted instantiation: context.c:_Py_REFCNT Unexecuted instantiation: errors.c:_Py_REFCNT Unexecuted instantiation: flowgraph.c:_Py_REFCNT Line | Count | Source | 105 | 60.2M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 60.2M | #if !defined(Py_GIL_DISABLED) | 107 | 60.2M | return ob->ob_refcnt; | 108 | | #else | 109 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 110 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 111 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 112 | | } | 113 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 114 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 115 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 116 | | #endif | 117 | 60.2M | } |
Unexecuted instantiation: future.c:_Py_REFCNT Line | Count | Source | 105 | 87.6M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 87.6M | #if !defined(Py_GIL_DISABLED) | 107 | 87.6M | return ob->ob_refcnt; | 108 | | #else | 109 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 110 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 111 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 112 | | } | 113 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 114 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 115 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 116 | | #endif | 117 | 87.6M | } |
Unexecuted instantiation: gc_gil.c:_Py_REFCNT Unexecuted instantiation: getargs.c:_Py_REFCNT Unexecuted instantiation: ceval_gil.c:_Py_REFCNT Unexecuted instantiation: hamt.c:_Py_REFCNT Unexecuted instantiation: hashtable.c:_Py_REFCNT Line | Count | Source | 105 | 36 | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 36 | #if !defined(Py_GIL_DISABLED) | 107 | 36 | return ob->ob_refcnt; | 108 | | #else | 109 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 110 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 111 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 112 | | } | 113 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 114 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 115 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 116 | | #endif | 117 | 36 | } |
Unexecuted instantiation: importdl.c:_Py_REFCNT Unexecuted instantiation: initconfig.c:_Py_REFCNT Unexecuted instantiation: instrumentation.c:_Py_REFCNT Unexecuted instantiation: instruction_sequence.c:_Py_REFCNT Unexecuted instantiation: intrinsics.c:_Py_REFCNT Unexecuted instantiation: legacy_tracing.c:_Py_REFCNT Unexecuted instantiation: lock.c:_Py_REFCNT Line | Count | Source | 105 | 76.4k | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 76.4k | #if !defined(Py_GIL_DISABLED) | 107 | 76.4k | return ob->ob_refcnt; | 108 | | #else | 109 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 110 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 111 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 112 | | } | 113 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 114 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 115 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 116 | | #endif | 117 | 76.4k | } |
Unexecuted instantiation: modsupport.c:_Py_REFCNT Unexecuted instantiation: mysnprintf.c:_Py_REFCNT Unexecuted instantiation: parking_lot.c:_Py_REFCNT Unexecuted instantiation: preconfig.c:_Py_REFCNT Unexecuted instantiation: pyarena.c:_Py_REFCNT Unexecuted instantiation: pyctype.c:_Py_REFCNT Unexecuted instantiation: pyhash.c:_Py_REFCNT Unexecuted instantiation: pylifecycle.c:_Py_REFCNT Unexecuted instantiation: pymath.c:_Py_REFCNT Unexecuted instantiation: pystate.c:_Py_REFCNT Unexecuted instantiation: pythonrun.c:_Py_REFCNT Unexecuted instantiation: pytime.c:_Py_REFCNT Unexecuted instantiation: qsbr.c:_Py_REFCNT Unexecuted instantiation: bootstrap_hash.c:_Py_REFCNT Unexecuted instantiation: specialize.c:_Py_REFCNT Unexecuted instantiation: structmember.c:_Py_REFCNT Unexecuted instantiation: symtable.c:_Py_REFCNT Line | Count | Source | 105 | 4 | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 4 | #if !defined(Py_GIL_DISABLED) | 107 | 4 | return ob->ob_refcnt; | 108 | | #else | 109 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 110 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 111 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 112 | | } | 113 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 114 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 115 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 116 | | #endif | 117 | 4 | } |
Unexecuted instantiation: thread.c:_Py_REFCNT Unexecuted instantiation: traceback.c:_Py_REFCNT Unexecuted instantiation: tracemalloc.c:_Py_REFCNT Unexecuted instantiation: getopt.c:_Py_REFCNT Unexecuted instantiation: pystrcmp.c:_Py_REFCNT Unexecuted instantiation: pystrtod.c:_Py_REFCNT Unexecuted instantiation: pystrhex.c:_Py_REFCNT Unexecuted instantiation: dtoa.c:_Py_REFCNT Unexecuted instantiation: fileutils.c:_Py_REFCNT Unexecuted instantiation: suggestions.c:_Py_REFCNT Unexecuted instantiation: perf_trampoline.c:_Py_REFCNT Unexecuted instantiation: perf_jit_trampoline.c:_Py_REFCNT Unexecuted instantiation: remote_debugging.c:_Py_REFCNT Unexecuted instantiation: dynload_shlib.c:_Py_REFCNT Unexecuted instantiation: config.c:_Py_REFCNT Unexecuted instantiation: gcmodule.c:_Py_REFCNT Unexecuted instantiation: _asynciomodule.c:_Py_REFCNT Unexecuted instantiation: atexitmodule.c:_Py_REFCNT Unexecuted instantiation: faulthandler.c:_Py_REFCNT Unexecuted instantiation: posixmodule.c:_Py_REFCNT Unexecuted instantiation: signalmodule.c:_Py_REFCNT Unexecuted instantiation: _tracemalloc.c:_Py_REFCNT Unexecuted instantiation: _suggestions.c:_Py_REFCNT Unexecuted instantiation: _datetimemodule.c:_Py_REFCNT Unexecuted instantiation: _codecsmodule.c:_Py_REFCNT Unexecuted instantiation: _collectionsmodule.c:_Py_REFCNT Unexecuted instantiation: errnomodule.c:_Py_REFCNT Unexecuted instantiation: _iomodule.c:_Py_REFCNT Line | Count | Source | 105 | 122k | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 122k | #if !defined(Py_GIL_DISABLED) | 107 | 122k | return ob->ob_refcnt; | 108 | | #else | 109 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 110 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 111 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 112 | | } | 113 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 114 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 115 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 116 | | #endif | 117 | 122k | } |
Unexecuted instantiation: fileio.c:_Py_REFCNT Line | Count | Source | 105 | 65.0k | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 65.0k | #if !defined(Py_GIL_DISABLED) | 107 | 65.0k | return ob->ob_refcnt; | 108 | | #else | 109 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 110 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 111 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 112 | | } | 113 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 114 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 115 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 116 | | #endif | 117 | 65.0k | } |
Unexecuted instantiation: bufferedio.c:_Py_REFCNT Unexecuted instantiation: textio.c:_Py_REFCNT Unexecuted instantiation: stringio.c:_Py_REFCNT itertoolsmodule.c:_Py_REFCNT Line | Count | Source | 105 | 830 | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 830 | #if !defined(Py_GIL_DISABLED) | 107 | 830 | return ob->ob_refcnt; | 108 | | #else | 109 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 110 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 111 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 112 | | } | 113 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 114 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 115 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 116 | | #endif | 117 | 830 | } |
Unexecuted instantiation: sre.c:_Py_REFCNT Unexecuted instantiation: _sysconfig.c:_Py_REFCNT Unexecuted instantiation: _threadmodule.c:_Py_REFCNT Unexecuted instantiation: timemodule.c:_Py_REFCNT Unexecuted instantiation: _typesmodule.c:_Py_REFCNT Unexecuted instantiation: _typingmodule.c:_Py_REFCNT Unexecuted instantiation: _weakref.c:_Py_REFCNT Unexecuted instantiation: _abc.c:_Py_REFCNT _functoolsmodule.c:_Py_REFCNT Line | Count | Source | 105 | 242k | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 242k | #if !defined(Py_GIL_DISABLED) | 107 | 242k | return ob->ob_refcnt; | 108 | | #else | 109 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 110 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 111 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 112 | | } | 113 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 114 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 115 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 116 | | #endif | 117 | 242k | } |
Unexecuted instantiation: _localemodule.c:_Py_REFCNT Unexecuted instantiation: _opcode.c:_Py_REFCNT Unexecuted instantiation: _operator.c:_Py_REFCNT Unexecuted instantiation: _stat.c:_Py_REFCNT Unexecuted instantiation: symtablemodule.c:_Py_REFCNT Unexecuted instantiation: pwdmodule.c:_Py_REFCNT Unexecuted instantiation: getpath.c:_Py_REFCNT Unexecuted instantiation: frozen.c:_Py_REFCNT Unexecuted instantiation: getbuildinfo.c:_Py_REFCNT Unexecuted instantiation: peg_api.c:_Py_REFCNT Unexecuted instantiation: file_tokenizer.c:_Py_REFCNT Unexecuted instantiation: helpers.c:_Py_REFCNT Unexecuted instantiation: myreadline.c:_Py_REFCNT Unexecuted instantiation: abstract.c:_Py_REFCNT Unexecuted instantiation: boolobject.c:_Py_REFCNT Unexecuted instantiation: bytes_methods.c:_Py_REFCNT Unexecuted instantiation: bytearrayobject.c:_Py_REFCNT Unexecuted instantiation: capsule.c:_Py_REFCNT Unexecuted instantiation: cellobject.c:_Py_REFCNT Unexecuted instantiation: classobject.c:_Py_REFCNT Line | Count | Source | 105 | 191k | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 191k | #if !defined(Py_GIL_DISABLED) | 107 | 191k | return ob->ob_refcnt; | 108 | | #else | 109 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 110 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 111 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 112 | | } | 113 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 114 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 115 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 116 | | #endif | 117 | 191k | } |
Unexecuted instantiation: complexobject.c:_Py_REFCNT Unexecuted instantiation: descrobject.c:_Py_REFCNT Line | Count | Source | 105 | 13.2M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 13.2M | #if !defined(Py_GIL_DISABLED) | 107 | 13.2M | return ob->ob_refcnt; | 108 | | #else | 109 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 110 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 111 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 112 | | } | 113 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 114 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 115 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 116 | | #endif | 117 | 13.2M | } |
Unexecuted instantiation: genobject.c:_Py_REFCNT Unexecuted instantiation: fileobject.c:_Py_REFCNT Unexecuted instantiation: frameobject.c:_Py_REFCNT Line | Count | Source | 105 | 37.1M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 37.1M | #if !defined(Py_GIL_DISABLED) | 107 | 37.1M | return ob->ob_refcnt; | 108 | | #else | 109 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 110 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 111 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 112 | | } | 113 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 114 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 115 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 116 | | #endif | 117 | 37.1M | } |
Unexecuted instantiation: interpolationobject.c:_Py_REFCNT Unexecuted instantiation: iterobject.c:_Py_REFCNT Unexecuted instantiation: lazyimportobject.c:_Py_REFCNT Line | Count | Source | 105 | 24 | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 106 | 24 | #if !defined(Py_GIL_DISABLED) | 107 | 24 | return ob->ob_refcnt; | 108 | | #else | 109 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 110 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 111 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 112 | | } | 113 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 114 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 115 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 116 | | #endif | 117 | 24 | } |
Unexecuted instantiation: methodobject.c:_Py_REFCNT Unexecuted instantiation: namespaceobject.c:_Py_REFCNT Unexecuted instantiation: _contextvars.c:_Py_REFCNT Unexecuted instantiation: Python-ast.c:_Py_REFCNT Unexecuted instantiation: Python-tokenize.c:_Py_REFCNT Unexecuted instantiation: asdl.c:_Py_REFCNT Unexecuted instantiation: assemble.c:_Py_REFCNT Unexecuted instantiation: ast.c:_Py_REFCNT Unexecuted instantiation: ast_preprocess.c:_Py_REFCNT Unexecuted instantiation: ast_unparse.c:_Py_REFCNT Unexecuted instantiation: critical_section.c:_Py_REFCNT Unexecuted instantiation: crossinterp.c:_Py_REFCNT Unexecuted instantiation: getcopyright.c:_Py_REFCNT Unexecuted instantiation: getplatform.c:_Py_REFCNT Unexecuted instantiation: getversion.c:_Py_REFCNT Unexecuted instantiation: optimizer.c:_Py_REFCNT Unexecuted instantiation: pathconfig.c:_Py_REFCNT Unexecuted instantiation: pegen.c:_Py_REFCNT Unexecuted instantiation: pegen_errors.c:_Py_REFCNT Unexecuted instantiation: parser.c:_Py_REFCNT Unexecuted instantiation: buffer.c:_Py_REFCNT Unexecuted instantiation: lexer.c:_Py_REFCNT Unexecuted instantiation: 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 |
118 | | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000 |
119 | 489M | # define Py_REFCNT(ob) _Py_REFCNT(_PyObject_CAST(ob)) |
120 | | #else |
121 | | # define Py_REFCNT(ob) _Py_REFCNT(ob) |
122 | | #endif |
123 | | #endif |
124 | | |
125 | | #ifndef _Py_OPAQUE_PYOBJECT |
126 | | static inline Py_ALWAYS_INLINE int _Py_IsImmortal(PyObject *op) |
127 | 29.6G | { |
128 | | #if defined(Py_GIL_DISABLED) |
129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == |
130 | | _Py_IMMORTAL_REFCNT_LOCAL); |
131 | | #elif SIZEOF_VOID_P > 4 |
132 | 29.6G | return _Py_CAST(int32_t, op->ob_refcnt) < 0; |
133 | | #else |
134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; |
135 | | #endif |
136 | 29.6G | } bytesobject.c:_Py_IsImmortal Line | Count | Source | 127 | 19.7M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 19.7M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 19.7M | } |
Line | Count | Source | 127 | 218M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 218M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 218M | } |
exceptions.c:_Py_IsImmortal Line | Count | Source | 127 | 209M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 209M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 209M | } |
genericaliasobject.c:_Py_IsImmortal Line | Count | Source | 127 | 548 | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 548 | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 548 | } |
floatobject.c:_Py_IsImmortal Line | Count | Source | 127 | 504k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 504k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 504k | } |
listobject.c:_Py_IsImmortal Line | Count | Source | 127 | 1.61G | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 1.61G | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 1.61G | } |
longobject.c:_Py_IsImmortal Line | Count | Source | 127 | 74.7M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 74.7M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 74.7M | } |
dictobject.c:_Py_IsImmortal Line | Count | Source | 127 | 951M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 951M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 951M | } |
memoryobject.c:_Py_IsImmortal Line | Count | Source | 127 | 2.91M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 2.91M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 2.91M | } |
moduleobject.c:_Py_IsImmortal Line | Count | Source | 127 | 4.55M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 4.55M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 4.55M | } |
Line | Count | Source | 127 | 848M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 848M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 848M | } |
Unexecuted instantiation: obmalloc.c:_Py_IsImmortal Unexecuted instantiation: picklebufobject.c:_Py_IsImmortal rangeobject.c:_Py_IsImmortal Line | Count | Source | 127 | 48.8M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 48.8M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 48.8M | } |
setobject.c:_Py_IsImmortal Line | Count | Source | 127 | 14.6M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 14.6M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 14.6M | } |
sliceobject.c:_Py_IsImmortal Line | Count | Source | 127 | 176M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 176M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 176M | } |
structseq.c:_Py_IsImmortal Line | Count | Source | 127 | 9.97M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 9.97M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 9.97M | } |
templateobject.c:_Py_IsImmortal Line | Count | Source | 127 | 16 | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 16 | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 16 | } |
tupleobject.c:_Py_IsImmortal Line | Count | Source | 127 | 9.50G | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 9.50G | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 9.50G | } |
typeobject.c:_Py_IsImmortal Line | Count | Source | 127 | 1.15G | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 1.15G | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 1.15G | } |
typevarobject.c:_Py_IsImmortal Line | Count | Source | 127 | 267k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 267k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 267k | } |
unicode_format.c:_Py_IsImmortal Line | Count | Source | 127 | 47.2M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 47.2M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 47.2M | } |
unicode_formatter.c:_Py_IsImmortal Line | Count | Source | 127 | 768 | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 768 | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 768 | } |
unicode_writer.c:_Py_IsImmortal Line | Count | Source | 127 | 30.1M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 30.1M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 30.1M | } |
Unexecuted instantiation: unicodectype.c:_Py_IsImmortal unicodeobject.c:_Py_IsImmortal Line | Count | Source | 127 | 174M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 174M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 174M | } |
unionobject.c:_Py_IsImmortal Line | Count | Source | 127 | 4.44k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 4.44k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 4.44k | } |
weakrefobject.c:_Py_IsImmortal Line | Count | Source | 127 | 2.69M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 2.69M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 2.69M | } |
_warnings.c:_Py_IsImmortal Line | Count | Source | 127 | 54.9M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 54.9M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 54.9M | } |
bltinmodule.c:_Py_IsImmortal Line | Count | Source | 127 | 2.19G | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 2.19G | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 2.19G | } |
Line | Count | Source | 127 | 9.25G | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 9.25G | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 9.25G | } |
Line | Count | Source | 127 | 10.4M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 10.4M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 10.4M | } |
Line | Count | Source | 127 | 93.1k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 93.1k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 93.1k | } |
Line | Count | Source | 127 | 427k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 427k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 427k | } |
Line | Count | Source | 127 | 72 | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 72 | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 72 | } |
Line | Count | Source | 127 | 94.9M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 94.9M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 94.9M | } |
flowgraph.c:_Py_IsImmortal Line | Count | Source | 127 | 45.7k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 45.7k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 45.7k | } |
Line | Count | Source | 127 | 133M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 133M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 133M | } |
Unexecuted instantiation: future.c:_Py_IsImmortal Line | Count | Source | 127 | 708M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 708M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 708M | } |
Unexecuted instantiation: gc_gil.c:_Py_IsImmortal Line | Count | Source | 127 | 9.29M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 9.29M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 9.29M | } |
Unexecuted instantiation: ceval_gil.c:_Py_IsImmortal Unexecuted instantiation: hamt.c:_Py_IsImmortal Unexecuted instantiation: hashtable.c:_Py_IsImmortal Line | Count | Source | 127 | 28.7M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 28.7M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 28.7M | } |
importdl.c:_Py_IsImmortal Line | Count | Source | 127 | 3.17k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 3.17k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 3.17k | } |
initconfig.c:_Py_IsImmortal Line | Count | Source | 127 | 5.11k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 5.11k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 5.11k | } |
instrumentation.c:_Py_IsImmortal Line | Count | Source | 127 | 864 | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 864 | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 864 | } |
Unexecuted instantiation: instruction_sequence.c:_Py_IsImmortal intrinsics.c:_Py_IsImmortal Line | Count | Source | 127 | 73.4k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 73.4k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 73.4k | } |
Unexecuted instantiation: legacy_tracing.c:_Py_IsImmortal Unexecuted instantiation: lock.c:_Py_IsImmortal Line | Count | Source | 127 | 1.75M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 1.75M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 1.75M | } |
modsupport.c:_Py_IsImmortal Line | Count | Source | 127 | 102k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 102k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 102k | } |
Unexecuted instantiation: mysnprintf.c:_Py_IsImmortal Unexecuted instantiation: parking_lot.c:_Py_IsImmortal Unexecuted instantiation: preconfig.c:_Py_IsImmortal Line | Count | Source | 127 | 14.2M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 14.2M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 14.2M | } |
Unexecuted instantiation: pyctype.c:_Py_IsImmortal Unexecuted instantiation: pyhash.c:_Py_IsImmortal pylifecycle.c:_Py_IsImmortal Line | Count | Source | 127 | 1.29k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 1.29k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 1.29k | } |
Unexecuted instantiation: pymath.c:_Py_IsImmortal Unexecuted instantiation: pystate.c:_Py_IsImmortal pythonrun.c:_Py_IsImmortal Line | Count | Source | 127 | 2.11k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 2.11k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 2.11k | } |
Unexecuted instantiation: pytime.c:_Py_IsImmortal Unexecuted instantiation: qsbr.c:_Py_IsImmortal Unexecuted instantiation: bootstrap_hash.c:_Py_IsImmortal specialize.c:_Py_IsImmortal Line | Count | Source | 127 | 2.19M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 2.19M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 2.19M | } |
structmember.c:_Py_IsImmortal Line | Count | Source | 127 | 18.1k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 18.1k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 18.1k | } |
symtable.c:_Py_IsImmortal Line | Count | Source | 127 | 539k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 539k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 539k | } |
sysmodule.c:_Py_IsImmortal Line | Count | Source | 127 | 4.86M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 4.86M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 4.86M | } |
Unexecuted instantiation: thread.c:_Py_IsImmortal traceback.c:_Py_IsImmortal Line | Count | Source | 127 | 188M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 188M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 188M | } |
Unexecuted instantiation: tracemalloc.c:_Py_IsImmortal Unexecuted instantiation: getopt.c:_Py_IsImmortal Unexecuted instantiation: pystrcmp.c:_Py_IsImmortal Unexecuted instantiation: pystrtod.c:_Py_IsImmortal Unexecuted instantiation: pystrhex.c:_Py_IsImmortal Unexecuted instantiation: dtoa.c:_Py_IsImmortal fileutils.c:_Py_IsImmortal Line | Count | Source | 127 | 90.6k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 90.6k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 90.6k | } |
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 dynload_shlib.c:_Py_IsImmortal Line | Count | Source | 127 | 12 | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 12 | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 12 | } |
Unexecuted instantiation: config.c:_Py_IsImmortal Unexecuted instantiation: gcmodule.c:_Py_IsImmortal _asynciomodule.c:_Py_IsImmortal Line | Count | Source | 127 | 32 | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 32 | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 32 | } |
atexitmodule.c:_Py_IsImmortal Line | Count | Source | 127 | 12 | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 12 | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 12 | } |
Unexecuted instantiation: faulthandler.c:_Py_IsImmortal posixmodule.c:_Py_IsImmortal Line | Count | Source | 127 | 5.33M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 5.33M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 5.33M | } |
signalmodule.c:_Py_IsImmortal Line | Count | Source | 127 | 72 | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 72 | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 72 | } |
Unexecuted instantiation: _tracemalloc.c:_Py_IsImmortal Unexecuted instantiation: _suggestions.c:_Py_IsImmortal _datetimemodule.c:_Py_IsImmortal Line | Count | Source | 127 | 132k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 132k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 132k | } |
Unexecuted instantiation: _codecsmodule.c:_Py_IsImmortal _collectionsmodule.c:_Py_IsImmortal Line | Count | Source | 127 | 191k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 191k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 191k | } |
Unexecuted instantiation: errnomodule.c:_Py_IsImmortal _iomodule.c:_Py_IsImmortal Line | Count | Source | 127 | 2.61M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 2.61M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 2.61M | } |
Line | Count | Source | 127 | 2.82M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 2.82M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 2.82M | } |
Line | Count | Source | 127 | 95.1k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 95.1k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 95.1k | } |
Line | Count | Source | 127 | 365k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 365k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 365k | } |
bufferedio.c:_Py_IsImmortal Line | Count | Source | 127 | 10.2M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 10.2M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 10.2M | } |
Line | Count | Source | 127 | 1.05M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 1.05M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 1.05M | } |
stringio.c:_Py_IsImmortal Line | Count | Source | 127 | 308k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 308k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 308k | } |
itertoolsmodule.c:_Py_IsImmortal Line | Count | Source | 127 | 97.2k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 97.2k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 97.2k | } |
Line | Count | Source | 127 | 423M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 423M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 423M | } |
Unexecuted instantiation: _sysconfig.c:_Py_IsImmortal _threadmodule.c:_Py_IsImmortal Line | Count | Source | 127 | 13.9M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 13.9M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 13.9M | } |
timemodule.c:_Py_IsImmortal Line | Count | Source | 127 | 192 | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 192 | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 192 | } |
Unexecuted instantiation: _typesmodule.c:_Py_IsImmortal Unexecuted instantiation: _typingmodule.c:_Py_IsImmortal Unexecuted instantiation: _weakref.c:_Py_IsImmortal Line | Count | Source | 127 | 472k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 472k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 472k | } |
_functoolsmodule.c:_Py_IsImmortal Line | Count | Source | 127 | 1.10M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 1.10M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 1.10M | } |
Unexecuted instantiation: _localemodule.c:_Py_IsImmortal Unexecuted instantiation: _opcode.c:_Py_IsImmortal _operator.c:_Py_IsImmortal Line | Count | Source | 127 | 571k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 571k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 571k | } |
Unexecuted instantiation: _stat.c:_Py_IsImmortal Unexecuted instantiation: symtablemodule.c:_Py_IsImmortal Unexecuted instantiation: pwdmodule.c:_Py_IsImmortal Line | Count | Source | 127 | 1.18k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 1.18k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 1.18k | } |
Unexecuted instantiation: frozen.c:_Py_IsImmortal Unexecuted instantiation: getbuildinfo.c:_Py_IsImmortal Unexecuted instantiation: peg_api.c:_Py_IsImmortal Unexecuted instantiation: file_tokenizer.c:_Py_IsImmortal Line | Count | Source | 127 | 21.0k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 21.0k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 21.0k | } |
Unexecuted instantiation: myreadline.c:_Py_IsImmortal abstract.c:_Py_IsImmortal Line | Count | Source | 127 | 545M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 545M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 545M | } |
Unexecuted instantiation: boolobject.c:_Py_IsImmortal Unexecuted instantiation: bytes_methods.c:_Py_IsImmortal bytearrayobject.c:_Py_IsImmortal Line | Count | Source | 127 | 18.6M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 18.6M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 18.6M | } |
Line | Count | Source | 127 | 26 | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 26 | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 26 | } |
cellobject.c:_Py_IsImmortal Line | Count | Source | 127 | 10.0M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 10.0M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 10.0M | } |
classobject.c:_Py_IsImmortal Line | Count | Source | 127 | 93.7M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 93.7M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 93.7M | } |
codeobject.c:_Py_IsImmortal Line | Count | Source | 127 | 1.12M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 1.12M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 1.12M | } |
Unexecuted instantiation: complexobject.c:_Py_IsImmortal descrobject.c:_Py_IsImmortal Line | Count | Source | 127 | 72.7M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 72.7M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 72.7M | } |
enumobject.c:_Py_IsImmortal Line | Count | Source | 127 | 84.7M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 84.7M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 84.7M | } |
genobject.c:_Py_IsImmortal Line | Count | Source | 127 | 111M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 111M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 111M | } |
fileobject.c:_Py_IsImmortal Line | Count | Source | 127 | 371k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 371k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 371k | } |
frameobject.c:_Py_IsImmortal Line | Count | Source | 127 | 43.5M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 43.5M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 43.5M | } |
funcobject.c:_Py_IsImmortal Line | Count | Source | 127 | 211M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 211M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 211M | } |
interpolationobject.c:_Py_IsImmortal Line | Count | Source | 127 | 36 | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 36 | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 36 | } |
iterobject.c:_Py_IsImmortal Line | Count | Source | 127 | 3.24M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 3.24M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 3.24M | } |
lazyimportobject.c:_Py_IsImmortal Line | Count | Source | 127 | 290 | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 290 | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 290 | } |
odictobject.c:_Py_IsImmortal Line | Count | Source | 127 | 381k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 381k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 381k | } |
methodobject.c:_Py_IsImmortal Line | Count | Source | 127 | 134M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 134M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 134M | } |
namespaceobject.c:_Py_IsImmortal Line | Count | Source | 127 | 52 | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 52 | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 52 | } |
Unexecuted instantiation: _contextvars.c:_Py_IsImmortal Python-ast.c:_Py_IsImmortal Line | Count | Source | 127 | 3.95M | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 3.95M | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 3.95M | } |
Python-tokenize.c:_Py_IsImmortal Line | Count | Source | 127 | 504 | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 504 | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 504 | } |
Unexecuted instantiation: asdl.c:_Py_IsImmortal assemble.c:_Py_IsImmortal Line | Count | Source | 127 | 39.8k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 39.8k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 39.8k | } |
Unexecuted instantiation: ast.c:_Py_IsImmortal Unexecuted instantiation: ast_preprocess.c:_Py_IsImmortal Unexecuted instantiation: ast_unparse.c:_Py_IsImmortal Unexecuted instantiation: critical_section.c:_Py_IsImmortal Unexecuted instantiation: crossinterp.c:_Py_IsImmortal Unexecuted instantiation: getcopyright.c:_Py_IsImmortal Unexecuted instantiation: getplatform.c:_Py_IsImmortal Unexecuted instantiation: getversion.c:_Py_IsImmortal Unexecuted instantiation: optimizer.c:_Py_IsImmortal Unexecuted instantiation: pathconfig.c:_Py_IsImmortal Line | Count | Source | 127 | 283k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 283k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 283k | } |
pegen_errors.c:_Py_IsImmortal Line | Count | Source | 127 | 282k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 282k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 282k | } |
Unexecuted instantiation: parser.c:_Py_IsImmortal Unexecuted instantiation: buffer.c:_Py_IsImmortal Line | Count | Source | 127 | 12.2k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 12.2k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 12.2k | } |
Line | Count | Source | 127 | 100k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 100k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 100k | } |
readline_tokenizer.c:_Py_IsImmortal Line | Count | Source | 127 | 348 | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 348 | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 348 | } |
string_tokenizer.c:_Py_IsImmortal Line | Count | Source | 127 | 2.00k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 2.00k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 2.00k | } |
Unexecuted instantiation: utf8_tokenizer.c:_Py_IsImmortal Unexecuted instantiation: getcompiler.c:_Py_IsImmortal Unexecuted instantiation: mystrtoul.c:_Py_IsImmortal Unexecuted instantiation: token.c:_Py_IsImmortal Unexecuted instantiation: action_helpers.c:_Py_IsImmortal string_parser.c:_Py_IsImmortal Line | Count | Source | 127 | 40.7k | { | 128 | | #if defined(Py_GIL_DISABLED) | 129 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 130 | | _Py_IMMORTAL_REFCNT_LOCAL); | 131 | | #elif SIZEOF_VOID_P > 4 | 132 | 40.7k | return _Py_CAST(int32_t, op->ob_refcnt) < 0; | 133 | | #else | 134 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 135 | | #endif | 136 | 40.7k | } |
|
137 | 31.9G | #define _Py_IsImmortal(op) _Py_IsImmortal(_PyObject_CAST(op)) |
138 | | |
139 | | |
140 | | static inline Py_ALWAYS_INLINE int _Py_IsStaticImmortal(PyObject *op) |
141 | 0 | { |
142 | 0 | #if defined(Py_GIL_DISABLED) || SIZEOF_VOID_P > 4 |
143 | 0 | return (op->ob_flags & _Py_STATICALLY_ALLOCATED_FLAG) != 0; |
144 | 0 | #else |
145 | 0 | return op->ob_refcnt >= _Py_STATIC_IMMORTAL_MINIMUM_REFCNT; |
146 | 0 | #endif |
147 | 0 | } Unexecuted instantiation: bytesobject.c:_Py_IsStaticImmortal Unexecuted instantiation: call.c:_Py_IsStaticImmortal Unexecuted instantiation: exceptions.c:_Py_IsStaticImmortal Unexecuted instantiation: genericaliasobject.c:_Py_IsStaticImmortal Unexecuted instantiation: floatobject.c:_Py_IsStaticImmortal Unexecuted instantiation: listobject.c:_Py_IsStaticImmortal Unexecuted instantiation: longobject.c:_Py_IsStaticImmortal Unexecuted instantiation: dictobject.c:_Py_IsStaticImmortal Unexecuted instantiation: memoryobject.c:_Py_IsStaticImmortal Unexecuted instantiation: moduleobject.c:_Py_IsStaticImmortal Unexecuted instantiation: object.c:_Py_IsStaticImmortal Unexecuted instantiation: obmalloc.c:_Py_IsStaticImmortal Unexecuted instantiation: picklebufobject.c:_Py_IsStaticImmortal Unexecuted instantiation: rangeobject.c:_Py_IsStaticImmortal Unexecuted instantiation: 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: structmember.c:_Py_IsStaticImmortal Unexecuted instantiation: symtable.c:_Py_IsStaticImmortal Unexecuted instantiation: sysmodule.c:_Py_IsStaticImmortal Unexecuted instantiation: thread.c:_Py_IsStaticImmortal Unexecuted instantiation: traceback.c:_Py_IsStaticImmortal Unexecuted instantiation: tracemalloc.c:_Py_IsStaticImmortal Unexecuted instantiation: getopt.c:_Py_IsStaticImmortal Unexecuted instantiation: pystrcmp.c:_Py_IsStaticImmortal Unexecuted instantiation: pystrtod.c:_Py_IsStaticImmortal Unexecuted instantiation: pystrhex.c:_Py_IsStaticImmortal Unexecuted instantiation: dtoa.c:_Py_IsStaticImmortal Unexecuted instantiation: fileutils.c:_Py_IsStaticImmortal Unexecuted instantiation: suggestions.c:_Py_IsStaticImmortal Unexecuted instantiation: perf_trampoline.c:_Py_IsStaticImmortal Unexecuted instantiation: perf_jit_trampoline.c:_Py_IsStaticImmortal Unexecuted instantiation: remote_debugging.c:_Py_IsStaticImmortal Unexecuted instantiation: dynload_shlib.c:_Py_IsStaticImmortal Unexecuted instantiation: config.c:_Py_IsStaticImmortal Unexecuted instantiation: gcmodule.c:_Py_IsStaticImmortal Unexecuted instantiation: _asynciomodule.c:_Py_IsStaticImmortal Unexecuted instantiation: atexitmodule.c:_Py_IsStaticImmortal Unexecuted instantiation: faulthandler.c:_Py_IsStaticImmortal Unexecuted instantiation: posixmodule.c:_Py_IsStaticImmortal Unexecuted instantiation: signalmodule.c:_Py_IsStaticImmortal Unexecuted instantiation: _tracemalloc.c:_Py_IsStaticImmortal Unexecuted instantiation: _suggestions.c:_Py_IsStaticImmortal Unexecuted instantiation: _datetimemodule.c:_Py_IsStaticImmortal Unexecuted instantiation: _codecsmodule.c:_Py_IsStaticImmortal Unexecuted instantiation: _collectionsmodule.c:_Py_IsStaticImmortal Unexecuted instantiation: errnomodule.c:_Py_IsStaticImmortal Unexecuted instantiation: _iomodule.c:_Py_IsStaticImmortal Unexecuted instantiation: iobase.c:_Py_IsStaticImmortal Unexecuted instantiation: fileio.c:_Py_IsStaticImmortal Unexecuted instantiation: bytesio.c:_Py_IsStaticImmortal Unexecuted instantiation: bufferedio.c:_Py_IsStaticImmortal Unexecuted instantiation: textio.c:_Py_IsStaticImmortal Unexecuted instantiation: stringio.c:_Py_IsStaticImmortal Unexecuted instantiation: itertoolsmodule.c:_Py_IsStaticImmortal Unexecuted instantiation: sre.c:_Py_IsStaticImmortal Unexecuted instantiation: _sysconfig.c:_Py_IsStaticImmortal Unexecuted instantiation: _threadmodule.c:_Py_IsStaticImmortal Unexecuted instantiation: timemodule.c:_Py_IsStaticImmortal Unexecuted instantiation: _typesmodule.c:_Py_IsStaticImmortal Unexecuted instantiation: _typingmodule.c:_Py_IsStaticImmortal Unexecuted instantiation: _weakref.c:_Py_IsStaticImmortal Unexecuted instantiation: _abc.c:_Py_IsStaticImmortal Unexecuted instantiation: _functoolsmodule.c:_Py_IsStaticImmortal Unexecuted instantiation: _localemodule.c:_Py_IsStaticImmortal Unexecuted instantiation: _opcode.c:_Py_IsStaticImmortal Unexecuted instantiation: _operator.c:_Py_IsStaticImmortal Unexecuted instantiation: _stat.c:_Py_IsStaticImmortal Unexecuted instantiation: symtablemodule.c:_Py_IsStaticImmortal Unexecuted instantiation: pwdmodule.c:_Py_IsStaticImmortal Unexecuted instantiation: getpath.c:_Py_IsStaticImmortal Unexecuted instantiation: frozen.c:_Py_IsStaticImmortal Unexecuted instantiation: getbuildinfo.c:_Py_IsStaticImmortal Unexecuted instantiation: peg_api.c:_Py_IsStaticImmortal Unexecuted instantiation: file_tokenizer.c:_Py_IsStaticImmortal Unexecuted instantiation: helpers.c:_Py_IsStaticImmortal Unexecuted instantiation: myreadline.c:_Py_IsStaticImmortal Unexecuted instantiation: abstract.c:_Py_IsStaticImmortal Unexecuted instantiation: boolobject.c:_Py_IsStaticImmortal Unexecuted instantiation: bytes_methods.c:_Py_IsStaticImmortal Unexecuted instantiation: bytearrayobject.c:_Py_IsStaticImmortal Unexecuted instantiation: capsule.c:_Py_IsStaticImmortal Unexecuted instantiation: cellobject.c:_Py_IsStaticImmortal Unexecuted instantiation: classobject.c:_Py_IsStaticImmortal Unexecuted instantiation: codeobject.c:_Py_IsStaticImmortal Unexecuted instantiation: complexobject.c:_Py_IsStaticImmortal Unexecuted instantiation: descrobject.c:_Py_IsStaticImmortal Unexecuted instantiation: enumobject.c:_Py_IsStaticImmortal Unexecuted instantiation: genobject.c:_Py_IsStaticImmortal Unexecuted instantiation: fileobject.c:_Py_IsStaticImmortal Unexecuted instantiation: frameobject.c:_Py_IsStaticImmortal Unexecuted instantiation: funcobject.c:_Py_IsStaticImmortal Unexecuted instantiation: interpolationobject.c:_Py_IsStaticImmortal Unexecuted instantiation: iterobject.c:_Py_IsStaticImmortal Unexecuted instantiation: lazyimportobject.c:_Py_IsStaticImmortal Unexecuted instantiation: odictobject.c:_Py_IsStaticImmortal Unexecuted instantiation: methodobject.c:_Py_IsStaticImmortal Unexecuted instantiation: namespaceobject.c:_Py_IsStaticImmortal Unexecuted instantiation: _contextvars.c:_Py_IsStaticImmortal Unexecuted instantiation: Python-ast.c:_Py_IsStaticImmortal Unexecuted instantiation: Python-tokenize.c:_Py_IsStaticImmortal Unexecuted instantiation: asdl.c:_Py_IsStaticImmortal Unexecuted instantiation: assemble.c:_Py_IsStaticImmortal Unexecuted instantiation: ast.c:_Py_IsStaticImmortal Unexecuted instantiation: ast_preprocess.c:_Py_IsStaticImmortal Unexecuted instantiation: ast_unparse.c:_Py_IsStaticImmortal Unexecuted instantiation: critical_section.c:_Py_IsStaticImmortal Unexecuted instantiation: crossinterp.c:_Py_IsStaticImmortal Unexecuted instantiation: getcopyright.c:_Py_IsStaticImmortal Unexecuted instantiation: getplatform.c:_Py_IsStaticImmortal Unexecuted instantiation: getversion.c:_Py_IsStaticImmortal Unexecuted instantiation: optimizer.c:_Py_IsStaticImmortal Unexecuted instantiation: pathconfig.c:_Py_IsStaticImmortal Unexecuted instantiation: pegen.c:_Py_IsStaticImmortal Unexecuted instantiation: pegen_errors.c:_Py_IsStaticImmortal Unexecuted instantiation: parser.c:_Py_IsStaticImmortal Unexecuted instantiation: buffer.c:_Py_IsStaticImmortal Unexecuted instantiation: lexer.c:_Py_IsStaticImmortal Unexecuted instantiation: 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 |
148 | | #define _Py_IsStaticImmortal(op) _Py_IsStaticImmortal(_PyObject_CAST(op)) |
149 | | #endif // !defined(_Py_OPAQUE_PYOBJECT) |
150 | | |
151 | | // Py_SET_REFCNT() implementation for stable ABI |
152 | | PyAPI_FUNC(void) _Py_SetRefcnt(PyObject *ob, Py_ssize_t refcnt); |
153 | | |
154 | 323M | static inline void Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) { |
155 | 323M | assert(refcnt >= 0); |
156 | | #if (defined(Py_LIMITED_API) && Py_LIMITED_API+0 >= 0x030d0000) \ |
157 | | || defined(_Py_OPAQUE_PYOBJECT) |
158 | | // Stable ABI implements Py_SET_REFCNT() as a function call |
159 | | // on limited C API version 3.13 and newer, and abi3t. |
160 | | _Py_SetRefcnt(ob, refcnt); |
161 | | #else |
162 | | // This immortal check is for code that is unaware of immortal objects. |
163 | | // The runtime tracks these objects and we should avoid as much |
164 | | // as possible having extensions inadvertently change the refcnt |
165 | | // of an immortalized object. |
166 | 323M | if (_Py_IsImmortal(ob)) { |
167 | 1.10k | return; |
168 | 1.10k | } |
169 | 323M | #ifndef Py_GIL_DISABLED |
170 | 323M | #if SIZEOF_VOID_P > 4 |
171 | 323M | ob->ob_refcnt = (uint32_t)refcnt; |
172 | | #else |
173 | | ob->ob_refcnt = refcnt; |
174 | | #endif |
175 | | #else |
176 | | if (_Py_IsOwnedByCurrentThread(ob)) { |
177 | | if ((size_t)refcnt > (size_t)UINT32_MAX) { |
178 | | // On overflow, make the object immortal |
179 | | ob->ob_tid = _Py_UNOWNED_TID; |
180 | | ob->ob_ref_local = _Py_IMMORTAL_REFCNT_LOCAL; |
181 | | ob->ob_ref_shared = 0; |
182 | | } |
183 | | else { |
184 | | // Set local refcount to desired refcount and shared refcount |
185 | | // to zero, but preserve the shared refcount flags. |
186 | | ob->ob_ref_local = _Py_STATIC_CAST(uint32_t, refcnt); |
187 | | ob->ob_ref_shared &= _Py_REF_SHARED_FLAG_MASK; |
188 | | } |
189 | | } |
190 | | else { |
191 | | // Set local refcount to zero and shared refcount to desired refcount. |
192 | | // Mark the object as merged. |
193 | | ob->ob_tid = _Py_UNOWNED_TID; |
194 | | ob->ob_ref_local = 0; |
195 | | ob->ob_ref_shared = _Py_REF_SHARED(refcnt, _Py_REF_MERGED); |
196 | | } |
197 | | #endif // Py_GIL_DISABLED |
198 | 323M | #endif // Py_LIMITED_API |
199 | 323M | } Unexecuted instantiation: bytesobject.c:Py_SET_REFCNT Unexecuted instantiation: call.c:Py_SET_REFCNT Unexecuted instantiation: exceptions.c:Py_SET_REFCNT Unexecuted instantiation: genericaliasobject.c:Py_SET_REFCNT Unexecuted instantiation: floatobject.c:Py_SET_REFCNT Unexecuted instantiation: listobject.c:Py_SET_REFCNT Unexecuted instantiation: longobject.c:Py_SET_REFCNT dictobject.c:Py_SET_REFCNT Line | Count | Source | 154 | 237M | static inline void Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) { | 155 | 237M | assert(refcnt >= 0); | 156 | | #if (defined(Py_LIMITED_API) && Py_LIMITED_API+0 >= 0x030d0000) \ | 157 | | || defined(_Py_OPAQUE_PYOBJECT) | 158 | | // Stable ABI implements Py_SET_REFCNT() as a function call | 159 | | // on limited C API version 3.13 and newer, and abi3t. | 160 | | _Py_SetRefcnt(ob, refcnt); | 161 | | #else | 162 | | // This immortal check is for code that is unaware of immortal objects. | 163 | | // The runtime tracks these objects and we should avoid as much | 164 | | // as possible having extensions inadvertently change the refcnt | 165 | | // of an immortalized object. | 166 | 237M | if (_Py_IsImmortal(ob)) { | 167 | 0 | return; | 168 | 0 | } | 169 | 237M | #ifndef Py_GIL_DISABLED | 170 | 237M | #if SIZEOF_VOID_P > 4 | 171 | 237M | ob->ob_refcnt = (uint32_t)refcnt; | 172 | | #else | 173 | | ob->ob_refcnt = refcnt; | 174 | | #endif | 175 | | #else | 176 | | if (_Py_IsOwnedByCurrentThread(ob)) { | 177 | | if ((size_t)refcnt > (size_t)UINT32_MAX) { | 178 | | // On overflow, make the object immortal | 179 | | ob->ob_tid = _Py_UNOWNED_TID; | 180 | | ob->ob_ref_local = _Py_IMMORTAL_REFCNT_LOCAL; | 181 | | ob->ob_ref_shared = 0; | 182 | | } | 183 | | else { | 184 | | // Set local refcount to desired refcount and shared refcount | 185 | | // to zero, but preserve the shared refcount flags. | 186 | | ob->ob_ref_local = _Py_STATIC_CAST(uint32_t, refcnt); | 187 | | ob->ob_ref_shared &= _Py_REF_SHARED_FLAG_MASK; | 188 | | } | 189 | | } | 190 | | else { | 191 | | // Set local refcount to zero and shared refcount to desired refcount. | 192 | | // Mark the object as merged. | 193 | | ob->ob_tid = _Py_UNOWNED_TID; | 194 | | ob->ob_ref_local = 0; | 195 | | ob->ob_ref_shared = _Py_REF_SHARED(refcnt, _Py_REF_MERGED); | 196 | | } | 197 | | #endif // Py_GIL_DISABLED | 198 | 237M | #endif // Py_LIMITED_API | 199 | 237M | } |
Unexecuted instantiation: memoryobject.c:Py_SET_REFCNT moduleobject.c:Py_SET_REFCNT Line | Count | Source | 154 | 1.10k | static inline void Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) { | 155 | 1.10k | assert(refcnt >= 0); | 156 | | #if (defined(Py_LIMITED_API) && Py_LIMITED_API+0 >= 0x030d0000) \ | 157 | | || defined(_Py_OPAQUE_PYOBJECT) | 158 | | // Stable ABI implements Py_SET_REFCNT() as a function call | 159 | | // on limited C API version 3.13 and newer, and abi3t. | 160 | | _Py_SetRefcnt(ob, refcnt); | 161 | | #else | 162 | | // This immortal check is for code that is unaware of immortal objects. | 163 | | // The runtime tracks these objects and we should avoid as much | 164 | | // as possible having extensions inadvertently change the refcnt | 165 | | // of an immortalized object. | 166 | 1.10k | if (_Py_IsImmortal(ob)) { | 167 | 1.10k | return; | 168 | 1.10k | } | 169 | 0 | #ifndef Py_GIL_DISABLED | 170 | 0 | #if SIZEOF_VOID_P > 4 | 171 | 0 | ob->ob_refcnt = (uint32_t)refcnt; | 172 | | #else | 173 | | ob->ob_refcnt = refcnt; | 174 | | #endif | 175 | | #else | 176 | | if (_Py_IsOwnedByCurrentThread(ob)) { | 177 | | if ((size_t)refcnt > (size_t)UINT32_MAX) { | 178 | | // On overflow, make the object immortal | 179 | | ob->ob_tid = _Py_UNOWNED_TID; | 180 | | ob->ob_ref_local = _Py_IMMORTAL_REFCNT_LOCAL; | 181 | | ob->ob_ref_shared = 0; | 182 | | } | 183 | | else { | 184 | | // Set local refcount to desired refcount and shared refcount | 185 | | // to zero, but preserve the shared refcount flags. | 186 | | ob->ob_ref_local = _Py_STATIC_CAST(uint32_t, refcnt); | 187 | | ob->ob_ref_shared &= _Py_REF_SHARED_FLAG_MASK; | 188 | | } | 189 | | } | 190 | | else { | 191 | | // Set local refcount to zero and shared refcount to desired refcount. | 192 | | // Mark the object as merged. | 193 | | ob->ob_tid = _Py_UNOWNED_TID; | 194 | | ob->ob_ref_local = 0; | 195 | | ob->ob_ref_shared = _Py_REF_SHARED(refcnt, _Py_REF_MERGED); | 196 | | } | 197 | | #endif // Py_GIL_DISABLED | 198 | 0 | #endif // Py_LIMITED_API | 199 | 0 | } |
Line | Count | Source | 154 | 47.5M | static inline void Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) { | 155 | 47.5M | assert(refcnt >= 0); | 156 | | #if (defined(Py_LIMITED_API) && Py_LIMITED_API+0 >= 0x030d0000) \ | 157 | | || defined(_Py_OPAQUE_PYOBJECT) | 158 | | // Stable ABI implements Py_SET_REFCNT() as a function call | 159 | | // on limited C API version 3.13 and newer, and abi3t. | 160 | | _Py_SetRefcnt(ob, refcnt); | 161 | | #else | 162 | | // This immortal check is for code that is unaware of immortal objects. | 163 | | // The runtime tracks these objects and we should avoid as much | 164 | | // as possible having extensions inadvertently change the refcnt | 165 | | // of an immortalized object. | 166 | 47.5M | if (_Py_IsImmortal(ob)) { | 167 | 0 | return; | 168 | 0 | } | 169 | 47.5M | #ifndef Py_GIL_DISABLED | 170 | 47.5M | #if SIZEOF_VOID_P > 4 | 171 | 47.5M | ob->ob_refcnt = (uint32_t)refcnt; | 172 | | #else | 173 | | ob->ob_refcnt = refcnt; | 174 | | #endif | 175 | | #else | 176 | | if (_Py_IsOwnedByCurrentThread(ob)) { | 177 | | if ((size_t)refcnt > (size_t)UINT32_MAX) { | 178 | | // On overflow, make the object immortal | 179 | | ob->ob_tid = _Py_UNOWNED_TID; | 180 | | ob->ob_ref_local = _Py_IMMORTAL_REFCNT_LOCAL; | 181 | | ob->ob_ref_shared = 0; | 182 | | } | 183 | | else { | 184 | | // Set local refcount to desired refcount and shared refcount | 185 | | // to zero, but preserve the shared refcount flags. | 186 | | ob->ob_ref_local = _Py_STATIC_CAST(uint32_t, refcnt); | 187 | | ob->ob_ref_shared &= _Py_REF_SHARED_FLAG_MASK; | 188 | | } | 189 | | } | 190 | | else { | 191 | | // Set local refcount to zero and shared refcount to desired refcount. | 192 | | // Mark the object as merged. | 193 | | ob->ob_tid = _Py_UNOWNED_TID; | 194 | | ob->ob_ref_local = 0; | 195 | | ob->ob_ref_shared = _Py_REF_SHARED(refcnt, _Py_REF_MERGED); | 196 | | } | 197 | | #endif // Py_GIL_DISABLED | 198 | 47.5M | #endif // Py_LIMITED_API | 199 | 47.5M | } |
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 | 154 | 1.14M | static inline void Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) { | 155 | 1.14M | assert(refcnt >= 0); | 156 | | #if (defined(Py_LIMITED_API) && Py_LIMITED_API+0 >= 0x030d0000) \ | 157 | | || defined(_Py_OPAQUE_PYOBJECT) | 158 | | // Stable ABI implements Py_SET_REFCNT() as a function call | 159 | | // on limited C API version 3.13 and newer, and abi3t. | 160 | | _Py_SetRefcnt(ob, refcnt); | 161 | | #else | 162 | | // This immortal check is for code that is unaware of immortal objects. | 163 | | // The runtime tracks these objects and we should avoid as much | 164 | | // as possible having extensions inadvertently change the refcnt | 165 | | // of an immortalized object. | 166 | 1.14M | if (_Py_IsImmortal(ob)) { | 167 | 0 | return; | 168 | 0 | } | 169 | 1.14M | #ifndef Py_GIL_DISABLED | 170 | 1.14M | #if SIZEOF_VOID_P > 4 | 171 | 1.14M | ob->ob_refcnt = (uint32_t)refcnt; | 172 | | #else | 173 | | ob->ob_refcnt = refcnt; | 174 | | #endif | 175 | | #else | 176 | | if (_Py_IsOwnedByCurrentThread(ob)) { | 177 | | if ((size_t)refcnt > (size_t)UINT32_MAX) { | 178 | | // On overflow, make the object immortal | 179 | | ob->ob_tid = _Py_UNOWNED_TID; | 180 | | ob->ob_ref_local = _Py_IMMORTAL_REFCNT_LOCAL; | 181 | | ob->ob_ref_shared = 0; | 182 | | } | 183 | | else { | 184 | | // Set local refcount to desired refcount and shared refcount | 185 | | // to zero, but preserve the shared refcount flags. | 186 | | ob->ob_ref_local = _Py_STATIC_CAST(uint32_t, refcnt); | 187 | | ob->ob_ref_shared &= _Py_REF_SHARED_FLAG_MASK; | 188 | | } | 189 | | } | 190 | | else { | 191 | | // Set local refcount to zero and shared refcount to desired refcount. | 192 | | // Mark the object as merged. | 193 | | ob->ob_tid = _Py_UNOWNED_TID; | 194 | | ob->ob_ref_local = 0; | 195 | | ob->ob_ref_shared = _Py_REF_SHARED(refcnt, _Py_REF_MERGED); | 196 | | } | 197 | | #endif // Py_GIL_DISABLED | 198 | 1.14M | #endif // Py_LIMITED_API | 199 | 1.14M | } |
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: structmember.c:Py_SET_REFCNT Unexecuted instantiation: symtable.c:Py_SET_REFCNT Unexecuted instantiation: sysmodule.c:Py_SET_REFCNT Unexecuted instantiation: thread.c:Py_SET_REFCNT Unexecuted instantiation: traceback.c:Py_SET_REFCNT Unexecuted instantiation: tracemalloc.c:Py_SET_REFCNT Unexecuted instantiation: getopt.c:Py_SET_REFCNT Unexecuted instantiation: pystrcmp.c:Py_SET_REFCNT Unexecuted instantiation: pystrtod.c:Py_SET_REFCNT Unexecuted instantiation: pystrhex.c:Py_SET_REFCNT Unexecuted instantiation: dtoa.c:Py_SET_REFCNT Unexecuted instantiation: fileutils.c:Py_SET_REFCNT Unexecuted instantiation: suggestions.c:Py_SET_REFCNT Unexecuted instantiation: perf_trampoline.c:Py_SET_REFCNT Unexecuted instantiation: perf_jit_trampoline.c:Py_SET_REFCNT Unexecuted instantiation: remote_debugging.c:Py_SET_REFCNT Unexecuted instantiation: dynload_shlib.c:Py_SET_REFCNT Unexecuted instantiation: config.c:Py_SET_REFCNT Unexecuted instantiation: gcmodule.c:Py_SET_REFCNT Unexecuted instantiation: _asynciomodule.c:Py_SET_REFCNT Unexecuted instantiation: atexitmodule.c:Py_SET_REFCNT Unexecuted instantiation: faulthandler.c:Py_SET_REFCNT Unexecuted instantiation: posixmodule.c:Py_SET_REFCNT Unexecuted instantiation: signalmodule.c:Py_SET_REFCNT Unexecuted instantiation: _tracemalloc.c:Py_SET_REFCNT Unexecuted instantiation: _suggestions.c:Py_SET_REFCNT Unexecuted instantiation: _datetimemodule.c:Py_SET_REFCNT Unexecuted instantiation: _codecsmodule.c:Py_SET_REFCNT Unexecuted instantiation: _collectionsmodule.c:Py_SET_REFCNT Unexecuted instantiation: errnomodule.c:Py_SET_REFCNT Unexecuted instantiation: _iomodule.c:Py_SET_REFCNT Unexecuted instantiation: iobase.c:Py_SET_REFCNT Unexecuted instantiation: fileio.c:Py_SET_REFCNT Unexecuted instantiation: bytesio.c:Py_SET_REFCNT Unexecuted instantiation: bufferedio.c:Py_SET_REFCNT Unexecuted instantiation: textio.c:Py_SET_REFCNT Unexecuted instantiation: stringio.c:Py_SET_REFCNT Unexecuted instantiation: itertoolsmodule.c:Py_SET_REFCNT Unexecuted instantiation: sre.c:Py_SET_REFCNT Unexecuted instantiation: _sysconfig.c:Py_SET_REFCNT Unexecuted instantiation: _threadmodule.c:Py_SET_REFCNT Unexecuted instantiation: timemodule.c:Py_SET_REFCNT Unexecuted instantiation: _typesmodule.c:Py_SET_REFCNT Unexecuted instantiation: _typingmodule.c:Py_SET_REFCNT Unexecuted instantiation: _weakref.c:Py_SET_REFCNT Unexecuted instantiation: _abc.c:Py_SET_REFCNT Unexecuted instantiation: _functoolsmodule.c:Py_SET_REFCNT Unexecuted instantiation: _localemodule.c:Py_SET_REFCNT Unexecuted instantiation: _opcode.c:Py_SET_REFCNT Unexecuted instantiation: _operator.c:Py_SET_REFCNT Unexecuted instantiation: _stat.c:Py_SET_REFCNT Unexecuted instantiation: symtablemodule.c:Py_SET_REFCNT Unexecuted instantiation: pwdmodule.c:Py_SET_REFCNT Unexecuted instantiation: getpath.c:Py_SET_REFCNT Unexecuted instantiation: frozen.c:Py_SET_REFCNT Unexecuted instantiation: getbuildinfo.c:Py_SET_REFCNT Unexecuted instantiation: peg_api.c:Py_SET_REFCNT Unexecuted instantiation: file_tokenizer.c:Py_SET_REFCNT Unexecuted instantiation: helpers.c:Py_SET_REFCNT Unexecuted instantiation: myreadline.c:Py_SET_REFCNT Unexecuted instantiation: abstract.c:Py_SET_REFCNT Unexecuted instantiation: boolobject.c:Py_SET_REFCNT Unexecuted instantiation: bytes_methods.c:Py_SET_REFCNT Unexecuted instantiation: bytearrayobject.c:Py_SET_REFCNT Unexecuted instantiation: capsule.c:Py_SET_REFCNT Unexecuted instantiation: cellobject.c:Py_SET_REFCNT Unexecuted instantiation: classobject.c:Py_SET_REFCNT codeobject.c:Py_SET_REFCNT Line | Count | Source | 154 | 191k | static inline void Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) { | 155 | 191k | assert(refcnt >= 0); | 156 | | #if (defined(Py_LIMITED_API) && Py_LIMITED_API+0 >= 0x030d0000) \ | 157 | | || defined(_Py_OPAQUE_PYOBJECT) | 158 | | // Stable ABI implements Py_SET_REFCNT() as a function call | 159 | | // on limited C API version 3.13 and newer, and abi3t. | 160 | | _Py_SetRefcnt(ob, refcnt); | 161 | | #else | 162 | | // This immortal check is for code that is unaware of immortal objects. | 163 | | // The runtime tracks these objects and we should avoid as much | 164 | | // as possible having extensions inadvertently change the refcnt | 165 | | // of an immortalized object. | 166 | 191k | if (_Py_IsImmortal(ob)) { | 167 | 0 | return; | 168 | 0 | } | 169 | 191k | #ifndef Py_GIL_DISABLED | 170 | 191k | #if SIZEOF_VOID_P > 4 | 171 | 191k | ob->ob_refcnt = (uint32_t)refcnt; | 172 | | #else | 173 | | ob->ob_refcnt = refcnt; | 174 | | #endif | 175 | | #else | 176 | | if (_Py_IsOwnedByCurrentThread(ob)) { | 177 | | if ((size_t)refcnt > (size_t)UINT32_MAX) { | 178 | | // On overflow, make the object immortal | 179 | | ob->ob_tid = _Py_UNOWNED_TID; | 180 | | ob->ob_ref_local = _Py_IMMORTAL_REFCNT_LOCAL; | 181 | | ob->ob_ref_shared = 0; | 182 | | } | 183 | | else { | 184 | | // Set local refcount to desired refcount and shared refcount | 185 | | // to zero, but preserve the shared refcount flags. | 186 | | ob->ob_ref_local = _Py_STATIC_CAST(uint32_t, refcnt); | 187 | | ob->ob_ref_shared &= _Py_REF_SHARED_FLAG_MASK; | 188 | | } | 189 | | } | 190 | | else { | 191 | | // Set local refcount to zero and shared refcount to desired refcount. | 192 | | // Mark the object as merged. | 193 | | ob->ob_tid = _Py_UNOWNED_TID; | 194 | | ob->ob_ref_local = 0; | 195 | | ob->ob_ref_shared = _Py_REF_SHARED(refcnt, _Py_REF_MERGED); | 196 | | } | 197 | | #endif // Py_GIL_DISABLED | 198 | 191k | #endif // Py_LIMITED_API | 199 | 191k | } |
Unexecuted instantiation: complexobject.c:Py_SET_REFCNT Unexecuted instantiation: descrobject.c:Py_SET_REFCNT Unexecuted instantiation: enumobject.c:Py_SET_REFCNT Unexecuted instantiation: genobject.c:Py_SET_REFCNT Unexecuted instantiation: fileobject.c:Py_SET_REFCNT Unexecuted instantiation: frameobject.c:Py_SET_REFCNT funcobject.c:Py_SET_REFCNT Line | Count | Source | 154 | 37.1M | static inline void Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) { | 155 | 37.1M | assert(refcnt >= 0); | 156 | | #if (defined(Py_LIMITED_API) && Py_LIMITED_API+0 >= 0x030d0000) \ | 157 | | || defined(_Py_OPAQUE_PYOBJECT) | 158 | | // Stable ABI implements Py_SET_REFCNT() as a function call | 159 | | // on limited C API version 3.13 and newer, and abi3t. | 160 | | _Py_SetRefcnt(ob, refcnt); | 161 | | #else | 162 | | // This immortal check is for code that is unaware of immortal objects. | 163 | | // The runtime tracks these objects and we should avoid as much | 164 | | // as possible having extensions inadvertently change the refcnt | 165 | | // of an immortalized object. | 166 | 37.1M | if (_Py_IsImmortal(ob)) { | 167 | 0 | return; | 168 | 0 | } | 169 | 37.1M | #ifndef Py_GIL_DISABLED | 170 | 37.1M | #if SIZEOF_VOID_P > 4 | 171 | 37.1M | ob->ob_refcnt = (uint32_t)refcnt; | 172 | | #else | 173 | | ob->ob_refcnt = refcnt; | 174 | | #endif | 175 | | #else | 176 | | if (_Py_IsOwnedByCurrentThread(ob)) { | 177 | | if ((size_t)refcnt > (size_t)UINT32_MAX) { | 178 | | // On overflow, make the object immortal | 179 | | ob->ob_tid = _Py_UNOWNED_TID; | 180 | | ob->ob_ref_local = _Py_IMMORTAL_REFCNT_LOCAL; | 181 | | ob->ob_ref_shared = 0; | 182 | | } | 183 | | else { | 184 | | // Set local refcount to desired refcount and shared refcount | 185 | | // to zero, but preserve the shared refcount flags. | 186 | | ob->ob_ref_local = _Py_STATIC_CAST(uint32_t, refcnt); | 187 | | ob->ob_ref_shared &= _Py_REF_SHARED_FLAG_MASK; | 188 | | } | 189 | | } | 190 | | else { | 191 | | // Set local refcount to zero and shared refcount to desired refcount. | 192 | | // Mark the object as merged. | 193 | | ob->ob_tid = _Py_UNOWNED_TID; | 194 | | ob->ob_ref_local = 0; | 195 | | ob->ob_ref_shared = _Py_REF_SHARED(refcnt, _Py_REF_MERGED); | 196 | | } | 197 | | #endif // Py_GIL_DISABLED | 198 | 37.1M | #endif // Py_LIMITED_API | 199 | 37.1M | } |
Unexecuted instantiation: interpolationobject.c:Py_SET_REFCNT Unexecuted instantiation: iterobject.c:Py_SET_REFCNT Unexecuted instantiation: lazyimportobject.c:Py_SET_REFCNT Unexecuted instantiation: odictobject.c:Py_SET_REFCNT Unexecuted instantiation: methodobject.c:Py_SET_REFCNT Unexecuted instantiation: namespaceobject.c:Py_SET_REFCNT Unexecuted instantiation: _contextvars.c:Py_SET_REFCNT Unexecuted instantiation: Python-ast.c:Py_SET_REFCNT Unexecuted instantiation: Python-tokenize.c:Py_SET_REFCNT Unexecuted instantiation: asdl.c:Py_SET_REFCNT Unexecuted instantiation: assemble.c:Py_SET_REFCNT Unexecuted instantiation: ast.c:Py_SET_REFCNT Unexecuted instantiation: ast_preprocess.c:Py_SET_REFCNT Unexecuted instantiation: ast_unparse.c:Py_SET_REFCNT Unexecuted instantiation: critical_section.c:Py_SET_REFCNT Unexecuted instantiation: crossinterp.c:Py_SET_REFCNT Unexecuted instantiation: getcopyright.c:Py_SET_REFCNT Unexecuted instantiation: getplatform.c:Py_SET_REFCNT Unexecuted instantiation: getversion.c:Py_SET_REFCNT Unexecuted instantiation: optimizer.c:Py_SET_REFCNT Unexecuted instantiation: pathconfig.c:Py_SET_REFCNT Unexecuted instantiation: pegen.c:Py_SET_REFCNT Unexecuted instantiation: pegen_errors.c:Py_SET_REFCNT Unexecuted instantiation: parser.c:Py_SET_REFCNT Unexecuted instantiation: buffer.c:Py_SET_REFCNT Unexecuted instantiation: lexer.c:Py_SET_REFCNT Unexecuted instantiation: 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 |
200 | | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000 |
201 | 323M | # define Py_SET_REFCNT(ob, refcnt) Py_SET_REFCNT(_PyObject_CAST(ob), (refcnt)) |
202 | | #endif |
203 | | |
204 | | |
205 | | /* |
206 | | The macros Py_INCREF(op) and Py_DECREF(op) are used to increment or decrement |
207 | | reference counts. Py_DECREF calls the object's deallocator function when |
208 | | the refcount falls to 0; for |
209 | | objects that don't contain references to other objects or heap memory |
210 | | this can be the standard function free(). Both macros can be used |
211 | | wherever a void expression is allowed. The argument must not be a |
212 | | NULL pointer. If it may be NULL, use Py_XINCREF/Py_XDECREF instead. |
213 | | The macro _Py_NewReference(op) initialize reference counts to 1, and |
214 | | in special builds (Py_REF_DEBUG, Py_TRACE_REFS) performs additional |
215 | | bookkeeping appropriate to the special build. |
216 | | |
217 | | We assume that the reference count field can never overflow; this can |
218 | | be proven when the size of the field is the same as the pointer size, so |
219 | | we ignore the possibility. Provided a C int is at least 32 bits (which |
220 | | is implicitly assumed in many parts of this code), that's enough for |
221 | | about 2**31 references to an object. |
222 | | |
223 | | XXX The following became out of date in Python 2.2, but I'm not sure |
224 | | XXX what the full truth is now. Certainly, heap-allocated type objects |
225 | | XXX can and should be deallocated. |
226 | | Type objects should never be deallocated; the type pointer in an object |
227 | | is not considered to be a reference to the type object, to save |
228 | | complications in the deallocation function. (This is actually a |
229 | | decision that's up to the implementer of each new type so if you want, |
230 | | you can count such references to the type object.) |
231 | | */ |
232 | | |
233 | | #if defined(Py_REF_DEBUG) && !defined(Py_LIMITED_API) |
234 | | PyAPI_FUNC(void) _Py_NegativeRefcount(const char *filename, int lineno, |
235 | | PyObject *op); |
236 | | PyAPI_FUNC(void) _Py_INCREF_IncRefTotal(void); |
237 | | PyAPI_FUNC(void) _Py_DECREF_DecRefTotal(void); |
238 | | #endif // Py_REF_DEBUG && !Py_LIMITED_API |
239 | | |
240 | | PyAPI_FUNC(void) _Py_Dealloc(PyObject *); |
241 | | |
242 | | |
243 | | /* |
244 | | These are provided as conveniences to Python runtime embedders, so that |
245 | | they can have object code that is not dependent on Python compilation flags. |
246 | | */ |
247 | | PyAPI_FUNC(void) Py_IncRef(PyObject *); |
248 | | PyAPI_FUNC(void) Py_DecRef(PyObject *); |
249 | | |
250 | | // Similar to Py_IncRef() and Py_DecRef() but the argument must be non-NULL. |
251 | | // Private functions used by Py_INCREF() and Py_DECREF(). |
252 | | PyAPI_FUNC(void) _Py_IncRef(PyObject *); |
253 | | PyAPI_FUNC(void) _Py_DecRef(PyObject *); |
254 | | |
255 | | static inline Py_ALWAYS_INLINE void Py_INCREF(PyObject *op) |
256 | 17.9G | { |
257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ |
258 | | || defined(_Py_OPAQUE_PYOBJECT) |
259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API |
260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. |
261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. |
262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. |
263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 |
264 | | _Py_IncRef(op); |
265 | | # else |
266 | | Py_IncRef(op); |
267 | | # endif |
268 | | #else |
269 | | // Non-limited C API and limited C API for Python 3.9 and older access |
270 | | // directly PyObject.ob_refcnt. |
271 | | #if defined(Py_GIL_DISABLED) |
272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); |
273 | | uint32_t new_local = local + 1; |
274 | | if (new_local == 0) { |
275 | | _Py_INCREF_IMMORTAL_STAT_INC(); |
276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing |
277 | | return; |
278 | | } |
279 | | if (_Py_IsOwnedByCurrentThread(op)) { |
280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); |
281 | | } |
282 | | else { |
283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); |
284 | | } |
285 | | #elif SIZEOF_VOID_P > 4 |
286 | | uint32_t cur_refcnt = op->ob_refcnt; |
287 | 17.9G | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { |
288 | | // the object is immortal |
289 | 8.83G | _Py_INCREF_IMMORTAL_STAT_INC(); |
290 | 8.83G | return; |
291 | 8.83G | } |
292 | 9.08G | op->ob_refcnt = cur_refcnt + 1; |
293 | | #else |
294 | | if (_Py_IsImmortal(op)) { |
295 | | _Py_INCREF_IMMORTAL_STAT_INC(); |
296 | | return; |
297 | | } |
298 | | op->ob_refcnt++; |
299 | | #endif |
300 | 9.08G | _Py_INCREF_STAT_INC(); |
301 | | #ifdef Py_REF_DEBUG |
302 | | // Don't count the incref if the object is immortal. |
303 | | if (!_Py_IsImmortal(op)) { |
304 | | _Py_INCREF_IncRefTotal(); |
305 | | } |
306 | | #endif |
307 | 9.08G | #endif |
308 | 9.08G | } Line | Count | Source | 256 | 157M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 157M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 154M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 154M | return; | 291 | 154M | } | 292 | 2.69M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 2.69M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 2.69M | #endif | 308 | 2.69M | } |
Line | Count | Source | 256 | 30.9M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 30.9M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 17.5M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 17.5M | return; | 291 | 17.5M | } | 292 | 13.3M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 13.3M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 13.3M | #endif | 308 | 13.3M | } |
Line | Count | Source | 256 | 193M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 193M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 46.9M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 46.9M | return; | 291 | 46.9M | } | 292 | 146M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 146M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 146M | #endif | 308 | 146M | } |
genericaliasobject.c:Py_INCREF Line | Count | Source | 256 | 2.45k | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 2.45k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 1.71k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 1.71k | return; | 291 | 1.71k | } | 292 | 740 | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 740 | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 740 | #endif | 308 | 740 | } |
Line | Count | Source | 256 | 1.64M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 1.64M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 1.64M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 1.64M | return; | 291 | 1.64M | } | 292 | 0 | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 0 | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 0 | #endif | 308 | 0 | } |
Line | Count | Source | 256 | 1.37G | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 1.37G | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 323M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 323M | return; | 291 | 323M | } | 292 | 1.05G | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 1.05G | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 1.05G | #endif | 308 | 1.05G | } |
Line | Count | Source | 256 | 98.4M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 98.4M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 98.4M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 98.4M | return; | 291 | 98.4M | } | 292 | 1.03k | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 1.03k | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 1.03k | #endif | 308 | 1.03k | } |
Line | Count | Source | 256 | 1.56G | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 1.56G | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 300M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 300M | return; | 291 | 300M | } | 292 | 1.26G | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 1.26G | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 1.26G | #endif | 308 | 1.26G | } |
Line | Count | Source | 256 | 2.72M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 2.72M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 61 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 61 | return; | 291 | 61 | } | 292 | 2.72M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 2.72M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 2.72M | #endif | 308 | 2.72M | } |
Line | Count | Source | 256 | 8.07k | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 8.07k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 6.51k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 6.51k | return; | 291 | 6.51k | } | 292 | 1.55k | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 1.55k | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 1.55k | #endif | 308 | 1.55k | } |
Line | Count | Source | 256 | 865M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 865M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 576M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 576M | return; | 291 | 576M | } | 292 | 288M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 288M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 288M | #endif | 308 | 288M | } |
Unexecuted instantiation: obmalloc.c:Py_INCREF Unexecuted instantiation: picklebufobject.c:Py_INCREF Line | Count | Source | 256 | 144 | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 144 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 108 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 108 | return; | 291 | 108 | } | 292 | 36 | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 36 | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 36 | #endif | 308 | 36 | } |
Line | Count | Source | 256 | 11.5M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 11.5M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 1.20M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 1.20M | return; | 291 | 1.20M | } | 292 | 10.3M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 10.3M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 10.3M | #endif | 308 | 10.3M | } |
Line | Count | Source | 256 | 176M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 176M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 102M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 102M | return; | 291 | 102M | } | 292 | 73.8M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 73.8M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 73.8M | #endif | 308 | 73.8M | } |
Line | Count | Source | 256 | 120k | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 120k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 109k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 109k | return; | 291 | 109k | } | 292 | 10.9k | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 10.9k | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 10.9k | #endif | 308 | 10.9k | } |
templateobject.c:Py_INCREF Line | Count | Source | 256 | 16 | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 16 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 8 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 8 | return; | 291 | 8 | } | 292 | 8 | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 8 | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 8 | #endif | 308 | 8 | } |
Line | Count | Source | 256 | 9.16G | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 9.16G | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 4.79G | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 4.79G | return; | 291 | 4.79G | } | 292 | 4.37G | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 4.37G | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 4.37G | #endif | 308 | 4.37G | } |
Line | Count | Source | 256 | 386M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 386M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 196M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 196M | return; | 291 | 196M | } | 292 | 190M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 190M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 190M | #endif | 308 | 190M | } |
typevarobject.c:Py_INCREF Line | Count | Source | 256 | 2.12k | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 2.12k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 720 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 720 | return; | 291 | 720 | } | 292 | 1.40k | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 1.40k | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 1.40k | #endif | 308 | 1.40k | } |
unicode_format.c:Py_INCREF Line | Count | Source | 256 | 26.4M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 26.4M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 8.79M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 8.79M | return; | 291 | 8.79M | } | 292 | 17.6M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 17.6M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 17.6M | #endif | 308 | 17.6M | } |
Unexecuted instantiation: unicode_formatter.c:Py_INCREF unicode_writer.c:Py_INCREF Line | Count | Source | 256 | 5.55k | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 5.55k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 0 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 0 | return; | 291 | 0 | } | 292 | 5.55k | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 5.55k | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 5.55k | #endif | 308 | 5.55k | } |
Unexecuted instantiation: unicodectype.c:Py_INCREF unicodeobject.c:Py_INCREF Line | Count | Source | 256 | 666M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 666M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 589M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 589M | return; | 291 | 589M | } | 292 | 76.8M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 76.8M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 76.8M | #endif | 308 | 76.8M | } |
Line | Count | Source | 256 | 936 | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 936 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 608 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 608 | return; | 291 | 608 | } | 292 | 328 | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 328 | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 328 | #endif | 308 | 328 | } |
weakrefobject.c:Py_INCREF Line | Count | Source | 256 | 3.50M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 3.50M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 122k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 122k | return; | 291 | 122k | } | 292 | 3.38M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 3.38M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 3.38M | #endif | 308 | 3.38M | } |
Line | Count | Source | 256 | 4.82M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 4.82M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 2.46M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 2.46M | return; | 291 | 2.46M | } | 292 | 2.36M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 2.36M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 2.36M | #endif | 308 | 2.36M | } |
Line | Count | Source | 256 | 75.6M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 75.6M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 42.0M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 42.0M | return; | 291 | 42.0M | } | 292 | 33.5M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 33.5M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 33.5M | #endif | 308 | 33.5M | } |
Line | Count | Source | 256 | 1.03G | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 1.03G | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 578M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 578M | return; | 291 | 578M | } | 292 | 457M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 457M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 457M | #endif | 308 | 457M | } |
Line | Count | Source | 256 | 4.90M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 4.90M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 471k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 471k | return; | 291 | 471k | } | 292 | 4.43M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 4.43M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 4.43M | #endif | 308 | 4.43M | } |
Line | Count | Source | 256 | 2.26k | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 2.26k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 2.26k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 2.26k | return; | 291 | 2.26k | } | 292 | 0 | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 0 | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 0 | #endif | 308 | 0 | } |
Line | Count | Source | 256 | 81.7k | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 81.7k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 40.0k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 40.0k | return; | 291 | 40.0k | } | 292 | 41.7k | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 41.7k | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 41.7k | #endif | 308 | 41.7k | } |
Line | Count | Source | 256 | 61 | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 61 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 25 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 25 | return; | 291 | 25 | } | 292 | 36 | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 36 | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 36 | #endif | 308 | 36 | } |
Line | Count | Source | 256 | 90.9M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 90.9M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 38.5M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 38.5M | return; | 291 | 38.5M | } | 292 | 52.3M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 52.3M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 52.3M | #endif | 308 | 52.3M | } |
Line | Count | Source | 256 | 56.1k | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 56.1k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 35.0k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 35.0k | return; | 291 | 35.0k | } | 292 | 21.1k | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 21.1k | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 21.1k | #endif | 308 | 21.1k | } |
Line | Count | Source | 256 | 65.7M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 65.7M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 0 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 0 | return; | 291 | 0 | } | 292 | 65.7M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 65.7M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 65.7M | #endif | 308 | 65.7M | } |
Unexecuted instantiation: future.c:Py_INCREF Line | Count | Source | 256 | 518M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 518M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 438M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 438M | return; | 291 | 438M | } | 292 | 79.6M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 79.6M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 79.6M | #endif | 308 | 79.6M | } |
Unexecuted instantiation: gc_gil.c:Py_INCREF Line | Count | Source | 256 | 3.48M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 3.48M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 2.78M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 2.78M | return; | 291 | 2.78M | } | 292 | 707k | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 707k | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 707k | #endif | 308 | 707k | } |
Unexecuted instantiation: ceval_gil.c:Py_INCREF Unexecuted instantiation: hamt.c:Py_INCREF Unexecuted instantiation: hashtable.c:Py_INCREF Line | Count | Source | 256 | 18.0M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 18.0M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 3.97M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 3.97M | return; | 291 | 3.97M | } | 292 | 14.0M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 14.0M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 14.0M | #endif | 308 | 14.0M | } |
Line | Count | Source | 256 | 1.38k | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 1.38k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 1.06k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 1.06k | return; | 291 | 1.06k | } | 292 | 313 | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 313 | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 313 | #endif | 308 | 313 | } |
Line | Count | Source | 256 | 612 | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 612 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 612 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 612 | return; | 291 | 612 | } | 292 | 0 | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 0 | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 0 | #endif | 308 | 0 | } |
Unexecuted instantiation: instrumentation.c:Py_INCREF Unexecuted instantiation: instruction_sequence.c:Py_INCREF Line | Count | Source | 256 | 65.9k | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 65.9k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 0 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 0 | return; | 291 | 0 | } | 292 | 65.9k | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 65.9k | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 65.9k | #endif | 308 | 65.9k | } |
Unexecuted instantiation: legacy_tracing.c:Py_INCREF Unexecuted instantiation: lock.c:Py_INCREF Line | Count | Source | 256 | 1.90M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 1.90M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 1.74M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 1.74M | return; | 291 | 1.74M | } | 292 | 162k | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 162k | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 162k | #endif | 308 | 162k | } |
Line | Count | Source | 256 | 3.49M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 3.49M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 903k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 903k | return; | 291 | 903k | } | 292 | 2.58M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 2.58M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 2.58M | #endif | 308 | 2.58M | } |
Unexecuted instantiation: mysnprintf.c:Py_INCREF Unexecuted instantiation: parking_lot.c:Py_INCREF Unexecuted instantiation: preconfig.c:Py_INCREF Unexecuted instantiation: pyarena.c:Py_INCREF Unexecuted instantiation: pyctype.c:Py_INCREF Unexecuted instantiation: pyhash.c:Py_INCREF Line | Count | Source | 256 | 36 | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 36 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 0 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 0 | return; | 291 | 0 | } | 292 | 36 | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 36 | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 36 | #endif | 308 | 36 | } |
Unexecuted instantiation: pymath.c:Py_INCREF Line | Count | Source | 256 | 1.10M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 1.10M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 0 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 0 | return; | 291 | 0 | } | 292 | 1.10M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 1.10M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 1.10M | #endif | 308 | 1.10M | } |
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 | 256 | 7.16M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 7.16M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 1.42M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 1.42M | return; | 291 | 1.42M | } | 292 | 5.73M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 5.73M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 5.73M | #endif | 308 | 5.73M | } |
Line | Count | Source | 256 | 169k | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 169k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 169k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 169k | return; | 291 | 169k | } | 292 | 327 | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 327 | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 327 | #endif | 308 | 327 | } |
Line | Count | Source | 256 | 4.28k | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 4.28k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 2.39k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 2.39k | return; | 291 | 2.39k | } | 292 | 1.88k | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 1.88k | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 1.88k | #endif | 308 | 1.88k | } |
Unexecuted instantiation: thread.c:Py_INCREF Line | Count | Source | 256 | 94.1M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 94.1M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 0 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 0 | return; | 291 | 0 | } | 292 | 94.1M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 94.1M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 94.1M | #endif | 308 | 94.1M | } |
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 | 256 | 6 | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 6 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 0 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 0 | return; | 291 | 0 | } | 292 | 6 | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 6 | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 6 | #endif | 308 | 6 | } |
Unexecuted instantiation: faulthandler.c:Py_INCREF Line | Count | Source | 256 | 4.02M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 4.02M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 801k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 801k | return; | 291 | 801k | } | 292 | 3.22M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 3.22M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 3.22M | #endif | 308 | 3.22M | } |
Line | Count | Source | 256 | 2.30k | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 2.30k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 2.30k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 2.30k | return; | 291 | 2.30k | } | 292 | 0 | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 0 | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 0 | #endif | 308 | 0 | } |
Unexecuted instantiation: _tracemalloc.c:Py_INCREF Unexecuted instantiation: _suggestions.c:Py_INCREF _datetimemodule.c:Py_INCREF Line | Count | Source | 256 | 33.2k | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 33.2k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 18.4k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 18.4k | return; | 291 | 18.4k | } | 292 | 14.7k | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 14.7k | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 14.7k | #endif | 308 | 14.7k | } |
Unexecuted instantiation: _codecsmodule.c:Py_INCREF _collectionsmodule.c:Py_INCREF Line | Count | Source | 256 | 23.9M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 23.9M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 21.5M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 21.5M | return; | 291 | 21.5M | } | 292 | 2.41M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 2.41M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 2.41M | #endif | 308 | 2.41M | } |
Unexecuted instantiation: errnomodule.c:Py_INCREF Line | Count | Source | 256 | 302 | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 302 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 278 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 278 | return; | 291 | 278 | } | 292 | 24 | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 24 | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 24 | #endif | 308 | 24 | } |
Line | Count | Source | 256 | 109k | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 109k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 0 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 0 | return; | 291 | 0 | } | 292 | 109k | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 109k | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 109k | #endif | 308 | 109k | } |
Unexecuted instantiation: fileio.c:Py_INCREF Line | Count | Source | 256 | 68.3k | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 68.3k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 2.10k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 2.10k | return; | 291 | 2.10k | } | 292 | 66.2k | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 66.2k | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 66.2k | #endif | 308 | 66.2k | } |
Line | Count | Source | 256 | 43.2k | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 43.2k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 0 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 0 | return; | 291 | 0 | } | 292 | 43.2k | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 43.2k | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 43.2k | #endif | 308 | 43.2k | } |
Line | Count | Source | 256 | 591k | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 591k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 20.0k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 20.0k | return; | 291 | 20.0k | } | 292 | 571k | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 571k | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 571k | #endif | 308 | 571k | } |
Line | Count | Source | 256 | 22.1k | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 22.1k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 99 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 99 | return; | 291 | 99 | } | 292 | 22.0k | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 22.0k | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 22.0k | #endif | 308 | 22.0k | } |
itertoolsmodule.c:Py_INCREF Line | Count | Source | 256 | 42.8k | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 42.8k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 41.5k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 41.5k | return; | 291 | 41.5k | } | 292 | 1.33k | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 1.33k | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 1.33k | #endif | 308 | 1.33k | } |
Line | Count | Source | 256 | 215M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 215M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 60.4M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 60.4M | return; | 291 | 60.4M | } | 292 | 155M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 155M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 155M | #endif | 308 | 155M | } |
Unexecuted instantiation: _sysconfig.c:Py_INCREF _threadmodule.c:Py_INCREF Line | Count | Source | 256 | 152 | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 152 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 76 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 76 | return; | 291 | 76 | } | 292 | 76 | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 76 | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 76 | #endif | 308 | 76 | } |
Unexecuted instantiation: timemodule.c:Py_INCREF Unexecuted instantiation: _typesmodule.c:Py_INCREF Unexecuted instantiation: _typingmodule.c:Py_INCREF Unexecuted instantiation: _weakref.c:Py_INCREF Line | Count | Source | 256 | 112k | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 112k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 111k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 111k | return; | 291 | 111k | } | 292 | 415 | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 415 | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 415 | #endif | 308 | 415 | } |
_functoolsmodule.c:Py_INCREF Line | Count | Source | 256 | 649k | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 649k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 25.9k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 25.9k | return; | 291 | 25.9k | } | 292 | 623k | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 623k | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 623k | #endif | 308 | 623k | } |
Unexecuted instantiation: _localemodule.c:Py_INCREF Unexecuted instantiation: _opcode.c:Py_INCREF Line | Count | Source | 256 | 1.27M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 1.27M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 1.24M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 1.24M | return; | 291 | 1.24M | } | 292 | 26.8k | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 26.8k | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 26.8k | #endif | 308 | 26.8k | } |
Unexecuted instantiation: _stat.c:Py_INCREF Unexecuted instantiation: symtablemodule.c:Py_INCREF Unexecuted instantiation: pwdmodule.c:Py_INCREF Line | Count | Source | 256 | 504 | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 504 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 504 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 504 | return; | 291 | 504 | } | 292 | 0 | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 0 | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 0 | #endif | 308 | 0 | } |
Unexecuted instantiation: frozen.c:Py_INCREF Unexecuted instantiation: getbuildinfo.c:Py_INCREF Unexecuted instantiation: peg_api.c:Py_INCREF Unexecuted instantiation: file_tokenizer.c:Py_INCREF Unexecuted instantiation: helpers.c:Py_INCREF Unexecuted instantiation: myreadline.c:Py_INCREF Line | Count | Source | 256 | 548M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 548M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 295M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 295M | return; | 291 | 295M | } | 292 | 252M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 252M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 252M | #endif | 308 | 252M | } |
Unexecuted instantiation: boolobject.c:Py_INCREF Unexecuted instantiation: bytes_methods.c:Py_INCREF bytearrayobject.c:Py_INCREF Line | Count | Source | 256 | 15.4M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 15.4M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 0 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 0 | return; | 291 | 0 | } | 292 | 15.4M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 15.4M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 15.4M | #endif | 308 | 15.4M | } |
Unexecuted instantiation: capsule.c:Py_INCREF Line | Count | Source | 256 | 4.46M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 4.46M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 1.02M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 1.02M | return; | 291 | 1.02M | } | 292 | 3.43M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 3.43M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 3.43M | #endif | 308 | 3.43M | } |
Line | Count | Source | 256 | 93.7M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 93.7M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 160 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 160 | return; | 291 | 160 | } | 292 | 93.7M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 93.7M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 93.7M | #endif | 308 | 93.7M | } |
Line | Count | Source | 256 | 2.15M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 2.15M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 880k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 880k | return; | 291 | 880k | } | 292 | 1.27M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 1.27M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 1.27M | #endif | 308 | 1.27M | } |
complexobject.c:Py_INCREF Line | Count | Source | 256 | 2.44k | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 2.44k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 2.44k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 2.44k | return; | 291 | 2.44k | } | 292 | 0 | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 0 | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 0 | #endif | 308 | 0 | } |
Line | Count | Source | 256 | 20.9M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 20.9M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 70.7k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 70.7k | return; | 291 | 70.7k | } | 292 | 20.8M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 20.8M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 20.8M | #endif | 308 | 20.8M | } |
Line | Count | Source | 256 | 13.2M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 13.2M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 12 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 12 | return; | 291 | 12 | } | 292 | 13.2M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 13.2M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 13.2M | #endif | 308 | 13.2M | } |
Line | Count | Source | 256 | 46.8M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 46.8M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 46.6M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 46.6M | return; | 291 | 46.6M | } | 292 | 168k | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 168k | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 168k | #endif | 308 | 168k | } |
Unexecuted instantiation: fileobject.c:Py_INCREF Line | Count | Source | 256 | 39.0M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 39.0M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 168 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 168 | return; | 291 | 168 | } | 292 | 39.0M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 39.0M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 39.0M | #endif | 308 | 39.0M | } |
Line | Count | Source | 256 | 93.8M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 93.8M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 55.9M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 55.9M | return; | 291 | 55.9M | } | 292 | 37.9M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 37.9M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 37.9M | #endif | 308 | 37.9M | } |
Unexecuted instantiation: interpolationobject.c:Py_INCREF Line | Count | Source | 256 | 2.86M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 2.86M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 382k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 382k | return; | 291 | 382k | } | 292 | 2.48M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 2.48M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 2.48M | #endif | 308 | 2.48M | } |
lazyimportobject.c:Py_INCREF Line | Count | Source | 256 | 580 | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 580 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 214 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 214 | return; | 291 | 214 | } | 292 | 366 | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 366 | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 366 | #endif | 308 | 366 | } |
Line | Count | Source | 256 | 261k | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 261k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 146k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 146k | return; | 291 | 146k | } | 292 | 115k | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 115k | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 115k | #endif | 308 | 115k | } |
Line | Count | Source | 256 | 134M | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 134M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 23.5M | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 23.5M | return; | 291 | 23.5M | } | 292 | 111M | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 111M | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 111M | #endif | 308 | 111M | } |
Unexecuted instantiation: namespaceobject.c:Py_INCREF Unexecuted instantiation: _contextvars.c:Py_INCREF Line | Count | Source | 256 | 559k | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 559k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 237k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 237k | return; | 291 | 237k | } | 292 | 321k | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 321k | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 321k | #endif | 308 | 321k | } |
Unexecuted instantiation: Python-tokenize.c:Py_INCREF Unexecuted instantiation: asdl.c:Py_INCREF Line | Count | Source | 256 | 29.7k | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 29.7k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 29.6k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 29.6k | return; | 291 | 29.6k | } | 292 | 47 | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 47 | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 47 | #endif | 308 | 47 | } |
Unexecuted instantiation: ast.c:Py_INCREF Unexecuted instantiation: ast_preprocess.c:Py_INCREF Unexecuted instantiation: ast_unparse.c:Py_INCREF Unexecuted instantiation: critical_section.c:Py_INCREF Unexecuted instantiation: crossinterp.c:Py_INCREF Unexecuted instantiation: getcopyright.c:Py_INCREF Unexecuted instantiation: getplatform.c:Py_INCREF Unexecuted instantiation: getversion.c:Py_INCREF Unexecuted instantiation: optimizer.c:Py_INCREF Unexecuted instantiation: pathconfig.c:Py_INCREF Line | Count | Source | 256 | 100k | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 100k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 1.46k | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 1.46k | return; | 291 | 1.46k | } | 292 | 99.3k | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 99.3k | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 99.3k | #endif | 308 | 99.3k | } |
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 readline_tokenizer.c:Py_INCREF Line | Count | Source | 256 | 20 | { | 257 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ | 258 | | || defined(_Py_OPAQUE_PYOBJECT) | 259 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 260 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. | 261 | | // _Py_IncRef() was added to Python 3.10.0a7, use Py_IncRef() on older versions. | 262 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 263 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 264 | | _Py_IncRef(op); | 265 | | # else | 266 | | Py_IncRef(op); | 267 | | # endif | 268 | | #else | 269 | | // Non-limited C API and limited C API for Python 3.9 and older access | 270 | | // directly PyObject.ob_refcnt. | 271 | | #if defined(Py_GIL_DISABLED) | 272 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 273 | | uint32_t new_local = local + 1; | 274 | | if (new_local == 0) { | 275 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 276 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 277 | | return; | 278 | | } | 279 | | if (_Py_IsOwnedByCurrentThread(op)) { | 280 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 281 | | } | 282 | | else { | 283 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 284 | | } | 285 | | #elif SIZEOF_VOID_P > 4 | 286 | | uint32_t cur_refcnt = op->ob_refcnt; | 287 | 20 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 288 | | // the object is immortal | 289 | 0 | _Py_INCREF_IMMORTAL_STAT_INC(); | 290 | 0 | return; | 291 | 0 | } | 292 | 20 | op->ob_refcnt = cur_refcnt + 1; | 293 | | #else | 294 | | if (_Py_IsImmortal(op)) { | 295 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 296 | | return; | 297 | | } | 298 | | op->ob_refcnt++; | 299 | | #endif | 300 | 20 | _Py_INCREF_STAT_INC(); | 301 | | #ifdef Py_REF_DEBUG | 302 | | // Don't count the incref if the object is immortal. | 303 | | if (!_Py_IsImmortal(op)) { | 304 | | _Py_INCREF_IncRefTotal(); | 305 | | } | 306 | | #endif | 307 | 20 | #endif | 308 | 20 | } |
Unexecuted instantiation: string_tokenizer.c:Py_INCREF Unexecuted instantiation: utf8_tokenizer.c:Py_INCREF Unexecuted instantiation: getcompiler.c:Py_INCREF Unexecuted instantiation: mystrtoul.c:Py_INCREF Unexecuted instantiation: token.c:Py_INCREF Unexecuted instantiation: action_helpers.c:Py_INCREF Unexecuted instantiation: string_parser.c:Py_INCREF |
309 | | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000 |
310 | 17.9G | # define Py_INCREF(op) Py_INCREF(_PyObject_CAST(op)) |
311 | | #endif |
312 | | |
313 | | #if !defined(Py_LIMITED_API) |
314 | | #if defined(Py_GIL_DISABLED) |
315 | | // Implements Py_DECREF on objects not owned by the current thread. |
316 | | PyAPI_FUNC(void) _Py_DecRefShared(PyObject *); |
317 | | PyAPI_FUNC(void) _Py_DecRefSharedDebug(PyObject *, const char *, int); |
318 | | |
319 | | // Called from Py_DECREF by the owning thread when the local refcount reaches |
320 | | // zero. The call will deallocate the object if the shared refcount is also |
321 | | // zero. Otherwise, the thread gives up ownership and merges the reference |
322 | | // count fields. |
323 | | PyAPI_FUNC(void) _Py_MergeZeroLocalRefcount(PyObject *); |
324 | | #endif // Py_GIL_DISABLED |
325 | | #endif // Py_LIMITED_API |
326 | | |
327 | | #if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \ |
328 | | || defined(_Py_OPAQUE_PYOBJECT) |
329 | | // Stable ABI implements Py_DECREF() as a function call on limited C API |
330 | | // version 3.12 and newer, abi3t, and on Python built in debug mode. |
331 | | // _Py_DecRef() was added to Python 3.10.0a7, use Py_DecRef() on older versions. |
332 | | // Py_DecRef() accepts NULL whereas _Py_DecRef() doesn't. |
333 | 9.90k | static inline void Py_DECREF(PyObject *op) { |
334 | 9.90k | # if Py_LIMITED_API+0 >= 0x030a00A7 |
335 | 9.90k | _Py_DecRef(op); |
336 | | # else |
337 | | Py_DecRef(op); |
338 | | # endif |
339 | 9.90k | } Line | Count | Source | 333 | 9.90k | static inline void Py_DECREF(PyObject *op) { | 334 | 9.90k | # if Py_LIMITED_API+0 >= 0x030a00A7 | 335 | 9.90k | _Py_DecRef(op); | 336 | | # else | 337 | | Py_DecRef(op); | 338 | | # endif | 339 | 9.90k | } |
Unexecuted instantiation: _stat.c:Py_DECREF |
340 | 9.90k | #define Py_DECREF(op) Py_DECREF(_PyObject_CAST(op)) |
341 | | |
342 | | #elif defined(Py_GIL_DISABLED) && defined(Py_REF_DEBUG) |
343 | | static inline void Py_DECREF(const char *filename, int lineno, PyObject *op) |
344 | | { |
345 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); |
346 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { |
347 | | _Py_DECREF_IMMORTAL_STAT_INC(); |
348 | | return; |
349 | | } |
350 | | _Py_DECREF_STAT_INC(); |
351 | | _Py_DECREF_DecRefTotal(); |
352 | | if (_Py_IsOwnedByCurrentThread(op)) { |
353 | | if (local == 0) { |
354 | | _Py_NegativeRefcount(filename, lineno, op); |
355 | | } |
356 | | local--; |
357 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, local); |
358 | | if (local == 0) { |
359 | | _Py_MergeZeroLocalRefcount(op); |
360 | | } |
361 | | } |
362 | | else { |
363 | | _Py_DecRefSharedDebug(op, filename, lineno); |
364 | | } |
365 | | } |
366 | | #define Py_DECREF(op) Py_DECREF(__FILE__, __LINE__, _PyObject_CAST(op)) |
367 | | |
368 | | #elif defined(Py_GIL_DISABLED) |
369 | | static inline void Py_DECREF(PyObject *op) |
370 | | { |
371 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); |
372 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { |
373 | | _Py_DECREF_IMMORTAL_STAT_INC(); |
374 | | return; |
375 | | } |
376 | | _Py_DECREF_STAT_INC(); |
377 | | if (_Py_IsOwnedByCurrentThread(op)) { |
378 | | local--; |
379 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, local); |
380 | | if (local == 0) { |
381 | | _Py_MergeZeroLocalRefcount(op); |
382 | | } |
383 | | } |
384 | | else { |
385 | | _Py_DecRefShared(op); |
386 | | } |
387 | | } |
388 | | #define Py_DECREF(op) Py_DECREF(_PyObject_CAST(op)) |
389 | | |
390 | | #elif defined(Py_REF_DEBUG) |
391 | | |
392 | | static inline void Py_DECREF(const char *filename, int lineno, PyObject *op) |
393 | | { |
394 | | #if SIZEOF_VOID_P > 4 |
395 | | /* If an object has been freed, it will have a negative full refcnt |
396 | | * If it has not it been freed, will have a very large refcnt */ |
397 | | if (op->ob_refcnt_full <= 0 || op->ob_refcnt > (((uint32_t)-1) - (1<<20))) { |
398 | | #else |
399 | | if (op->ob_refcnt <= 0) { |
400 | | #endif |
401 | | _Py_NegativeRefcount(filename, lineno, op); |
402 | | } |
403 | | if (_Py_IsImmortal(op)) { |
404 | | _Py_DECREF_IMMORTAL_STAT_INC(); |
405 | | return; |
406 | | } |
407 | | _Py_DECREF_STAT_INC(); |
408 | | _Py_DECREF_DecRefTotal(); |
409 | | if (--op->ob_refcnt == 0) { |
410 | | _Py_Dealloc(op); |
411 | | } |
412 | | } |
413 | | #define Py_DECREF(op) Py_DECREF(__FILE__, __LINE__, _PyObject_CAST(op)) |
414 | | |
415 | | #else |
416 | | |
417 | | static inline Py_ALWAYS_INLINE void Py_DECREF(PyObject *op) |
418 | 18.3G | { |
419 | | // Non-limited C API and limited C API for Python 3.9 and older access |
420 | | // directly PyObject.ob_refcnt. |
421 | 18.3G | if (_Py_IsImmortal(op)) { |
422 | 9.53G | _Py_DECREF_IMMORTAL_STAT_INC(); |
423 | 9.53G | return; |
424 | 9.53G | } |
425 | 8.85G | _Py_DECREF_STAT_INC(); |
426 | 8.85G | if (--op->ob_refcnt == 0) { |
427 | 1.21G | _Py_Dealloc(op); |
428 | 1.21G | } |
429 | 8.85G | } Line | Count | Source | 418 | 19.7M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 19.7M | if (_Py_IsImmortal(op)) { | 422 | 19.2M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 19.2M | return; | 424 | 19.2M | } | 425 | 492k | _Py_DECREF_STAT_INC(); | 426 | 492k | if (--op->ob_refcnt == 0) { | 427 | 171k | _Py_Dealloc(op); | 428 | 171k | } | 429 | 492k | } |
Line | Count | Source | 418 | 218M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 218M | if (_Py_IsImmortal(op)) { | 422 | 80.9M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 80.9M | return; | 424 | 80.9M | } | 425 | 137M | _Py_DECREF_STAT_INC(); | 426 | 137M | if (--op->ob_refcnt == 0) { | 427 | 102M | _Py_Dealloc(op); | 428 | 102M | } | 429 | 137M | } |
Line | Count | Source | 418 | 209M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 209M | if (_Py_IsImmortal(op)) { | 422 | 51.4M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 51.4M | return; | 424 | 51.4M | } | 425 | 158M | _Py_DECREF_STAT_INC(); | 426 | 158M | if (--op->ob_refcnt == 0) { | 427 | 94.6M | _Py_Dealloc(op); | 428 | 94.6M | } | 429 | 158M | } |
genericaliasobject.c:Py_DECREF Line | Count | Source | 418 | 548 | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 548 | if (_Py_IsImmortal(op)) { | 422 | 210 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 210 | return; | 424 | 210 | } | 425 | 338 | _Py_DECREF_STAT_INC(); | 426 | 338 | if (--op->ob_refcnt == 0) { | 427 | 254 | _Py_Dealloc(op); | 428 | 254 | } | 429 | 338 | } |
Line | Count | Source | 418 | 504k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 504k | if (_Py_IsImmortal(op)) { | 422 | 55.9k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 55.9k | return; | 424 | 55.9k | } | 425 | 448k | _Py_DECREF_STAT_INC(); | 426 | 448k | if (--op->ob_refcnt == 0) { | 427 | 4 | _Py_Dealloc(op); | 428 | 4 | } | 429 | 448k | } |
Line | Count | Source | 418 | 1.61G | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 1.61G | if (_Py_IsImmortal(op)) { | 422 | 429M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 429M | return; | 424 | 429M | } | 425 | 1.18G | _Py_DECREF_STAT_INC(); | 426 | 1.18G | if (--op->ob_refcnt == 0) { | 427 | 246M | _Py_Dealloc(op); | 428 | 246M | } | 429 | 1.18G | } |
Line | Count | Source | 418 | 38.7M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 38.7M | if (_Py_IsImmortal(op)) { | 422 | 25.2M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 25.2M | return; | 424 | 25.2M | } | 425 | 13.4M | _Py_DECREF_STAT_INC(); | 426 | 13.4M | if (--op->ob_refcnt == 0) { | 427 | 3.84M | _Py_Dealloc(op); | 428 | 3.84M | } | 429 | 13.4M | } |
Line | Count | Source | 418 | 678M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 678M | if (_Py_IsImmortal(op)) { | 422 | 299M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 299M | return; | 424 | 299M | } | 425 | 378M | _Py_DECREF_STAT_INC(); | 426 | 378M | if (--op->ob_refcnt == 0) { | 427 | 98.3M | _Py_Dealloc(op); | 428 | 98.3M | } | 429 | 378M | } |
Line | Count | Source | 418 | 2.91M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 2.91M | if (_Py_IsImmortal(op)) { | 422 | 120k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 120k | return; | 424 | 120k | } | 425 | 2.79M | _Py_DECREF_STAT_INC(); | 426 | 2.79M | if (--op->ob_refcnt == 0) { | 427 | 1.31M | _Py_Dealloc(op); | 428 | 1.31M | } | 429 | 2.79M | } |
Line | Count | Source | 418 | 4.55M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 4.55M | if (_Py_IsImmortal(op)) { | 422 | 4.51M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 4.51M | return; | 424 | 4.51M | } | 425 | 36.1k | _Py_DECREF_STAT_INC(); | 426 | 36.1k | if (--op->ob_refcnt == 0) { | 427 | 4.03k | _Py_Dealloc(op); | 428 | 4.03k | } | 429 | 36.1k | } |
Line | Count | Source | 418 | 799M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 799M | if (_Py_IsImmortal(op)) { | 422 | 553M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 553M | return; | 424 | 553M | } | 425 | 245M | _Py_DECREF_STAT_INC(); | 426 | 245M | if (--op->ob_refcnt == 0) { | 427 | 12.8k | _Py_Dealloc(op); | 428 | 12.8k | } | 429 | 245M | } |
Unexecuted instantiation: obmalloc.c:Py_DECREF Unexecuted instantiation: picklebufobject.c:Py_DECREF Line | Count | Source | 418 | 48.8M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 48.8M | if (_Py_IsImmortal(op)) { | 422 | 48.5M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 48.5M | return; | 424 | 48.5M | } | 425 | 364k | _Py_DECREF_STAT_INC(); | 426 | 364k | if (--op->ob_refcnt == 0) { | 427 | 223k | _Py_Dealloc(op); | 428 | 223k | } | 429 | 364k | } |
Line | Count | Source | 418 | 14.6M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 14.6M | if (_Py_IsImmortal(op)) { | 422 | 4.19M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 4.19M | return; | 424 | 4.19M | } | 425 | 10.4M | _Py_DECREF_STAT_INC(); | 426 | 10.4M | if (--op->ob_refcnt == 0) { | 427 | 2.50M | _Py_Dealloc(op); | 428 | 2.50M | } | 429 | 10.4M | } |
Line | Count | Source | 418 | 176M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 176M | if (_Py_IsImmortal(op)) { | 422 | 102M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 102M | return; | 424 | 102M | } | 425 | 73.9M | _Py_DECREF_STAT_INC(); | 426 | 73.9M | if (--op->ob_refcnt == 0) { | 427 | 28.1k | _Py_Dealloc(op); | 428 | 28.1k | } | 429 | 73.9M | } |
Line | Count | Source | 418 | 9.97M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 9.97M | if (_Py_IsImmortal(op)) { | 422 | 3.02M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 3.02M | return; | 424 | 3.02M | } | 425 | 6.94M | _Py_DECREF_STAT_INC(); | 426 | 6.94M | if (--op->ob_refcnt == 0) { | 427 | 6.39M | _Py_Dealloc(op); | 428 | 6.39M | } | 429 | 6.94M | } |
templateobject.c:Py_DECREF Line | Count | Source | 418 | 16 | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 16 | if (_Py_IsImmortal(op)) { | 422 | 8 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 8 | return; | 424 | 8 | } | 425 | 8 | _Py_DECREF_STAT_INC(); | 426 | 8 | if (--op->ob_refcnt == 0) { | 427 | 0 | _Py_Dealloc(op); | 428 | 0 | } | 429 | 8 | } |
Line | Count | Source | 418 | 9.50G | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 9.50G | if (_Py_IsImmortal(op)) { | 422 | 4.89G | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 4.89G | return; | 424 | 4.89G | } | 425 | 4.61G | _Py_DECREF_STAT_INC(); | 426 | 4.61G | if (--op->ob_refcnt == 0) { | 427 | 127M | _Py_Dealloc(op); | 428 | 127M | } | 429 | 4.61G | } |
Line | Count | Source | 418 | 417M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 417M | if (_Py_IsImmortal(op)) { | 422 | 105M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 105M | return; | 424 | 105M | } | 425 | 311M | _Py_DECREF_STAT_INC(); | 426 | 311M | if (--op->ob_refcnt == 0) { | 427 | 46.2M | _Py_Dealloc(op); | 428 | 46.2M | } | 429 | 311M | } |
typevarobject.c:Py_DECREF Line | Count | Source | 418 | 267k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 267k | if (_Py_IsImmortal(op)) { | 422 | 548 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 548 | return; | 424 | 548 | } | 425 | 266k | _Py_DECREF_STAT_INC(); | 426 | 266k | if (--op->ob_refcnt == 0) { | 427 | 1.04k | _Py_Dealloc(op); | 428 | 1.04k | } | 429 | 266k | } |
unicode_format.c:Py_DECREF Line | Count | Source | 418 | 47.2M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 47.2M | if (_Py_IsImmortal(op)) { | 422 | 8.84M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 8.84M | return; | 424 | 8.84M | } | 425 | 38.3M | _Py_DECREF_STAT_INC(); | 426 | 38.3M | if (--op->ob_refcnt == 0) { | 427 | 15.0M | _Py_Dealloc(op); | 428 | 15.0M | } | 429 | 38.3M | } |
unicode_formatter.c:Py_DECREF Line | Count | Source | 418 | 768 | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 768 | if (_Py_IsImmortal(op)) { | 422 | 576 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 576 | return; | 424 | 576 | } | 425 | 192 | _Py_DECREF_STAT_INC(); | 426 | 192 | if (--op->ob_refcnt == 0) { | 427 | 192 | _Py_Dealloc(op); | 428 | 192 | } | 429 | 192 | } |
unicode_writer.c:Py_DECREF Line | Count | Source | 418 | 30.1M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 30.1M | if (_Py_IsImmortal(op)) { | 422 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 0 | return; | 424 | 0 | } | 425 | 30.1M | _Py_DECREF_STAT_INC(); | 426 | 30.1M | if (--op->ob_refcnt == 0) { | 427 | 30.1M | _Py_Dealloc(op); | 428 | 30.1M | } | 429 | 30.1M | } |
Unexecuted instantiation: unicodectype.c:Py_DECREF unicodeobject.c:Py_DECREF Line | Count | Source | 418 | 166M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 166M | if (_Py_IsImmortal(op)) { | 422 | 89.1M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 89.1M | return; | 424 | 89.1M | } | 425 | 77.6M | _Py_DECREF_STAT_INC(); | 426 | 77.6M | if (--op->ob_refcnt == 0) { | 427 | 15.6M | _Py_Dealloc(op); | 428 | 15.6M | } | 429 | 77.6M | } |
Line | Count | Source | 418 | 4.44k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 4.44k | if (_Py_IsImmortal(op)) { | 422 | 584 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 584 | return; | 424 | 584 | } | 425 | 3.86k | _Py_DECREF_STAT_INC(); | 426 | 3.86k | if (--op->ob_refcnt == 0) { | 427 | 3.27k | _Py_Dealloc(op); | 428 | 3.27k | } | 429 | 3.86k | } |
weakrefobject.c:Py_DECREF Line | Count | Source | 418 | 2.69M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 2.69M | if (_Py_IsImmortal(op)) { | 422 | 149k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 149k | return; | 424 | 149k | } | 425 | 2.54M | _Py_DECREF_STAT_INC(); | 426 | 2.54M | if (--op->ob_refcnt == 0) { | 427 | 28.1k | _Py_Dealloc(op); | 428 | 28.1k | } | 429 | 2.54M | } |
Line | Count | Source | 418 | 54.9M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 54.9M | if (_Py_IsImmortal(op)) { | 422 | 5.77M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 5.77M | return; | 424 | 5.77M | } | 425 | 49.1M | _Py_DECREF_STAT_INC(); | 426 | 49.1M | if (--op->ob_refcnt == 0) { | 427 | 2.22M | _Py_Dealloc(op); | 428 | 2.22M | } | 429 | 49.1M | } |
Line | Count | Source | 418 | 2.19G | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 2.19G | if (_Py_IsImmortal(op)) { | 422 | 2.00G | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 2.00G | return; | 424 | 2.00G | } | 425 | 192M | _Py_DECREF_STAT_INC(); | 426 | 192M | if (--op->ob_refcnt == 0) { | 427 | 132M | _Py_Dealloc(op); | 428 | 132M | } | 429 | 192M | } |
Line | Count | Source | 418 | 126k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 126k | if (_Py_IsImmortal(op)) { | 422 | 706 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 706 | return; | 424 | 706 | } | 425 | 125k | _Py_DECREF_STAT_INC(); | 426 | 125k | if (--op->ob_refcnt == 0) { | 427 | 1.05k | _Py_Dealloc(op); | 428 | 1.05k | } | 429 | 125k | } |
Line | Count | Source | 418 | 10.4M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 10.4M | if (_Py_IsImmortal(op)) { | 422 | 3.73M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 3.73M | return; | 424 | 3.73M | } | 425 | 6.75M | _Py_DECREF_STAT_INC(); | 426 | 6.75M | if (--op->ob_refcnt == 0) { | 427 | 3.25M | _Py_Dealloc(op); | 428 | 3.25M | } | 429 | 6.75M | } |
Line | Count | Source | 418 | 93.1k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 93.1k | if (_Py_IsImmortal(op)) { | 422 | 82.2k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 82.2k | return; | 424 | 82.2k | } | 425 | 10.8k | _Py_DECREF_STAT_INC(); | 426 | 10.8k | if (--op->ob_refcnt == 0) { | 427 | 366 | _Py_Dealloc(op); | 428 | 366 | } | 429 | 10.8k | } |
Line | Count | Source | 418 | 427k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 427k | if (_Py_IsImmortal(op)) { | 422 | 217k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 217k | return; | 424 | 217k | } | 425 | 209k | _Py_DECREF_STAT_INC(); | 426 | 209k | if (--op->ob_refcnt == 0) { | 427 | 78.2k | _Py_Dealloc(op); | 428 | 78.2k | } | 429 | 209k | } |
Line | Count | Source | 418 | 72 | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 72 | if (_Py_IsImmortal(op)) { | 422 | 36 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 36 | return; | 424 | 36 | } | 425 | 36 | _Py_DECREF_STAT_INC(); | 426 | 36 | if (--op->ob_refcnt == 0) { | 427 | 0 | _Py_Dealloc(op); | 428 | 0 | } | 429 | 36 | } |
Line | Count | Source | 418 | 94.9M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 94.9M | if (_Py_IsImmortal(op)) { | 422 | 38.5M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 38.5M | return; | 424 | 38.5M | } | 425 | 56.4M | _Py_DECREF_STAT_INC(); | 426 | 56.4M | if (--op->ob_refcnt == 0) { | 427 | 19.1M | _Py_Dealloc(op); | 428 | 19.1M | } | 429 | 56.4M | } |
Line | Count | Source | 418 | 45.7k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 45.7k | if (_Py_IsImmortal(op)) { | 422 | 30.5k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 30.5k | return; | 424 | 30.5k | } | 425 | 15.2k | _Py_DECREF_STAT_INC(); | 426 | 15.2k | if (--op->ob_refcnt == 0) { | 427 | 217 | _Py_Dealloc(op); | 428 | 217 | } | 429 | 15.2k | } |
Line | Count | Source | 418 | 60.2M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 60.2M | if (_Py_IsImmortal(op)) { | 422 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 0 | return; | 424 | 0 | } | 425 | 60.2M | _Py_DECREF_STAT_INC(); | 426 | 60.2M | if (--op->ob_refcnt == 0) { | 427 | 16.6M | _Py_Dealloc(op); | 428 | 16.6M | } | 429 | 60.2M | } |
Unexecuted instantiation: future.c:Py_DECREF Line | Count | Source | 418 | 4.05M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 4.05M | if (_Py_IsImmortal(op)) { | 422 | 47.4k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 47.4k | return; | 424 | 47.4k | } | 425 | 4.00M | _Py_DECREF_STAT_INC(); | 426 | 4.00M | if (--op->ob_refcnt == 0) { | 427 | 916k | _Py_Dealloc(op); | 428 | 916k | } | 429 | 4.00M | } |
Unexecuted instantiation: gc_gil.c:Py_DECREF Line | Count | Source | 418 | 9.29M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 9.29M | if (_Py_IsImmortal(op)) { | 422 | 8.47M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 8.47M | return; | 424 | 8.47M | } | 425 | 821k | _Py_DECREF_STAT_INC(); | 426 | 821k | if (--op->ob_refcnt == 0) { | 427 | 0 | _Py_Dealloc(op); | 428 | 0 | } | 429 | 821k | } |
Unexecuted instantiation: ceval_gil.c:Py_DECREF Unexecuted instantiation: hamt.c:Py_DECREF Unexecuted instantiation: hashtable.c:Py_DECREF Line | Count | Source | 418 | 28.7M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 28.7M | if (_Py_IsImmortal(op)) { | 422 | 3.98M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 3.98M | return; | 424 | 3.98M | } | 425 | 24.8M | _Py_DECREF_STAT_INC(); | 426 | 24.8M | if (--op->ob_refcnt == 0) { | 427 | 295k | _Py_Dealloc(op); | 428 | 295k | } | 429 | 24.8M | } |
Line | Count | Source | 418 | 3.17k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 3.17k | if (_Py_IsImmortal(op)) { | 422 | 1.25k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 1.25k | return; | 424 | 1.25k | } | 425 | 1.91k | _Py_DECREF_STAT_INC(); | 426 | 1.91k | if (--op->ob_refcnt == 0) { | 427 | 1.17k | _Py_Dealloc(op); | 428 | 1.17k | } | 429 | 1.91k | } |
Line | Count | Source | 418 | 5.11k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 5.11k | if (_Py_IsImmortal(op)) { | 422 | 4.14k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 4.14k | return; | 424 | 4.14k | } | 425 | 972 | _Py_DECREF_STAT_INC(); | 426 | 972 | if (--op->ob_refcnt == 0) { | 427 | 0 | _Py_Dealloc(op); | 428 | 0 | } | 429 | 972 | } |
instrumentation.c:Py_DECREF Line | Count | Source | 418 | 864 | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 864 | if (_Py_IsImmortal(op)) { | 422 | 540 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 540 | return; | 424 | 540 | } | 425 | 324 | _Py_DECREF_STAT_INC(); | 426 | 324 | if (--op->ob_refcnt == 0) { | 427 | 0 | _Py_Dealloc(op); | 428 | 0 | } | 429 | 324 | } |
Unexecuted instantiation: instruction_sequence.c:Py_DECREF Line | Count | Source | 418 | 73.4k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 73.4k | if (_Py_IsImmortal(op)) { | 422 | 41.7k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 41.7k | return; | 424 | 41.7k | } | 425 | 31.7k | _Py_DECREF_STAT_INC(); | 426 | 31.7k | if (--op->ob_refcnt == 0) { | 427 | 327 | _Py_Dealloc(op); | 428 | 327 | } | 429 | 31.7k | } |
Unexecuted instantiation: legacy_tracing.c:Py_DECREF Unexecuted instantiation: lock.c:Py_DECREF Line | Count | Source | 418 | 1.75M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 1.75M | if (_Py_IsImmortal(op)) { | 422 | 725k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 725k | return; | 424 | 725k | } | 425 | 1.03M | _Py_DECREF_STAT_INC(); | 426 | 1.03M | if (--op->ob_refcnt == 0) { | 427 | 6.60k | _Py_Dealloc(op); | 428 | 6.60k | } | 429 | 1.03M | } |
Line | Count | Source | 418 | 102k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 102k | if (_Py_IsImmortal(op)) { | 422 | 48.9k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 48.9k | return; | 424 | 48.9k | } | 425 | 53.3k | _Py_DECREF_STAT_INC(); | 426 | 53.3k | if (--op->ob_refcnt == 0) { | 427 | 0 | _Py_Dealloc(op); | 428 | 0 | } | 429 | 53.3k | } |
Unexecuted instantiation: mysnprintf.c:Py_DECREF Unexecuted instantiation: parking_lot.c:Py_DECREF Unexecuted instantiation: preconfig.c:Py_DECREF Line | Count | Source | 418 | 14.2M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 14.2M | if (_Py_IsImmortal(op)) { | 422 | 13.5M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 13.5M | return; | 424 | 13.5M | } | 425 | 698k | _Py_DECREF_STAT_INC(); | 426 | 698k | if (--op->ob_refcnt == 0) { | 427 | 101k | _Py_Dealloc(op); | 428 | 101k | } | 429 | 698k | } |
Unexecuted instantiation: pyctype.c:Py_DECREF Unexecuted instantiation: pyhash.c:Py_DECREF Line | Count | Source | 418 | 1.29k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 1.29k | if (_Py_IsImmortal(op)) { | 422 | 252 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 252 | return; | 424 | 252 | } | 425 | 1.04k | _Py_DECREF_STAT_INC(); | 426 | 1.04k | if (--op->ob_refcnt == 0) { | 427 | 108 | _Py_Dealloc(op); | 428 | 108 | } | 429 | 1.04k | } |
Unexecuted instantiation: pymath.c:Py_DECREF Unexecuted instantiation: pystate.c:Py_DECREF Line | Count | Source | 418 | 2.11k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 2.11k | if (_Py_IsImmortal(op)) { | 422 | 504 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 504 | return; | 424 | 504 | } | 425 | 1.61k | _Py_DECREF_STAT_INC(); | 426 | 1.61k | if (--op->ob_refcnt == 0) { | 427 | 657 | _Py_Dealloc(op); | 428 | 657 | } | 429 | 1.61k | } |
Unexecuted instantiation: pytime.c:Py_DECREF Unexecuted instantiation: qsbr.c:Py_DECREF Unexecuted instantiation: bootstrap_hash.c:Py_DECREF Line | Count | Source | 418 | 2.19M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 2.19M | if (_Py_IsImmortal(op)) { | 422 | 1.11M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 1.11M | return; | 424 | 1.11M | } | 425 | 1.08M | _Py_DECREF_STAT_INC(); | 426 | 1.08M | if (--op->ob_refcnt == 0) { | 427 | 0 | _Py_Dealloc(op); | 428 | 0 | } | 429 | 1.08M | } |
Line | Count | Source | 418 | 18.1k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 18.1k | if (_Py_IsImmortal(op)) { | 422 | 9.58k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 9.58k | return; | 424 | 9.58k | } | 425 | 8.53k | _Py_DECREF_STAT_INC(); | 426 | 8.53k | if (--op->ob_refcnt == 0) { | 427 | 78 | _Py_Dealloc(op); | 428 | 78 | } | 429 | 8.53k | } |
Line | Count | Source | 418 | 539k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 539k | if (_Py_IsImmortal(op)) { | 422 | 232k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 232k | return; | 424 | 232k | } | 425 | 307k | _Py_DECREF_STAT_INC(); | 426 | 307k | if (--op->ob_refcnt == 0) { | 427 | 160k | _Py_Dealloc(op); | 428 | 160k | } | 429 | 307k | } |
Line | Count | Source | 418 | 4.86M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 4.86M | if (_Py_IsImmortal(op)) { | 422 | 1.14M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 1.14M | return; | 424 | 1.14M | } | 425 | 3.72M | _Py_DECREF_STAT_INC(); | 426 | 3.72M | if (--op->ob_refcnt == 0) { | 427 | 2.78M | _Py_Dealloc(op); | 428 | 2.78M | } | 429 | 3.72M | } |
Unexecuted instantiation: thread.c:Py_DECREF Line | Count | Source | 418 | 188M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 188M | if (_Py_IsImmortal(op)) { | 422 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 0 | return; | 424 | 0 | } | 425 | 188M | _Py_DECREF_STAT_INC(); | 426 | 188M | if (--op->ob_refcnt == 0) { | 427 | 58.0M | _Py_Dealloc(op); | 428 | 58.0M | } | 429 | 188M | } |
Unexecuted instantiation: tracemalloc.c:Py_DECREF Unexecuted instantiation: getopt.c:Py_DECREF Unexecuted instantiation: pystrcmp.c:Py_DECREF Unexecuted instantiation: pystrtod.c:Py_DECREF Unexecuted instantiation: pystrhex.c:Py_DECREF Unexecuted instantiation: dtoa.c:Py_DECREF Line | Count | Source | 418 | 90.6k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 90.6k | if (_Py_IsImmortal(op)) { | 422 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 0 | return; | 424 | 0 | } | 425 | 90.6k | _Py_DECREF_STAT_INC(); | 426 | 90.6k | if (--op->ob_refcnt == 0) { | 427 | 90.6k | _Py_Dealloc(op); | 428 | 90.6k | } | 429 | 90.6k | } |
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 dynload_shlib.c:Py_DECREF Line | Count | Source | 418 | 12 | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 12 | if (_Py_IsImmortal(op)) { | 422 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 0 | return; | 424 | 0 | } | 425 | 12 | _Py_DECREF_STAT_INC(); | 426 | 12 | if (--op->ob_refcnt == 0) { | 427 | 0 | _Py_Dealloc(op); | 428 | 0 | } | 429 | 12 | } |
Unexecuted instantiation: config.c:Py_DECREF Unexecuted instantiation: gcmodule.c:Py_DECREF _asynciomodule.c:Py_DECREF Line | Count | Source | 418 | 32 | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 32 | if (_Py_IsImmortal(op)) { | 422 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 0 | return; | 424 | 0 | } | 425 | 32 | _Py_DECREF_STAT_INC(); | 426 | 32 | if (--op->ob_refcnt == 0) { | 427 | 0 | _Py_Dealloc(op); | 428 | 0 | } | 429 | 32 | } |
Line | Count | Source | 418 | 12 | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 12 | if (_Py_IsImmortal(op)) { | 422 | 6 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 6 | return; | 424 | 6 | } | 425 | 6 | _Py_DECREF_STAT_INC(); | 426 | 6 | if (--op->ob_refcnt == 0) { | 427 | 0 | _Py_Dealloc(op); | 428 | 0 | } | 429 | 6 | } |
Unexecuted instantiation: faulthandler.c:Py_DECREF Line | Count | Source | 418 | 5.33M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 5.33M | if (_Py_IsImmortal(op)) { | 422 | 1.90M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 1.90M | return; | 424 | 1.90M | } | 425 | 3.43M | _Py_DECREF_STAT_INC(); | 426 | 3.43M | if (--op->ob_refcnt == 0) { | 427 | 1.49M | _Py_Dealloc(op); | 428 | 1.49M | } | 429 | 3.43M | } |
Line | Count | Source | 418 | 72 | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 72 | if (_Py_IsImmortal(op)) { | 422 | 36 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 36 | return; | 424 | 36 | } | 425 | 36 | _Py_DECREF_STAT_INC(); | 426 | 36 | if (--op->ob_refcnt == 0) { | 427 | 0 | _Py_Dealloc(op); | 428 | 0 | } | 429 | 36 | } |
Unexecuted instantiation: _tracemalloc.c:Py_DECREF Unexecuted instantiation: _suggestions.c:Py_DECREF _datetimemodule.c:Py_DECREF Line | Count | Source | 418 | 132k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 132k | if (_Py_IsImmortal(op)) { | 422 | 20.5k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 20.5k | return; | 424 | 20.5k | } | 425 | 111k | _Py_DECREF_STAT_INC(); | 426 | 111k | if (--op->ob_refcnt == 0) { | 427 | 56.2k | _Py_Dealloc(op); | 428 | 56.2k | } | 429 | 111k | } |
Unexecuted instantiation: _codecsmodule.c:Py_DECREF _collectionsmodule.c:Py_DECREF Line | Count | Source | 418 | 191k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 191k | if (_Py_IsImmortal(op)) { | 422 | 93.5k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 93.5k | return; | 424 | 93.5k | } | 425 | 97.9k | _Py_DECREF_STAT_INC(); | 426 | 97.9k | if (--op->ob_refcnt == 0) { | 427 | 41.2k | _Py_Dealloc(op); | 428 | 41.2k | } | 429 | 97.9k | } |
Line | Count | Source | 418 | 2.61M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 2.61M | if (_Py_IsImmortal(op)) { | 422 | 2.48M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 2.48M | return; | 424 | 2.48M | } | 425 | 130k | _Py_DECREF_STAT_INC(); | 426 | 130k | if (--op->ob_refcnt == 0) { | 427 | 63.7k | _Py_Dealloc(op); | 428 | 63.7k | } | 429 | 130k | } |
Line | Count | Source | 418 | 2.82M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 2.82M | if (_Py_IsImmortal(op)) { | 422 | 2.72M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 2.72M | return; | 424 | 2.72M | } | 425 | 108k | _Py_DECREF_STAT_INC(); | 426 | 108k | if (--op->ob_refcnt == 0) { | 427 | 54.3k | _Py_Dealloc(op); | 428 | 54.3k | } | 429 | 108k | } |
Line | Count | Source | 418 | 95.1k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 95.1k | if (_Py_IsImmortal(op)) { | 422 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 0 | return; | 424 | 0 | } | 425 | 95.1k | _Py_DECREF_STAT_INC(); | 426 | 95.1k | if (--op->ob_refcnt == 0) { | 427 | 63.3k | _Py_Dealloc(op); | 428 | 63.3k | } | 429 | 95.1k | } |
Line | Count | Source | 418 | 365k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 365k | if (_Py_IsImmortal(op)) { | 422 | 145k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 145k | return; | 424 | 145k | } | 425 | 219k | _Py_DECREF_STAT_INC(); | 426 | 219k | if (--op->ob_refcnt == 0) { | 427 | 14.7k | _Py_Dealloc(op); | 428 | 14.7k | } | 429 | 219k | } |
Line | Count | Source | 418 | 10.2M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 10.2M | if (_Py_IsImmortal(op)) { | 422 | 9.79M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 9.79M | return; | 424 | 9.79M | } | 425 | 470k | _Py_DECREF_STAT_INC(); | 426 | 470k | if (--op->ob_refcnt == 0) { | 427 | 385k | _Py_Dealloc(op); | 428 | 385k | } | 429 | 470k | } |
Line | Count | Source | 418 | 1.05M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 1.05M | if (_Py_IsImmortal(op)) { | 422 | 279k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 279k | return; | 424 | 279k | } | 425 | 778k | _Py_DECREF_STAT_INC(); | 426 | 778k | if (--op->ob_refcnt == 0) { | 427 | 247k | _Py_Dealloc(op); | 428 | 247k | } | 429 | 778k | } |
Line | Count | Source | 418 | 308k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 308k | if (_Py_IsImmortal(op)) { | 422 | 157k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 157k | return; | 424 | 157k | } | 425 | 150k | _Py_DECREF_STAT_INC(); | 426 | 150k | if (--op->ob_refcnt == 0) { | 427 | 32.2k | _Py_Dealloc(op); | 428 | 32.2k | } | 429 | 150k | } |
itertoolsmodule.c:Py_DECREF Line | Count | Source | 418 | 97.2k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 97.2k | if (_Py_IsImmortal(op)) { | 422 | 5.66k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 5.66k | return; | 424 | 5.66k | } | 425 | 91.6k | _Py_DECREF_STAT_INC(); | 426 | 91.6k | if (--op->ob_refcnt == 0) { | 427 | 31.0k | _Py_Dealloc(op); | 428 | 31.0k | } | 429 | 91.6k | } |
Line | Count | Source | 418 | 423M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 423M | if (_Py_IsImmortal(op)) { | 422 | 156M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 156M | return; | 424 | 156M | } | 425 | 266M | _Py_DECREF_STAT_INC(); | 426 | 266M | if (--op->ob_refcnt == 0) { | 427 | 18.2M | _Py_Dealloc(op); | 428 | 18.2M | } | 429 | 266M | } |
Unexecuted instantiation: _sysconfig.c:Py_DECREF _threadmodule.c:Py_DECREF Line | Count | Source | 418 | 13.9M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 13.9M | if (_Py_IsImmortal(op)) { | 422 | 4 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 4 | return; | 424 | 4 | } | 425 | 13.9M | _Py_DECREF_STAT_INC(); | 426 | 13.9M | if (--op->ob_refcnt == 0) { | 427 | 8 | _Py_Dealloc(op); | 428 | 8 | } | 429 | 13.9M | } |
Line | Count | Source | 418 | 192 | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 192 | if (_Py_IsImmortal(op)) { | 422 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 0 | return; | 424 | 0 | } | 425 | 192 | _Py_DECREF_STAT_INC(); | 426 | 192 | if (--op->ob_refcnt == 0) { | 427 | 192 | _Py_Dealloc(op); | 428 | 192 | } | 429 | 192 | } |
Unexecuted instantiation: _typesmodule.c:Py_DECREF Unexecuted instantiation: _typingmodule.c:Py_DECREF Unexecuted instantiation: _weakref.c:Py_DECREF Line | Count | Source | 418 | 472k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 472k | if (_Py_IsImmortal(op)) { | 422 | 122k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 122k | return; | 424 | 122k | } | 425 | 350k | _Py_DECREF_STAT_INC(); | 426 | 350k | if (--op->ob_refcnt == 0) { | 427 | 7.77k | _Py_Dealloc(op); | 428 | 7.77k | } | 429 | 350k | } |
_functoolsmodule.c:Py_DECREF Line | Count | Source | 418 | 1.10M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 1.10M | if (_Py_IsImmortal(op)) { | 422 | 240k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 240k | return; | 424 | 240k | } | 425 | 866k | _Py_DECREF_STAT_INC(); | 426 | 866k | if (--op->ob_refcnt == 0) { | 427 | 466k | _Py_Dealloc(op); | 428 | 466k | } | 429 | 866k | } |
Unexecuted instantiation: _localemodule.c:Py_DECREF Unexecuted instantiation: _opcode.c:Py_DECREF Line | Count | Source | 418 | 571k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 571k | if (_Py_IsImmortal(op)) { | 422 | 285k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 285k | return; | 424 | 285k | } | 425 | 285k | _Py_DECREF_STAT_INC(); | 426 | 285k | if (--op->ob_refcnt == 0) { | 427 | 0 | _Py_Dealloc(op); | 428 | 0 | } | 429 | 285k | } |
Unexecuted instantiation: symtablemodule.c:Py_DECREF Unexecuted instantiation: pwdmodule.c:Py_DECREF Line | Count | Source | 418 | 1.18k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 1.18k | if (_Py_IsImmortal(op)) { | 422 | 432 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 432 | return; | 424 | 432 | } | 425 | 756 | _Py_DECREF_STAT_INC(); | 426 | 756 | if (--op->ob_refcnt == 0) { | 427 | 36 | _Py_Dealloc(op); | 428 | 36 | } | 429 | 756 | } |
Unexecuted instantiation: frozen.c:Py_DECREF Unexecuted instantiation: getbuildinfo.c:Py_DECREF Unexecuted instantiation: peg_api.c:Py_DECREF Unexecuted instantiation: file_tokenizer.c:Py_DECREF Line | Count | Source | 418 | 21.0k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 21.0k | if (_Py_IsImmortal(op)) { | 422 | 688 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 688 | return; | 424 | 688 | } | 425 | 20.3k | _Py_DECREF_STAT_INC(); | 426 | 20.3k | if (--op->ob_refcnt == 0) { | 427 | 14.4k | _Py_Dealloc(op); | 428 | 14.4k | } | 429 | 20.3k | } |
Unexecuted instantiation: myreadline.c:Py_DECREF Line | Count | Source | 418 | 545M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 545M | if (_Py_IsImmortal(op)) { | 422 | 354M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 354M | return; | 424 | 354M | } | 425 | 191M | _Py_DECREF_STAT_INC(); | 426 | 191M | if (--op->ob_refcnt == 0) { | 427 | 4.91M | _Py_Dealloc(op); | 428 | 4.91M | } | 429 | 191M | } |
Unexecuted instantiation: boolobject.c:Py_DECREF Unexecuted instantiation: bytes_methods.c:Py_DECREF bytearrayobject.c:Py_DECREF Line | Count | Source | 418 | 18.6M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 18.6M | if (_Py_IsImmortal(op)) { | 422 | 252k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 252k | return; | 424 | 252k | } | 425 | 18.4M | _Py_DECREF_STAT_INC(); | 426 | 18.4M | if (--op->ob_refcnt == 0) { | 427 | 18.4M | _Py_Dealloc(op); | 428 | 18.4M | } | 429 | 18.4M | } |
Line | Count | Source | 418 | 26 | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 26 | if (_Py_IsImmortal(op)) { | 422 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 0 | return; | 424 | 0 | } | 425 | 26 | _Py_DECREF_STAT_INC(); | 426 | 26 | if (--op->ob_refcnt == 0) { | 427 | 0 | _Py_Dealloc(op); | 428 | 0 | } | 429 | 26 | } |
Line | Count | Source | 418 | 10.0M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 10.0M | if (_Py_IsImmortal(op)) { | 422 | 1.76M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 1.76M | return; | 424 | 1.76M | } | 425 | 8.32M | _Py_DECREF_STAT_INC(); | 426 | 8.32M | if (--op->ob_refcnt == 0) { | 427 | 3.53M | _Py_Dealloc(op); | 428 | 3.53M | } | 429 | 8.32M | } |
Line | Count | Source | 418 | 93.7M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 93.7M | if (_Py_IsImmortal(op)) { | 422 | 160 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 160 | return; | 424 | 160 | } | 425 | 93.7M | _Py_DECREF_STAT_INC(); | 426 | 93.7M | if (--op->ob_refcnt == 0) { | 427 | 5.92k | _Py_Dealloc(op); | 428 | 5.92k | } | 429 | 93.7M | } |
Line | Count | Source | 418 | 933k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 933k | if (_Py_IsImmortal(op)) { | 422 | 415k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 415k | return; | 424 | 415k | } | 425 | 518k | _Py_DECREF_STAT_INC(); | 426 | 518k | if (--op->ob_refcnt == 0) { | 427 | 400k | _Py_Dealloc(op); | 428 | 400k | } | 429 | 518k | } |
Unexecuted instantiation: complexobject.c:Py_DECREF Line | Count | Source | 418 | 72.7M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 72.7M | if (_Py_IsImmortal(op)) { | 422 | 10.5M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 10.5M | return; | 424 | 10.5M | } | 425 | 62.2M | _Py_DECREF_STAT_INC(); | 426 | 62.2M | if (--op->ob_refcnt == 0) { | 427 | 33.4M | _Py_Dealloc(op); | 428 | 33.4M | } | 429 | 62.2M | } |
Line | Count | Source | 418 | 84.7M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 84.7M | if (_Py_IsImmortal(op)) { | 422 | 11.4M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 11.4M | return; | 424 | 11.4M | } | 425 | 73.2M | _Py_DECREF_STAT_INC(); | 426 | 73.2M | if (--op->ob_refcnt == 0) { | 427 | 58.2M | _Py_Dealloc(op); | 428 | 58.2M | } | 429 | 73.2M | } |
Line | Count | Source | 418 | 58.2M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 58.2M | if (_Py_IsImmortal(op)) { | 422 | 58.1M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 58.1M | return; | 424 | 58.1M | } | 425 | 79.0k | _Py_DECREF_STAT_INC(); | 426 | 79.0k | if (--op->ob_refcnt == 0) { | 427 | 0 | _Py_Dealloc(op); | 428 | 0 | } | 429 | 79.0k | } |
Line | Count | Source | 418 | 371k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 371k | if (_Py_IsImmortal(op)) { | 422 | 364k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 364k | return; | 424 | 364k | } | 425 | 6.35k | _Py_DECREF_STAT_INC(); | 426 | 6.35k | if (--op->ob_refcnt == 0) { | 427 | 0 | _Py_Dealloc(op); | 428 | 0 | } | 429 | 6.35k | } |
Line | Count | Source | 418 | 43.5M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 43.5M | if (_Py_IsImmortal(op)) { | 422 | 84 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 84 | return; | 424 | 84 | } | 425 | 43.5M | _Py_DECREF_STAT_INC(); | 426 | 43.5M | if (--op->ob_refcnt == 0) { | 427 | 12.1M | _Py_Dealloc(op); | 428 | 12.1M | } | 429 | 43.5M | } |
Line | Count | Source | 418 | 173M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 173M | if (_Py_IsImmortal(op)) { | 422 | 97.3M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 97.3M | return; | 424 | 97.3M | } | 425 | 76.5M | _Py_DECREF_STAT_INC(); | 426 | 76.5M | if (--op->ob_refcnt == 0) { | 427 | 6.67M | _Py_Dealloc(op); | 428 | 6.67M | } | 429 | 76.5M | } |
interpolationobject.c:Py_DECREF Line | Count | Source | 418 | 36 | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 36 | if (_Py_IsImmortal(op)) { | 422 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 0 | return; | 424 | 0 | } | 425 | 36 | _Py_DECREF_STAT_INC(); | 426 | 36 | if (--op->ob_refcnt == 0) { | 427 | 0 | _Py_Dealloc(op); | 428 | 0 | } | 429 | 36 | } |
Line | Count | Source | 418 | 3.24M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 3.24M | if (_Py_IsImmortal(op)) { | 422 | 764k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 764k | return; | 424 | 764k | } | 425 | 2.48M | _Py_DECREF_STAT_INC(); | 426 | 2.48M | if (--op->ob_refcnt == 0) { | 427 | 382k | _Py_Dealloc(op); | 428 | 382k | } | 429 | 2.48M | } |
lazyimportobject.c:Py_DECREF Line | Count | Source | 418 | 290 | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 290 | if (_Py_IsImmortal(op)) { | 422 | 76 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 76 | return; | 424 | 76 | } | 425 | 214 | _Py_DECREF_STAT_INC(); | 426 | 214 | if (--op->ob_refcnt == 0) { | 427 | 4 | _Py_Dealloc(op); | 428 | 4 | } | 429 | 214 | } |
Line | Count | Source | 418 | 381k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 381k | if (_Py_IsImmortal(op)) { | 422 | 178k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 178k | return; | 424 | 178k | } | 425 | 203k | _Py_DECREF_STAT_INC(); | 426 | 203k | if (--op->ob_refcnt == 0) { | 427 | 48.7k | _Py_Dealloc(op); | 428 | 48.7k | } | 429 | 203k | } |
Line | Count | Source | 418 | 134M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 134M | if (_Py_IsImmortal(op)) { | 422 | 23.4M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 23.4M | return; | 424 | 23.4M | } | 425 | 111M | _Py_DECREF_STAT_INC(); | 426 | 111M | if (--op->ob_refcnt == 0) { | 427 | 29.3M | _Py_Dealloc(op); | 428 | 29.3M | } | 429 | 111M | } |
namespaceobject.c:Py_DECREF Line | Count | Source | 418 | 52 | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 52 | if (_Py_IsImmortal(op)) { | 422 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 0 | return; | 424 | 0 | } | 425 | 52 | _Py_DECREF_STAT_INC(); | 426 | 52 | if (--op->ob_refcnt == 0) { | 427 | 52 | _Py_Dealloc(op); | 428 | 52 | } | 429 | 52 | } |
Unexecuted instantiation: _contextvars.c:Py_DECREF Line | Count | Source | 418 | 3.95M | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 3.95M | if (_Py_IsImmortal(op)) { | 422 | 2.05M | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 2.05M | return; | 424 | 2.05M | } | 425 | 1.90M | _Py_DECREF_STAT_INC(); | 426 | 1.90M | if (--op->ob_refcnt == 0) { | 427 | 490k | _Py_Dealloc(op); | 428 | 490k | } | 429 | 1.90M | } |
Python-tokenize.c:Py_DECREF Line | Count | Source | 418 | 504 | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 504 | if (_Py_IsImmortal(op)) { | 422 | 196 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 196 | return; | 424 | 196 | } | 425 | 308 | _Py_DECREF_STAT_INC(); | 426 | 308 | if (--op->ob_refcnt == 0) { | 427 | 20 | _Py_Dealloc(op); | 428 | 20 | } | 429 | 308 | } |
Unexecuted instantiation: asdl.c:Py_DECREF Line | Count | Source | 418 | 39.8k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 39.8k | if (_Py_IsImmortal(op)) { | 422 | 8.54k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 8.54k | return; | 424 | 8.54k | } | 425 | 31.2k | _Py_DECREF_STAT_INC(); | 426 | 31.2k | if (--op->ob_refcnt == 0) { | 427 | 0 | _Py_Dealloc(op); | 428 | 0 | } | 429 | 31.2k | } |
Unexecuted instantiation: ast.c:Py_DECREF Unexecuted instantiation: ast_preprocess.c:Py_DECREF Unexecuted instantiation: ast_unparse.c:Py_DECREF Unexecuted instantiation: critical_section.c:Py_DECREF Unexecuted instantiation: crossinterp.c:Py_DECREF Unexecuted instantiation: getcopyright.c:Py_DECREF Unexecuted instantiation: getplatform.c:Py_DECREF Unexecuted instantiation: getversion.c:Py_DECREF Unexecuted instantiation: optimizer.c:Py_DECREF Unexecuted instantiation: pathconfig.c:Py_DECREF Line | Count | Source | 418 | 283k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 283k | if (_Py_IsImmortal(op)) { | 422 | 47.4k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 47.4k | return; | 424 | 47.4k | } | 425 | 236k | _Py_DECREF_STAT_INC(); | 426 | 236k | if (--op->ob_refcnt == 0) { | 427 | 217k | _Py_Dealloc(op); | 428 | 217k | } | 429 | 236k | } |
Line | Count | Source | 418 | 282k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 282k | if (_Py_IsImmortal(op)) { | 422 | 2.35k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 2.35k | return; | 424 | 2.35k | } | 425 | 280k | _Py_DECREF_STAT_INC(); | 426 | 280k | if (--op->ob_refcnt == 0) { | 427 | 3.36k | _Py_Dealloc(op); | 428 | 3.36k | } | 429 | 280k | } |
Unexecuted instantiation: parser.c:Py_DECREF Unexecuted instantiation: buffer.c:Py_DECREF Line | Count | Source | 418 | 12.2k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 12.2k | if (_Py_IsImmortal(op)) { | 422 | 741 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 741 | return; | 424 | 741 | } | 425 | 11.5k | _Py_DECREF_STAT_INC(); | 426 | 11.5k | if (--op->ob_refcnt == 0) { | 427 | 11.5k | _Py_Dealloc(op); | 428 | 11.5k | } | 429 | 11.5k | } |
Line | Count | Source | 418 | 100k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 100k | if (_Py_IsImmortal(op)) { | 422 | 913 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 913 | return; | 424 | 913 | } | 425 | 99.4k | _Py_DECREF_STAT_INC(); | 426 | 99.4k | if (--op->ob_refcnt == 0) { | 427 | 63 | _Py_Dealloc(op); | 428 | 63 | } | 429 | 99.4k | } |
readline_tokenizer.c:Py_DECREF Line | Count | Source | 418 | 348 | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 348 | if (_Py_IsImmortal(op)) { | 422 | 44 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 44 | return; | 424 | 44 | } | 425 | 304 | _Py_DECREF_STAT_INC(); | 426 | 304 | if (--op->ob_refcnt == 0) { | 427 | 68 | _Py_Dealloc(op); | 428 | 68 | } | 429 | 304 | } |
string_tokenizer.c:Py_DECREF Line | Count | Source | 418 | 2.00k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 2.00k | if (_Py_IsImmortal(op)) { | 422 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 0 | return; | 424 | 0 | } | 425 | 2.00k | _Py_DECREF_STAT_INC(); | 426 | 2.00k | if (--op->ob_refcnt == 0) { | 427 | 2.00k | _Py_Dealloc(op); | 428 | 2.00k | } | 429 | 2.00k | } |
Unexecuted instantiation: utf8_tokenizer.c:Py_DECREF Unexecuted instantiation: getcompiler.c:Py_DECREF Unexecuted instantiation: mystrtoul.c:Py_DECREF Unexecuted instantiation: token.c:Py_DECREF Unexecuted instantiation: action_helpers.c:Py_DECREF string_parser.c:Py_DECREF Line | Count | Source | 418 | 40.7k | { | 419 | | // Non-limited C API and limited C API for Python 3.9 and older access | 420 | | // directly PyObject.ob_refcnt. | 421 | 40.7k | if (_Py_IsImmortal(op)) { | 422 | 3.18k | _Py_DECREF_IMMORTAL_STAT_INC(); | 423 | 3.18k | return; | 424 | 3.18k | } | 425 | 37.6k | _Py_DECREF_STAT_INC(); | 426 | 37.6k | if (--op->ob_refcnt == 0) { | 427 | 37.6k | _Py_Dealloc(op); | 428 | 37.6k | } | 429 | 37.6k | } |
|
430 | 18.3G | #define Py_DECREF(op) Py_DECREF(_PyObject_CAST(op)) |
431 | | #endif |
432 | | |
433 | | |
434 | | /* Safely decref `op` and set `op` to NULL, especially useful in tp_clear |
435 | | * and tp_dealloc implementations. |
436 | | * |
437 | | * Note that "the obvious" code can be deadly: |
438 | | * |
439 | | * Py_XDECREF(op); |
440 | | * op = NULL; |
441 | | * |
442 | | * Typically, `op` is something like self->containee, and `self` is done |
443 | | * using its `containee` member. In the code sequence above, suppose |
444 | | * `containee` is non-NULL with a refcount of 1. Its refcount falls to |
445 | | * 0 on the first line, which can trigger an arbitrary amount of code, |
446 | | * possibly including finalizers (like __del__ methods or weakref callbacks) |
447 | | * coded in Python, which in turn can release the GIL and allow other threads |
448 | | * to run, etc. Such code may even invoke methods of `self` again, or cause |
449 | | * cyclic gc to trigger, but-- oops! --self->containee still points to the |
450 | | * object being torn down, and it may be in an insane state while being torn |
451 | | * down. This has in fact been a rich historic source of miserable (rare & |
452 | | * hard-to-diagnose) segfaulting (and other) bugs. |
453 | | * |
454 | | * The safe way is: |
455 | | * |
456 | | * Py_CLEAR(op); |
457 | | * |
458 | | * That arranges to set `op` to NULL _before_ decref'ing, so that any code |
459 | | * triggered as a side-effect of `op` getting torn down no longer believes |
460 | | * `op` points to a valid object. |
461 | | * |
462 | | * There are cases where it's safe to use the naive code, but they're brittle. |
463 | | * For example, if `op` points to a Python integer, you know that destroying |
464 | | * one of those can't cause problems -- but in part that relies on that |
465 | | * Python integers aren't currently weakly referencable. Best practice is |
466 | | * to use Py_CLEAR() even if you can't think of a reason for why you need to. |
467 | | * |
468 | | * gh-98724: Use a temporary variable to only evaluate the macro argument once, |
469 | | * to avoid the duplication of side effects if the argument has side effects. |
470 | | * |
471 | | * gh-99701: If the PyObject* type is used with casting arguments to PyObject*, |
472 | | * the code can be miscompiled with strict aliasing because of type punning. |
473 | | * With strict aliasing, a compiler considers that two pointers of different |
474 | | * types cannot read or write the same memory which enables optimization |
475 | | * opportunities. |
476 | | * |
477 | | * If available, use _Py_TYPEOF() to use the 'op' type for temporary variables, |
478 | | * and so avoid type punning. Otherwise, use memcpy() which causes type erasure |
479 | | * and so prevents the compiler to reuse an old cached 'op' value after |
480 | | * Py_CLEAR(). |
481 | | */ |
482 | | #ifdef _Py_TYPEOF |
483 | | #define Py_CLEAR(op) \ |
484 | 2.46G | do { \ |
485 | 2.46G | _Py_TYPEOF(op)* _tmp_op_ptr = &(op); \ |
486 | 2.46G | _Py_TYPEOF(op) _tmp_old_op = (*_tmp_op_ptr); \ |
487 | 2.46G | if (_tmp_old_op != NULL) { \ |
488 | 548M | *_tmp_op_ptr = _Py_NULL; \ |
489 | 548M | Py_DECREF(_tmp_old_op); \ |
490 | 548M | } \ |
491 | 2.46G | } while (0) |
492 | | #else |
493 | | #define Py_CLEAR(op) \ |
494 | | do { \ |
495 | | PyObject **_tmp_op_ptr = _Py_CAST(PyObject**, &(op)); \ |
496 | | PyObject *_tmp_old_op = (*_tmp_op_ptr); \ |
497 | | if (_tmp_old_op != NULL) { \ |
498 | | PyObject *_null_ptr = _Py_NULL; \ |
499 | | memcpy(_tmp_op_ptr, &_null_ptr, sizeof(PyObject*)); \ |
500 | | Py_DECREF(_tmp_old_op); \ |
501 | | } \ |
502 | | } while (0) |
503 | | #endif |
504 | | |
505 | | |
506 | | /* Function to use in case the object pointer can be NULL: */ |
507 | | static inline void Py_XINCREF(PyObject *op) |
508 | 1.26G | { |
509 | 1.26G | if (op != _Py_NULL) { |
510 | 621M | Py_INCREF(op); |
511 | 621M | } |
512 | 1.26G | } Unexecuted instantiation: bytesobject.c:Py_XINCREF Unexecuted instantiation: call.c:Py_XINCREF Line | Count | Source | 508 | 124M | { | 509 | 124M | if (op != _Py_NULL) { | 510 | 29.0M | Py_INCREF(op); | 511 | 29.0M | } | 512 | 124M | } |
Unexecuted instantiation: genericaliasobject.c:Py_XINCREF Unexecuted instantiation: floatobject.c:Py_XINCREF Line | Count | Source | 508 | 38.5M | { | 509 | 38.5M | if (op != _Py_NULL) { | 510 | 38.5M | Py_INCREF(op); | 511 | 38.5M | } | 512 | 38.5M | } |
Unexecuted instantiation: longobject.c:Py_XINCREF Line | Count | Source | 508 | 231M | { | 509 | 231M | if (op != _Py_NULL) { | 510 | 71.1M | Py_INCREF(op); | 511 | 71.1M | } | 512 | 231M | } |
memoryobject.c:Py_XINCREF Line | Count | Source | 508 | 61 | { | 509 | 61 | if (op != _Py_NULL) { | 510 | 61 | Py_INCREF(op); | 511 | 61 | } | 512 | 61 | } |
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 | 508 | 499k | { | 509 | 499k | if (op != _Py_NULL) { | 510 | 247k | Py_INCREF(op); | 511 | 247k | } | 512 | 499k | } |
typevarobject.c:Py_XINCREF Line | Count | Source | 508 | 1.10k | { | 509 | 1.10k | if (op != _Py_NULL) { | 510 | 224 | Py_INCREF(op); | 511 | 224 | } | 512 | 1.10k | } |
Unexecuted instantiation: unicode_format.c:Py_XINCREF Unexecuted instantiation: unicode_formatter.c:Py_XINCREF Unexecuted instantiation: unicode_writer.c:Py_XINCREF Unexecuted instantiation: unicodectype.c:Py_XINCREF Unexecuted instantiation: unicodeobject.c:Py_XINCREF Unexecuted instantiation: unionobject.c:Py_XINCREF weakrefobject.c:Py_XINCREF Line | Count | Source | 508 | 1.36M | { | 509 | 1.36M | if (op != _Py_NULL) { | 510 | 710k | Py_INCREF(op); | 511 | 710k | } | 512 | 1.36M | } |
Unexecuted instantiation: _warnings.c:Py_XINCREF Line | Count | Source | 508 | 1.31k | { | 509 | 1.31k | if (op != _Py_NULL) { | 510 | 1.31k | Py_INCREF(op); | 511 | 1.31k | } | 512 | 1.31k | } |
Line | Count | Source | 508 | 297M | { | 509 | 297M | if (op != _Py_NULL) { | 510 | 93.6M | Py_INCREF(op); | 511 | 93.6M | } | 512 | 297M | } |
Unexecuted instantiation: codecs.c:Py_XINCREF Unexecuted instantiation: codegen.c:Py_XINCREF Line | Count | Source | 508 | 9.26k | { | 509 | 9.26k | if (op != _Py_NULL) { | 510 | 3.52k | Py_INCREF(op); | 511 | 3.52k | } | 512 | 9.26k | } |
Line | Count | Source | 508 | 262k | { | 509 | 262k | if (op != _Py_NULL) { | 510 | 0 | Py_INCREF(op); | 511 | 0 | } | 512 | 262k | } |
Line | Count | Source | 508 | 42.5M | { | 509 | 42.5M | if (op != _Py_NULL) { | 510 | 42.4M | Py_INCREF(op); | 511 | 42.4M | } | 512 | 42.5M | } |
Unexecuted instantiation: flowgraph.c:Py_XINCREF Unexecuted instantiation: frame.c:Py_XINCREF Unexecuted instantiation: future.c:Py_XINCREF Unexecuted instantiation: gc.c:Py_XINCREF Unexecuted instantiation: gc_gil.c:Py_XINCREF Unexecuted instantiation: getargs.c:Py_XINCREF Unexecuted instantiation: ceval_gil.c:Py_XINCREF Unexecuted instantiation: hamt.c:Py_XINCREF Unexecuted instantiation: hashtable.c:Py_XINCREF Line | Count | Source | 508 | 31.1k | { | 509 | 31.1k | if (op != _Py_NULL) { | 510 | 25.6k | Py_INCREF(op); | 511 | 25.6k | } | 512 | 31.1k | } |
Unexecuted instantiation: importdl.c:Py_XINCREF Unexecuted instantiation: initconfig.c:Py_XINCREF Unexecuted instantiation: instrumentation.c:Py_XINCREF Unexecuted instantiation: instruction_sequence.c:Py_XINCREF Unexecuted instantiation: intrinsics.c:Py_XINCREF Unexecuted instantiation: legacy_tracing.c:Py_XINCREF Unexecuted instantiation: lock.c:Py_XINCREF Unexecuted instantiation: marshal.c:Py_XINCREF Unexecuted instantiation: modsupport.c:Py_XINCREF Unexecuted instantiation: mysnprintf.c:Py_XINCREF Unexecuted instantiation: parking_lot.c:Py_XINCREF Unexecuted instantiation: preconfig.c:Py_XINCREF Unexecuted instantiation: pyarena.c:Py_XINCREF Unexecuted instantiation: pyctype.c:Py_XINCREF Unexecuted instantiation: pyhash.c:Py_XINCREF Unexecuted instantiation: pylifecycle.c:Py_XINCREF Unexecuted instantiation: pymath.c:Py_XINCREF Line | Count | Source | 508 | 1.10M | { | 509 | 1.10M | if (op != _Py_NULL) { | 510 | 1.10M | Py_INCREF(op); | 511 | 1.10M | } | 512 | 1.10M | } |
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 structmember.c:Py_XINCREF Line | Count | Source | 508 | 7.98M | { | 509 | 7.98M | if (op != _Py_NULL) { | 510 | 7.00M | Py_INCREF(op); | 511 | 7.00M | } | 512 | 7.98M | } |
Unexecuted instantiation: symtable.c:Py_XINCREF Line | Count | Source | 508 | 210 | { | 509 | 210 | if (op != _Py_NULL) { | 510 | 210 | Py_INCREF(op); | 511 | 210 | } | 512 | 210 | } |
Unexecuted instantiation: thread.c:Py_XINCREF Line | Count | Source | 508 | 134M | { | 509 | 134M | if (op != _Py_NULL) { | 510 | 94.1M | Py_INCREF(op); | 511 | 94.1M | } | 512 | 134M | } |
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 | 508 | 209k | { | 509 | 209k | if (op != _Py_NULL) { | 510 | 209k | Py_INCREF(op); | 511 | 209k | } | 512 | 209k | } |
Unexecuted instantiation: signalmodule.c:Py_XINCREF Unexecuted instantiation: _tracemalloc.c:Py_XINCREF Unexecuted instantiation: _suggestions.c:Py_XINCREF _datetimemodule.c:Py_XINCREF Line | Count | Source | 508 | 76 | { | 509 | 76 | if (op != _Py_NULL) { | 510 | 0 | Py_INCREF(op); | 511 | 0 | } | 512 | 76 | } |
Unexecuted instantiation: _codecsmodule.c:Py_XINCREF _collectionsmodule.c:Py_XINCREF Line | Count | Source | 508 | 22.3k | { | 509 | 22.3k | if (op != _Py_NULL) { | 510 | 22.3k | Py_INCREF(op); | 511 | 22.3k | } | 512 | 22.3k | } |
Unexecuted instantiation: errnomodule.c:Py_XINCREF Unexecuted instantiation: _iomodule.c:Py_XINCREF Unexecuted instantiation: iobase.c:Py_XINCREF Unexecuted instantiation: fileio.c:Py_XINCREF Unexecuted instantiation: bytesio.c:Py_XINCREF Line | Count | Source | 508 | 6.36k | { | 509 | 6.36k | if (op != _Py_NULL) { | 510 | 6.36k | Py_INCREF(op); | 511 | 6.36k | } | 512 | 6.36k | } |
Unexecuted instantiation: textio.c:Py_XINCREF Unexecuted instantiation: stringio.c:Py_XINCREF Unexecuted instantiation: itertoolsmodule.c:Py_XINCREF Unexecuted instantiation: sre.c:Py_XINCREF Unexecuted instantiation: _sysconfig.c:Py_XINCREF _threadmodule.c:Py_XINCREF Line | Count | Source | 508 | 152 | { | 509 | 152 | if (op != _Py_NULL) { | 510 | 76 | Py_INCREF(op); | 511 | 76 | } | 512 | 152 | } |
Unexecuted instantiation: timemodule.c:Py_XINCREF Unexecuted instantiation: _typesmodule.c:Py_XINCREF Unexecuted instantiation: _typingmodule.c:Py_XINCREF Unexecuted instantiation: _weakref.c:Py_XINCREF Line | Count | Source | 508 | 32.1k | { | 509 | 32.1k | if (op != _Py_NULL) { | 510 | 32.1k | Py_INCREF(op); | 511 | 32.1k | } | 512 | 32.1k | } |
_functoolsmodule.c:Py_XINCREF Line | Count | Source | 508 | 36 | { | 509 | 36 | if (op != _Py_NULL) { | 510 | 0 | Py_INCREF(op); | 511 | 0 | } | 512 | 36 | } |
Unexecuted instantiation: _localemodule.c:Py_XINCREF Unexecuted instantiation: _opcode.c:Py_XINCREF Unexecuted instantiation: _operator.c:Py_XINCREF Unexecuted instantiation: _stat.c:Py_XINCREF Unexecuted instantiation: symtablemodule.c:Py_XINCREF Unexecuted instantiation: pwdmodule.c:Py_XINCREF Line | Count | Source | 508 | 216 | { | 509 | 216 | if (op != _Py_NULL) { | 510 | 216 | Py_INCREF(op); | 511 | 216 | } | 512 | 216 | } |
Unexecuted instantiation: frozen.c:Py_XINCREF Unexecuted instantiation: getbuildinfo.c:Py_XINCREF Unexecuted instantiation: peg_api.c:Py_XINCREF Unexecuted instantiation: file_tokenizer.c:Py_XINCREF Unexecuted instantiation: helpers.c:Py_XINCREF Unexecuted instantiation: myreadline.c:Py_XINCREF Line | Count | Source | 508 | 96.3M | { | 509 | 96.3M | if (op != _Py_NULL) { | 510 | 95.1M | Py_INCREF(op); | 511 | 95.1M | } | 512 | 96.3M | } |
Unexecuted instantiation: boolobject.c:Py_XINCREF Unexecuted instantiation: bytes_methods.c:Py_XINCREF Unexecuted instantiation: bytearrayobject.c:Py_XINCREF Unexecuted instantiation: capsule.c:Py_XINCREF Line | Count | Source | 508 | 21.0M | { | 509 | 21.0M | if (op != _Py_NULL) { | 510 | 4.46M | Py_INCREF(op); | 511 | 4.46M | } | 512 | 21.0M | } |
Unexecuted instantiation: classobject.c:Py_XINCREF Line | Count | Source | 508 | 4.61k | { | 509 | 4.61k | if (op != _Py_NULL) { | 510 | 4.61k | Py_INCREF(op); | 511 | 4.61k | } | 512 | 4.61k | } |
Unexecuted instantiation: complexobject.c:Py_XINCREF Line | Count | Source | 508 | 110k | { | 509 | 110k | if (op != _Py_NULL) { | 510 | 104k | Py_INCREF(op); | 511 | 104k | } | 512 | 110k | } |
Unexecuted instantiation: enumobject.c:Py_XINCREF Line | Count | Source | 508 | 91.1k | { | 509 | 91.1k | if (op != _Py_NULL) { | 510 | 0 | Py_INCREF(op); | 511 | 0 | } | 512 | 91.1k | } |
Unexecuted instantiation: fileobject.c:Py_XINCREF Line | Count | Source | 508 | 18.9M | { | 509 | 18.9M | if (op != _Py_NULL) { | 510 | 18.9M | Py_INCREF(op); | 511 | 18.9M | } | 512 | 18.9M | } |
Line | Count | Source | 508 | 61.2k | { | 509 | 61.2k | if (op != _Py_NULL) { | 510 | 38.6k | Py_INCREF(op); | 511 | 38.6k | } | 512 | 61.2k | } |
Unexecuted instantiation: interpolationobject.c:Py_XINCREF Unexecuted instantiation: iterobject.c:Py_XINCREF lazyimportobject.c:Py_XINCREF Line | Count | Source | 508 | 304 | { | 509 | 304 | if (op != _Py_NULL) { | 510 | 276 | Py_INCREF(op); | 511 | 276 | } | 512 | 304 | } |
Unexecuted instantiation: odictobject.c:Py_XINCREF methodobject.c:Py_XINCREF Line | Count | Source | 508 | 249M | { | 509 | 249M | if (op != _Py_NULL) { | 510 | 124M | Py_INCREF(op); | 511 | 124M | } | 512 | 249M | } |
Unexecuted instantiation: namespaceobject.c:Py_XINCREF Unexecuted instantiation: _contextvars.c:Py_XINCREF Unexecuted instantiation: Python-ast.c:Py_XINCREF Unexecuted instantiation: Python-tokenize.c:Py_XINCREF Unexecuted instantiation: asdl.c:Py_XINCREF Unexecuted instantiation: assemble.c:Py_XINCREF Unexecuted instantiation: ast.c:Py_XINCREF Unexecuted instantiation: ast_preprocess.c:Py_XINCREF Unexecuted instantiation: ast_unparse.c:Py_XINCREF Unexecuted instantiation: critical_section.c:Py_XINCREF Unexecuted instantiation: crossinterp.c:Py_XINCREF Unexecuted instantiation: getcopyright.c:Py_XINCREF Unexecuted instantiation: getplatform.c:Py_XINCREF Unexecuted instantiation: getversion.c:Py_XINCREF Unexecuted instantiation: optimizer.c:Py_XINCREF Unexecuted instantiation: pathconfig.c:Py_XINCREF Line | Count | Source | 508 | 99.4k | { | 509 | 99.4k | if (op != _Py_NULL) { | 510 | 827 | Py_INCREF(op); | 511 | 827 | } | 512 | 99.4k | } |
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 |
513 | | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000 |
514 | 1.26G | # define Py_XINCREF(op) Py_XINCREF(_PyObject_CAST(op)) |
515 | | #endif |
516 | | |
517 | | static inline void Py_XDECREF(PyObject *op) |
518 | 13.0G | { |
519 | 13.0G | if (op != _Py_NULL) { |
520 | 12.1G | Py_DECREF(op); |
521 | 12.1G | } |
522 | 13.0G | } Line | Count | Source | 518 | 25.9M | { | 519 | 25.9M | if (op != _Py_NULL) { | 520 | 111k | Py_DECREF(op); | 521 | 111k | } | 522 | 25.9M | } |
Unexecuted instantiation: call.c:Py_XDECREF Line | Count | Source | 518 | 127M | { | 519 | 127M | if (op != _Py_NULL) { | 520 | 64.6M | Py_DECREF(op); | 521 | 64.6M | } | 522 | 127M | } |
genericaliasobject.c:Py_XDECREF Line | Count | Source | 518 | 934 | { | 519 | 934 | if (op != _Py_NULL) { | 520 | 548 | Py_DECREF(op); | 521 | 548 | } | 522 | 934 | } |
Line | Count | Source | 518 | 1.21M | { | 519 | 1.21M | if (op != _Py_NULL) { | 520 | 504k | Py_DECREF(op); | 521 | 504k | } | 522 | 1.21M | } |
Line | Count | Source | 518 | 1.57G | { | 519 | 1.57G | if (op != _Py_NULL) { | 520 | 1.54G | Py_DECREF(op); | 521 | 1.54G | } | 522 | 1.57G | } |
Line | Count | Source | 518 | 25.4M | { | 519 | 25.4M | if (op != _Py_NULL) { | 520 | 11.2M | Py_DECREF(op); | 521 | 11.2M | } | 522 | 25.4M | } |
Line | Count | Source | 518 | 326M | { | 519 | 326M | if (op != _Py_NULL) { | 520 | 318M | Py_DECREF(op); | 521 | 318M | } | 522 | 326M | } |
Unexecuted instantiation: memoryobject.c:Py_XDECREF moduleobject.c:Py_XDECREF Line | Count | Source | 518 | 18.6k | { | 519 | 18.6k | if (op != _Py_NULL) { | 520 | 10.2k | Py_DECREF(op); | 521 | 10.2k | } | 522 | 18.6k | } |
Line | Count | Source | 518 | 13.1M | { | 519 | 13.1M | if (op != _Py_NULL) { | 520 | 53.6k | Py_DECREF(op); | 521 | 53.6k | } | 522 | 13.1M | } |
Unexecuted instantiation: obmalloc.c:Py_XDECREF Unexecuted instantiation: picklebufobject.c:Py_XDECREF Line | Count | Source | 518 | 108 | { | 519 | 108 | if (op != _Py_NULL) { | 520 | 108 | Py_DECREF(op); | 521 | 108 | } | 522 | 108 | } |
Line | Count | Source | 518 | 99.6k | { | 519 | 99.6k | if (op != _Py_NULL) { | 520 | 36 | Py_DECREF(op); | 521 | 36 | } | 522 | 99.6k | } |
Unexecuted instantiation: sliceobject.c:Py_XDECREF Line | Count | Source | 518 | 9.45M | { | 519 | 9.45M | if (op != _Py_NULL) { | 520 | 9.45M | Py_DECREF(op); | 521 | 9.45M | } | 522 | 9.45M | } |
Unexecuted instantiation: templateobject.c:Py_XDECREF Line | Count | Source | 518 | 9.50G | { | 519 | 9.50G | if (op != _Py_NULL) { | 520 | 9.49G | Py_DECREF(op); | 521 | 9.49G | } | 522 | 9.50G | } |
Line | Count | Source | 518 | 93.4M | { | 519 | 93.4M | if (op != _Py_NULL) { | 520 | 74.0M | Py_DECREF(op); | 521 | 74.0M | } | 522 | 93.4M | } |
typevarobject.c:Py_XDECREF Line | Count | Source | 518 | 1.00k | { | 519 | 1.00k | if (op != _Py_NULL) { | 520 | 768 | Py_DECREF(op); | 521 | 768 | } | 522 | 1.00k | } |
unicode_format.c:Py_XDECREF Line | Count | Source | 518 | 33.2M | { | 519 | 33.2M | if (op != _Py_NULL) { | 520 | 56.7k | Py_DECREF(op); | 521 | 56.7k | } | 522 | 33.2M | } |
unicode_formatter.c:Py_XDECREF Line | Count | Source | 518 | 1.08k | { | 519 | 1.08k | if (op != _Py_NULL) { | 520 | 768 | Py_DECREF(op); | 521 | 768 | } | 522 | 1.08k | } |
Unexecuted instantiation: unicode_writer.c:Py_XDECREF Unexecuted instantiation: unicodectype.c:Py_XDECREF unicodeobject.c:Py_XDECREF Line | Count | Source | 518 | 106M | { | 519 | 106M | if (op != _Py_NULL) { | 520 | 44.4M | Py_DECREF(op); | 521 | 44.4M | } | 522 | 106M | } |
Line | Count | Source | 518 | 2.10k | { | 519 | 2.10k | if (op != _Py_NULL) { | 520 | 340 | Py_DECREF(op); | 521 | 340 | } | 522 | 2.10k | } |
weakrefobject.c:Py_XDECREF Line | Count | Source | 518 | 1.36M | { | 519 | 1.36M | if (op != _Py_NULL) { | 520 | 680k | Py_DECREF(op); | 521 | 680k | } | 522 | 1.36M | } |
Line | Count | Source | 518 | 6.67M | { | 519 | 6.67M | if (op != _Py_NULL) { | 520 | 5.82M | Py_DECREF(op); | 521 | 5.82M | } | 522 | 6.67M | } |
Line | Count | Source | 518 | 15.7M | { | 519 | 15.7M | if (op != _Py_NULL) { | 520 | 501k | Py_DECREF(op); | 521 | 501k | } | 522 | 15.7M | } |
Line | Count | Source | 518 | 5.78M | { | 519 | 5.78M | if (op != _Py_NULL) { | 520 | 126k | Py_DECREF(op); | 521 | 126k | } | 522 | 5.78M | } |
Line | Count | Source | 518 | 185k | { | 519 | 185k | if (op != _Py_NULL) { | 520 | 123k | Py_DECREF(op); | 521 | 123k | } | 522 | 185k | } |
Unexecuted instantiation: codegen.c:Py_XDECREF Line | Count | Source | 518 | 21.5k | { | 519 | 21.5k | if (op != _Py_NULL) { | 520 | 9.10k | Py_DECREF(op); | 521 | 9.10k | } | 522 | 21.5k | } |
Unexecuted instantiation: context.c:Py_XDECREF Line | Count | Source | 518 | 293M | { | 519 | 293M | if (op != _Py_NULL) { | 520 | 33.6M | Py_DECREF(op); | 521 | 33.6M | } | 522 | 293M | } |
Unexecuted instantiation: flowgraph.c:Py_XDECREF Unexecuted instantiation: frame.c:Py_XDECREF Unexecuted instantiation: future.c:Py_XDECREF Line | Count | Source | 518 | 190k | { | 519 | 190k | if (op != _Py_NULL) { | 520 | 7.02k | Py_DECREF(op); | 521 | 7.02k | } | 522 | 190k | } |
Unexecuted instantiation: gc_gil.c:Py_XDECREF Unexecuted instantiation: getargs.c:Py_XDECREF Unexecuted instantiation: ceval_gil.c:Py_XDECREF Unexecuted instantiation: hamt.c:Py_XDECREF Unexecuted instantiation: hashtable.c:Py_XDECREF Line | Count | Source | 518 | 9.14M | { | 519 | 9.14M | if (op != _Py_NULL) { | 520 | 9.11M | Py_DECREF(op); | 521 | 9.11M | } | 522 | 9.14M | } |
Unexecuted instantiation: importdl.c:Py_XDECREF Unexecuted instantiation: initconfig.c:Py_XDECREF Unexecuted instantiation: instrumentation.c:Py_XDECREF instruction_sequence.c:Py_XDECREF Line | Count | Source | 518 | 11.3k | { | 519 | 11.3k | if (op != _Py_NULL) { | 520 | 0 | Py_DECREF(op); | 521 | 0 | } | 522 | 11.3k | } |
Line | Count | Source | 518 | 34.9k | { | 519 | 34.9k | if (op != _Py_NULL) { | 520 | 34.9k | Py_DECREF(op); | 521 | 34.9k | } | 522 | 34.9k | } |
Unexecuted instantiation: legacy_tracing.c:Py_XDECREF Unexecuted instantiation: lock.c:Py_XDECREF Line | Count | Source | 518 | 1.73M | { | 519 | 1.73M | if (op != _Py_NULL) { | 520 | 1.73M | Py_DECREF(op); | 521 | 1.73M | } | 522 | 1.73M | } |
Line | Count | Source | 518 | 15.9k | { | 519 | 15.9k | if (op != _Py_NULL) { | 520 | 15.9k | Py_DECREF(op); | 521 | 15.9k | } | 522 | 15.9k | } |
Unexecuted instantiation: mysnprintf.c:Py_XDECREF Unexecuted instantiation: parking_lot.c:Py_XDECREF Unexecuted instantiation: preconfig.c:Py_XDECREF Unexecuted instantiation: pyarena.c:Py_XDECREF Unexecuted instantiation: pyctype.c:Py_XDECREF Unexecuted instantiation: pyhash.c:Py_XDECREF Line | Count | Source | 518 | 216 | { | 519 | 216 | if (op != _Py_NULL) { | 520 | 216 | Py_DECREF(op); | 521 | 216 | } | 522 | 216 | } |
Unexecuted instantiation: pymath.c:Py_XDECREF Unexecuted instantiation: pystate.c:Py_XDECREF Line | Count | Source | 518 | 1.97k | { | 519 | 1.97k | if (op != _Py_NULL) { | 520 | 1.31k | Py_DECREF(op); | 521 | 1.31k | } | 522 | 1.97k | } |
Unexecuted instantiation: pytime.c:Py_XDECREF Unexecuted instantiation: qsbr.c:Py_XDECREF Unexecuted instantiation: bootstrap_hash.c:Py_XDECREF Line | Count | Source | 518 | 4.22M | { | 519 | 4.22M | if (op != _Py_NULL) { | 520 | 2.19M | Py_DECREF(op); | 521 | 2.19M | } | 522 | 4.22M | } |
structmember.c:Py_XDECREF Line | Count | Source | 518 | 6.82M | { | 519 | 6.82M | if (op != _Py_NULL) { | 520 | 18.1k | Py_DECREF(op); | 521 | 18.1k | } | 522 | 6.82M | } |
Line | Count | Source | 518 | 134k | { | 519 | 134k | if (op != _Py_NULL) { | 520 | 105k | Py_DECREF(op); | 521 | 105k | } | 522 | 134k | } |
Line | Count | Source | 518 | 3.72M | { | 519 | 3.72M | if (op != _Py_NULL) { | 520 | 2.80M | Py_DECREF(op); | 521 | 2.80M | } | 522 | 3.72M | } |
Unexecuted instantiation: thread.c:Py_XDECREF Line | Count | Source | 518 | 269M | { | 519 | 269M | if (op != _Py_NULL) { | 520 | 188M | Py_DECREF(op); | 521 | 188M | } | 522 | 269M | } |
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 | 518 | 1.65M | { | 519 | 1.65M | if (op != _Py_NULL) { | 520 | 1.39M | Py_DECREF(op); | 521 | 1.39M | } | 522 | 1.65M | } |
signalmodule.c:Py_XDECREF Line | Count | Source | 518 | 2.30k | { | 519 | 2.30k | if (op != _Py_NULL) { | 520 | 0 | Py_DECREF(op); | 521 | 0 | } | 522 | 2.30k | } |
Unexecuted instantiation: _tracemalloc.c:Py_XDECREF Unexecuted instantiation: _suggestions.c:Py_XDECREF _datetimemodule.c:Py_XDECREF Line | Count | Source | 518 | 22.9k | { | 519 | 22.9k | if (op != _Py_NULL) { | 520 | 22.1k | Py_DECREF(op); | 521 | 22.1k | } | 522 | 22.9k | } |
Unexecuted instantiation: _codecsmodule.c:Py_XDECREF _collectionsmodule.c:Py_XDECREF Line | Count | Source | 518 | 22.3k | { | 519 | 22.3k | if (op != _Py_NULL) { | 520 | 0 | Py_DECREF(op); | 521 | 0 | } | 522 | 22.3k | } |
Unexecuted instantiation: errnomodule.c:Py_XDECREF Line | Count | Source | 518 | 20 | { | 519 | 20 | if (op != _Py_NULL) { | 520 | 10 | Py_DECREF(op); | 521 | 10 | } | 522 | 20 | } |
Unexecuted instantiation: iobase.c:Py_XDECREF Unexecuted instantiation: fileio.c:Py_XDECREF Line | Count | Source | 518 | 46.7k | { | 519 | 46.7k | if (op != _Py_NULL) { | 520 | 46.7k | Py_DECREF(op); | 521 | 46.7k | } | 522 | 46.7k | } |
Line | Count | Source | 518 | 55.9k | { | 519 | 55.9k | if (op != _Py_NULL) { | 520 | 6.38k | Py_DECREF(op); | 521 | 6.38k | } | 522 | 55.9k | } |
Line | Count | Source | 518 | 32.8k | { | 519 | 32.8k | if (op != _Py_NULL) { | 520 | 206 | Py_DECREF(op); | 521 | 206 | } | 522 | 32.8k | } |
Unexecuted instantiation: stringio.c:Py_XDECREF itertoolsmodule.c:Py_XDECREF Line | Count | Source | 518 | 33.7k | { | 519 | 33.7k | if (op != _Py_NULL) { | 520 | 5.38k | Py_DECREF(op); | 521 | 5.38k | } | 522 | 33.7k | } |
Line | Count | Source | 518 | 81.6M | { | 519 | 81.6M | if (op != _Py_NULL) { | 520 | 81.6M | Py_DECREF(op); | 521 | 81.6M | } | 522 | 81.6M | } |
Unexecuted instantiation: _sysconfig.c:Py_XDECREF Unexecuted instantiation: _threadmodule.c:Py_XDECREF Unexecuted instantiation: timemodule.c:Py_XDECREF Unexecuted instantiation: _typesmodule.c:Py_XDECREF Unexecuted instantiation: _typingmodule.c:Py_XDECREF Unexecuted instantiation: _weakref.c:Py_XDECREF Line | Count | Source | 518 | 205k | { | 519 | 205k | if (op != _Py_NULL) { | 520 | 172k | Py_DECREF(op); | 521 | 172k | } | 522 | 205k | } |
_functoolsmodule.c:Py_XDECREF Line | Count | Source | 518 | 8.12k | { | 519 | 8.12k | if (op != _Py_NULL) { | 520 | 0 | Py_DECREF(op); | 521 | 0 | } | 522 | 8.12k | } |
Unexecuted instantiation: _localemodule.c:Py_XDECREF Unexecuted instantiation: _opcode.c:Py_XDECREF Unexecuted instantiation: _operator.c:Py_XDECREF Unexecuted instantiation: _stat.c:Py_XDECREF Unexecuted instantiation: symtablemodule.c:Py_XDECREF Unexecuted instantiation: pwdmodule.c:Py_XDECREF Unexecuted instantiation: getpath.c:Py_XDECREF Unexecuted instantiation: frozen.c:Py_XDECREF Unexecuted instantiation: getbuildinfo.c:Py_XDECREF Unexecuted instantiation: peg_api.c:Py_XDECREF Unexecuted instantiation: file_tokenizer.c:Py_XDECREF Line | Count | Source | 518 | 2.96k | { | 519 | 2.96k | if (op != _Py_NULL) { | 520 | 2.96k | Py_DECREF(op); | 521 | 2.96k | } | 522 | 2.96k | } |
Unexecuted instantiation: myreadline.c:Py_XDECREF Line | Count | Source | 518 | 403k | { | 519 | 403k | if (op != _Py_NULL) { | 520 | 247k | Py_DECREF(op); | 521 | 247k | } | 522 | 403k | } |
Unexecuted instantiation: boolobject.c:Py_XDECREF Unexecuted instantiation: bytes_methods.c:Py_XDECREF bytearrayobject.c:Py_XDECREF Line | Count | Source | 518 | 18.6M | { | 519 | 18.6M | if (op != _Py_NULL) { | 520 | 18.6M | Py_DECREF(op); | 521 | 18.6M | } | 522 | 18.6M | } |
Line | Count | Source | 518 | 13 | { | 519 | 13 | if (op != _Py_NULL) { | 520 | 13 | Py_DECREF(op); | 521 | 13 | } | 522 | 13 | } |
Line | Count | Source | 518 | 21.0M | { | 519 | 21.0M | if (op != _Py_NULL) { | 520 | 7.10M | Py_DECREF(op); | 521 | 7.10M | } | 522 | 21.0M | } |
Line | Count | Source | 518 | 46.8M | { | 519 | 46.8M | if (op != _Py_NULL) { | 520 | 46.8M | Py_DECREF(op); | 521 | 46.8M | } | 522 | 46.8M | } |
Line | Count | Source | 518 | 1.09M | { | 519 | 1.09M | if (op != _Py_NULL) { | 520 | 909k | Py_DECREF(op); | 521 | 909k | } | 522 | 1.09M | } |
Unexecuted instantiation: complexobject.c:Py_XDECREF Line | Count | Source | 518 | 29.2M | { | 519 | 29.2M | if (op != _Py_NULL) { | 520 | 20.6M | Py_DECREF(op); | 521 | 20.6M | } | 522 | 29.2M | } |
Line | Count | Source | 518 | 24.1M | { | 519 | 24.1M | if (op != _Py_NULL) { | 520 | 16.0M | Py_DECREF(op); | 521 | 16.0M | } | 522 | 24.1M | } |
Line | Count | Source | 518 | 45.5k | { | 519 | 45.5k | if (op != _Py_NULL) { | 520 | 0 | Py_DECREF(op); | 521 | 0 | } | 522 | 45.5k | } |
Unexecuted instantiation: fileobject.c:Py_XDECREF Unexecuted instantiation: frameobject.c:Py_XDECREF Line | Count | Source | 518 | 72.4k | { | 519 | 72.4k | if (op != _Py_NULL) { | 520 | 35.3k | Py_DECREF(op); | 521 | 35.3k | } | 522 | 72.4k | } |
Unexecuted instantiation: interpolationobject.c:Py_XDECREF Line | Count | Source | 518 | 3.24M | { | 519 | 3.24M | if (op != _Py_NULL) { | 520 | 382k | Py_DECREF(op); | 521 | 382k | } | 522 | 3.24M | } |
Unexecuted instantiation: lazyimportobject.c:Py_XDECREF Line | Count | Source | 518 | 295k | { | 519 | 295k | if (op != _Py_NULL) { | 520 | 88.2k | Py_DECREF(op); | 521 | 88.2k | } | 522 | 295k | } |
methodobject.c:Py_XDECREF Line | Count | Source | 518 | 374M | { | 519 | 374M | if (op != _Py_NULL) { | 520 | 134M | Py_DECREF(op); | 521 | 134M | } | 522 | 374M | } |
Unexecuted instantiation: namespaceobject.c:Py_XDECREF Unexecuted instantiation: _contextvars.c:Py_XDECREF Line | Count | Source | 518 | 1.30k | { | 519 | 1.30k | if (op != _Py_NULL) { | 520 | 872 | Py_DECREF(op); | 521 | 872 | } | 522 | 1.30k | } |
Python-tokenize.c:Py_XDECREF Line | Count | Source | 518 | 340 | { | 519 | 340 | if (op != _Py_NULL) { | 520 | 320 | Py_DECREF(op); | 521 | 320 | } | 522 | 340 | } |
Unexecuted instantiation: asdl.c:Py_XDECREF Line | Count | Source | 518 | 39.8k | { | 519 | 39.8k | if (op != _Py_NULL) { | 520 | 39.8k | Py_DECREF(op); | 521 | 39.8k | } | 522 | 39.8k | } |
Unexecuted instantiation: ast.c:Py_XDECREF Unexecuted instantiation: ast_preprocess.c:Py_XDECREF Unexecuted instantiation: ast_unparse.c:Py_XDECREF Unexecuted instantiation: critical_section.c:Py_XDECREF Unexecuted instantiation: crossinterp.c:Py_XDECREF Unexecuted instantiation: getcopyright.c:Py_XDECREF Unexecuted instantiation: getplatform.c:Py_XDECREF Unexecuted instantiation: getversion.c:Py_XDECREF Unexecuted instantiation: optimizer.c:Py_XDECREF Unexecuted instantiation: pathconfig.c:Py_XDECREF Line | Count | Source | 518 | 191k | { | 519 | 191k | if (op != _Py_NULL) { | 520 | 1.47k | Py_DECREF(op); | 521 | 1.47k | } | 522 | 191k | } |
pegen_errors.c:Py_XDECREF Line | Count | Source | 518 | 10.6k | { | 519 | 10.6k | if (op != _Py_NULL) { | 520 | 9.16k | Py_DECREF(op); | 521 | 9.16k | } | 522 | 10.6k | } |
Unexecuted instantiation: parser.c:Py_XDECREF Unexecuted instantiation: buffer.c:Py_XDECREF Unexecuted instantiation: lexer.c:Py_XDECREF Line | Count | Source | 518 | 599k | { | 519 | 599k | if (op != _Py_NULL) { | 520 | 100k | Py_DECREF(op); | 521 | 100k | } | 522 | 599k | } |
Unexecuted instantiation: readline_tokenizer.c:Py_XDECREF Unexecuted instantiation: string_tokenizer.c:Py_XDECREF Unexecuted instantiation: utf8_tokenizer.c:Py_XDECREF Unexecuted instantiation: getcompiler.c:Py_XDECREF Unexecuted instantiation: mystrtoul.c:Py_XDECREF Unexecuted instantiation: token.c:Py_XDECREF Unexecuted instantiation: action_helpers.c:Py_XDECREF string_parser.c:Py_XDECREF Line | Count | Source | 518 | 31.6k | { | 519 | 31.6k | if (op != _Py_NULL) { | 520 | 31.6k | Py_DECREF(op); | 521 | 31.6k | } | 522 | 31.6k | } |
|
523 | | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000 |
524 | 13.0G | # define Py_XDECREF(op) Py_XDECREF(_PyObject_CAST(op)) |
525 | | #endif |
526 | | |
527 | | // Create a new strong reference to an object: |
528 | | // increment the reference count of the object and return the object. |
529 | | PyAPI_FUNC(PyObject*) Py_NewRef(PyObject *obj); |
530 | | |
531 | | // Similar to Py_NewRef(), but the object can be NULL. |
532 | | PyAPI_FUNC(PyObject*) Py_XNewRef(PyObject *obj); |
533 | | |
534 | | static inline PyObject* _Py_NewRef(PyObject *obj) |
535 | 14.4G | { |
536 | 14.4G | Py_INCREF(obj); |
537 | 14.4G | return obj; |
538 | 14.4G | } Line | Count | Source | 535 | 1.21M | { | 536 | 1.21M | Py_INCREF(obj); | 537 | 1.21M | return obj; | 538 | 1.21M | } |
Line | Count | Source | 535 | 30.9M | { | 536 | 30.9M | Py_INCREF(obj); | 537 | 30.9M | return obj; | 538 | 30.9M | } |
Line | Count | Source | 535 | 161M | { | 536 | 161M | Py_INCREF(obj); | 537 | 161M | return obj; | 538 | 161M | } |
genericaliasobject.c:_Py_NewRef Line | Count | Source | 535 | 2.06k | { | 536 | 2.06k | Py_INCREF(obj); | 537 | 2.06k | return obj; | 538 | 2.06k | } |
Unexecuted instantiation: floatobject.c:_Py_NewRef Line | Count | Source | 535 | 1.32G | { | 536 | 1.32G | Py_INCREF(obj); | 537 | 1.32G | return obj; | 538 | 1.32G | } |
Line | Count | Source | 535 | 15.6M | { | 536 | 15.6M | Py_INCREF(obj); | 537 | 15.6M | return obj; | 538 | 15.6M | } |
Line | Count | Source | 535 | 1.30G | { | 536 | 1.30G | Py_INCREF(obj); | 537 | 1.30G | return obj; | 538 | 1.30G | } |
memoryobject.c:_Py_NewRef Line | Count | Source | 535 | 2.72M | { | 536 | 2.72M | Py_INCREF(obj); | 537 | 2.72M | return obj; | 538 | 2.72M | } |
moduleobject.c:_Py_NewRef Line | Count | Source | 535 | 8.07k | { | 536 | 8.07k | Py_INCREF(obj); | 537 | 8.07k | return obj; | 538 | 8.07k | } |
Line | Count | Source | 535 | 82.3M | { | 536 | 82.3M | Py_INCREF(obj); | 537 | 82.3M | return obj; | 538 | 82.3M | } |
Unexecuted instantiation: obmalloc.c:_Py_NewRef Unexecuted instantiation: picklebufobject.c:_Py_NewRef Line | Count | Source | 535 | 108 | { | 536 | 108 | Py_INCREF(obj); | 537 | 108 | return obj; | 538 | 108 | } |
Line | Count | Source | 535 | 8.34M | { | 536 | 8.34M | Py_INCREF(obj); | 537 | 8.34M | return obj; | 538 | 8.34M | } |
Line | Count | Source | 535 | 176M | { | 536 | 176M | Py_INCREF(obj); | 537 | 176M | return obj; | 538 | 176M | } |
Line | Count | Source | 535 | 120k | { | 536 | 120k | Py_INCREF(obj); | 537 | 120k | return obj; | 538 | 120k | } |
templateobject.c:_Py_NewRef Line | Count | Source | 535 | 16 | { | 536 | 16 | Py_INCREF(obj); | 537 | 16 | return obj; | 538 | 16 | } |
Line | Count | Source | 535 | 9.16G | { | 536 | 9.16G | Py_INCREF(obj); | 537 | 9.16G | return obj; | 538 | 9.16G | } |
Line | Count | Source | 535 | 211M | { | 536 | 211M | Py_INCREF(obj); | 537 | 211M | return obj; | 538 | 211M | } |
typevarobject.c:_Py_NewRef Line | Count | Source | 535 | 1.90k | { | 536 | 1.90k | Py_INCREF(obj); | 537 | 1.90k | return obj; | 538 | 1.90k | } |
unicode_format.c:_Py_NewRef Line | Count | Source | 535 | 26.4M | { | 536 | 26.4M | Py_INCREF(obj); | 537 | 26.4M | return obj; | 538 | 26.4M | } |
Unexecuted instantiation: unicode_formatter.c:_Py_NewRef unicode_writer.c:_Py_NewRef Line | Count | Source | 535 | 5.55k | { | 536 | 5.55k | Py_INCREF(obj); | 537 | 5.55k | return obj; | 538 | 5.55k | } |
Unexecuted instantiation: unicodectype.c:_Py_NewRef unicodeobject.c:_Py_NewRef Line | Count | Source | 535 | 130M | { | 536 | 130M | Py_INCREF(obj); | 537 | 130M | return obj; | 538 | 130M | } |
Line | Count | Source | 535 | 936 | { | 536 | 936 | Py_INCREF(obj); | 537 | 936 | return obj; | 538 | 936 | } |
Unexecuted instantiation: weakrefobject.c:_Py_NewRef Line | Count | Source | 535 | 2.46M | { | 536 | 2.46M | Py_INCREF(obj); | 537 | 2.46M | return obj; | 538 | 2.46M | } |
Line | Count | Source | 535 | 34.4M | { | 536 | 34.4M | Py_INCREF(obj); | 537 | 34.4M | return obj; | 538 | 34.4M | } |
Line | Count | Source | 535 | 757M | { | 536 | 757M | Py_INCREF(obj); | 537 | 757M | return obj; | 538 | 757M | } |
Line | Count | Source | 535 | 4.90M | { | 536 | 4.90M | Py_INCREF(obj); | 537 | 4.90M | return obj; | 538 | 4.90M | } |
Line | Count | Source | 535 | 2.24k | { | 536 | 2.24k | Py_INCREF(obj); | 537 | 2.24k | return obj; | 538 | 2.24k | } |
Line | Count | Source | 535 | 78.2k | { | 536 | 78.2k | Py_INCREF(obj); | 537 | 78.2k | return obj; | 538 | 78.2k | } |
Line | Count | Source | 535 | 61 | { | 536 | 61 | Py_INCREF(obj); | 537 | 61 | return obj; | 538 | 61 | } |
Line | Count | Source | 535 | 42.6M | { | 536 | 42.6M | Py_INCREF(obj); | 537 | 42.6M | return obj; | 538 | 42.6M | } |
Line | Count | Source | 535 | 56.1k | { | 536 | 56.1k | Py_INCREF(obj); | 537 | 56.1k | return obj; | 538 | 56.1k | } |
Line | Count | Source | 535 | 43.5M | { | 536 | 43.5M | Py_INCREF(obj); | 537 | 43.5M | return obj; | 538 | 43.5M | } |
Unexecuted instantiation: future.c:_Py_NewRef Unexecuted instantiation: gc.c:_Py_NewRef Unexecuted instantiation: gc_gil.c:_Py_NewRef Line | Count | Source | 535 | 3.48M | { | 536 | 3.48M | Py_INCREF(obj); | 537 | 3.48M | return obj; | 538 | 3.48M | } |
Unexecuted instantiation: ceval_gil.c:_Py_NewRef Unexecuted instantiation: hamt.c:_Py_NewRef Unexecuted instantiation: hashtable.c:_Py_NewRef Line | Count | Source | 535 | 7.98M | { | 536 | 7.98M | Py_INCREF(obj); | 537 | 7.98M | return obj; | 538 | 7.98M | } |
Line | Count | Source | 535 | 1.17k | { | 536 | 1.17k | Py_INCREF(obj); | 537 | 1.17k | return obj; | 538 | 1.17k | } |
Line | Count | Source | 535 | 612 | { | 536 | 612 | Py_INCREF(obj); | 537 | 612 | return obj; | 538 | 612 | } |
Unexecuted instantiation: instrumentation.c:_Py_NewRef Unexecuted instantiation: instruction_sequence.c:_Py_NewRef Line | Count | Source | 535 | 65.9k | { | 536 | 65.9k | Py_INCREF(obj); | 537 | 65.9k | return obj; | 538 | 65.9k | } |
Unexecuted instantiation: legacy_tracing.c:_Py_NewRef Unexecuted instantiation: lock.c:_Py_NewRef Line | Count | Source | 535 | 1.90M | { | 536 | 1.90M | Py_INCREF(obj); | 537 | 1.90M | return obj; | 538 | 1.90M | } |
Line | Count | Source | 535 | 16 | { | 536 | 16 | Py_INCREF(obj); | 537 | 16 | return obj; | 538 | 16 | } |
Unexecuted instantiation: mysnprintf.c:_Py_NewRef Unexecuted instantiation: parking_lot.c:_Py_NewRef Unexecuted instantiation: preconfig.c:_Py_NewRef Unexecuted instantiation: pyarena.c:_Py_NewRef Unexecuted instantiation: pyctype.c:_Py_NewRef Unexecuted instantiation: pyhash.c:_Py_NewRef Line | Count | Source | 535 | 36 | { | 536 | 36 | Py_INCREF(obj); | 537 | 36 | return obj; | 538 | 36 | } |
Unexecuted instantiation: pymath.c:_Py_NewRef Unexecuted instantiation: pystate.c:_Py_NewRef Unexecuted instantiation: pythonrun.c:_Py_NewRef Unexecuted instantiation: pytime.c:_Py_NewRef Unexecuted instantiation: qsbr.c:_Py_NewRef Unexecuted instantiation: bootstrap_hash.c:_Py_NewRef Unexecuted instantiation: specialize.c:_Py_NewRef Unexecuted instantiation: structmember.c:_Py_NewRef Line | Count | Source | 535 | 169k | { | 536 | 169k | Py_INCREF(obj); | 537 | 169k | return obj; | 538 | 169k | } |
Line | Count | Source | 535 | 1.91k | { | 536 | 1.91k | Py_INCREF(obj); | 537 | 1.91k | return obj; | 538 | 1.91k | } |
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 | 535 | 6 | { | 536 | 6 | Py_INCREF(obj); | 537 | 6 | return obj; | 538 | 6 | } |
Unexecuted instantiation: faulthandler.c:_Py_NewRef Line | Count | Source | 535 | 2.27M | { | 536 | 2.27M | Py_INCREF(obj); | 537 | 2.27M | return obj; | 538 | 2.27M | } |
signalmodule.c:_Py_NewRef Line | Count | Source | 535 | 2.30k | { | 536 | 2.30k | Py_INCREF(obj); | 537 | 2.30k | return obj; | 538 | 2.30k | } |
Unexecuted instantiation: _tracemalloc.c:_Py_NewRef Unexecuted instantiation: _suggestions.c:_Py_NewRef _datetimemodule.c:_Py_NewRef Line | Count | Source | 535 | 22.0k | { | 536 | 22.0k | Py_INCREF(obj); | 537 | 22.0k | return obj; | 538 | 22.0k | } |
Unexecuted instantiation: _codecsmodule.c:_Py_NewRef _collectionsmodule.c:_Py_NewRef Line | Count | Source | 535 | 23.9M | { | 536 | 23.9M | Py_INCREF(obj); | 537 | 23.9M | return obj; | 538 | 23.9M | } |
Unexecuted instantiation: errnomodule.c:_Py_NewRef Line | Count | Source | 535 | 302 | { | 536 | 302 | Py_INCREF(obj); | 537 | 302 | return obj; | 538 | 302 | } |
Line | Count | Source | 535 | 109k | { | 536 | 109k | Py_INCREF(obj); | 537 | 109k | return obj; | 538 | 109k | } |
Unexecuted instantiation: fileio.c:_Py_NewRef Line | Count | Source | 535 | 68.3k | { | 536 | 68.3k | Py_INCREF(obj); | 537 | 68.3k | return obj; | 538 | 68.3k | } |
Line | Count | Source | 535 | 11.3k | { | 536 | 11.3k | Py_INCREF(obj); | 537 | 11.3k | return obj; | 538 | 11.3k | } |
Line | Count | Source | 535 | 345k | { | 536 | 345k | Py_INCREF(obj); | 537 | 345k | return obj; | 538 | 345k | } |
Line | Count | Source | 535 | 22.1k | { | 536 | 22.1k | Py_INCREF(obj); | 537 | 22.1k | return obj; | 538 | 22.1k | } |
itertoolsmodule.c:_Py_NewRef Line | Count | Source | 535 | 41.3k | { | 536 | 41.3k | Py_INCREF(obj); | 537 | 41.3k | return obj; | 538 | 41.3k | } |
Line | Count | Source | 535 | 158M | { | 536 | 158M | Py_INCREF(obj); | 537 | 158M | return obj; | 538 | 158M | } |
Unexecuted instantiation: _sysconfig.c:_Py_NewRef _threadmodule.c:_Py_NewRef Line | Count | Source | 535 | 76 | { | 536 | 76 | Py_INCREF(obj); | 537 | 76 | return obj; | 538 | 76 | } |
Unexecuted instantiation: timemodule.c:_Py_NewRef Unexecuted instantiation: _typesmodule.c:_Py_NewRef Unexecuted instantiation: _typingmodule.c:_Py_NewRef Unexecuted instantiation: _weakref.c:_Py_NewRef Line | Count | Source | 535 | 53.7k | { | 536 | 53.7k | Py_INCREF(obj); | 537 | 53.7k | return obj; | 538 | 53.7k | } |
_functoolsmodule.c:_Py_NewRef Line | Count | Source | 535 | 581k | { | 536 | 581k | Py_INCREF(obj); | 537 | 581k | return obj; | 538 | 581k | } |
Unexecuted instantiation: _localemodule.c:_Py_NewRef Unexecuted instantiation: _opcode.c:_Py_NewRef Line | Count | Source | 535 | 1.27M | { | 536 | 1.27M | Py_INCREF(obj); | 537 | 1.27M | return obj; | 538 | 1.27M | } |
Unexecuted instantiation: _stat.c:_Py_NewRef Unexecuted instantiation: symtablemodule.c:_Py_NewRef Unexecuted instantiation: pwdmodule.c:_Py_NewRef Line | Count | Source | 535 | 288 | { | 536 | 288 | Py_INCREF(obj); | 537 | 288 | return obj; | 538 | 288 | } |
Unexecuted instantiation: frozen.c:_Py_NewRef Unexecuted instantiation: getbuildinfo.c:_Py_NewRef Unexecuted instantiation: peg_api.c:_Py_NewRef Unexecuted instantiation: file_tokenizer.c:_Py_NewRef Unexecuted instantiation: helpers.c:_Py_NewRef Unexecuted instantiation: myreadline.c:_Py_NewRef Line | Count | Source | 535 | 453M | { | 536 | 453M | Py_INCREF(obj); | 537 | 453M | return obj; | 538 | 453M | } |
Unexecuted instantiation: boolobject.c:_Py_NewRef Unexecuted instantiation: bytes_methods.c:_Py_NewRef bytearrayobject.c:_Py_NewRef Line | Count | Source | 535 | 15.4M | { | 536 | 15.4M | Py_INCREF(obj); | 537 | 15.4M | return obj; | 538 | 15.4M | } |
Unexecuted instantiation: capsule.c:_Py_NewRef Unexecuted instantiation: cellobject.c:_Py_NewRef Line | Count | Source | 535 | 93.7M | { | 536 | 93.7M | Py_INCREF(obj); | 537 | 93.7M | return obj; | 538 | 93.7M | } |
Line | Count | Source | 535 | 2.15M | { | 536 | 2.15M | Py_INCREF(obj); | 537 | 2.15M | return obj; | 538 | 2.15M | } |
Unexecuted instantiation: complexobject.c:_Py_NewRef Line | Count | Source | 535 | 20.8M | { | 536 | 20.8M | Py_INCREF(obj); | 537 | 20.8M | return obj; | 538 | 20.8M | } |
Line | Count | Source | 535 | 184 | { | 536 | 184 | Py_INCREF(obj); | 537 | 184 | return obj; | 538 | 184 | } |
Line | Count | Source | 535 | 46.8M | { | 536 | 46.8M | Py_INCREF(obj); | 537 | 46.8M | return obj; | 538 | 46.8M | } |
Unexecuted instantiation: fileobject.c:_Py_NewRef Line | Count | Source | 535 | 20.0M | { | 536 | 20.0M | Py_INCREF(obj); | 537 | 20.0M | return obj; | 538 | 20.0M | } |
Line | Count | Source | 535 | 19.2M | { | 536 | 19.2M | Py_INCREF(obj); | 537 | 19.2M | return obj; | 538 | 19.2M | } |
Unexecuted instantiation: interpolationobject.c:_Py_NewRef Line | Count | Source | 535 | 2.86M | { | 536 | 2.86M | Py_INCREF(obj); | 537 | 2.86M | return obj; | 538 | 2.86M | } |
lazyimportobject.c:_Py_NewRef Line | Count | Source | 535 | 304 | { | 536 | 304 | Py_INCREF(obj); | 537 | 304 | return obj; | 538 | 304 | } |
Line | Count | Source | 535 | 213k | { | 536 | 213k | Py_INCREF(obj); | 537 | 213k | return obj; | 538 | 213k | } |
methodobject.c:_Py_NewRef Line | Count | Source | 535 | 10.1M | { | 536 | 10.1M | Py_INCREF(obj); | 537 | 10.1M | return obj; | 538 | 10.1M | } |
Unexecuted instantiation: namespaceobject.c:_Py_NewRef Unexecuted instantiation: _contextvars.c:_Py_NewRef Line | Count | Source | 535 | 557k | { | 536 | 557k | Py_INCREF(obj); | 537 | 557k | return obj; | 538 | 557k | } |
Unexecuted instantiation: Python-tokenize.c:_Py_NewRef Unexecuted instantiation: asdl.c:_Py_NewRef Line | Count | Source | 535 | 29.7k | { | 536 | 29.7k | Py_INCREF(obj); | 537 | 29.7k | return obj; | 538 | 29.7k | } |
Unexecuted instantiation: ast.c:_Py_NewRef Unexecuted instantiation: ast_preprocess.c:_Py_NewRef Unexecuted instantiation: ast_unparse.c:_Py_NewRef Unexecuted instantiation: critical_section.c:_Py_NewRef Unexecuted instantiation: crossinterp.c:_Py_NewRef Unexecuted instantiation: getcopyright.c:_Py_NewRef Unexecuted instantiation: getplatform.c:_Py_NewRef Unexecuted instantiation: getversion.c:_Py_NewRef Unexecuted instantiation: optimizer.c:_Py_NewRef Unexecuted instantiation: pathconfig.c:_Py_NewRef Line | Count | Source | 535 | 99.4k | { | 536 | 99.4k | Py_INCREF(obj); | 537 | 99.4k | return obj; | 538 | 99.4k | } |
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 |
539 | | |
540 | | static inline PyObject* _Py_XNewRef(PyObject *obj) |
541 | 1.01G | { |
542 | 1.01G | Py_XINCREF(obj); |
543 | 1.01G | return obj; |
544 | 1.01G | } Unexecuted instantiation: bytesobject.c:_Py_XNewRef Unexecuted instantiation: call.c:_Py_XNewRef Line | Count | Source | 541 | 124M | { | 542 | 124M | Py_XINCREF(obj); | 543 | 124M | return obj; | 544 | 124M | } |
Unexecuted instantiation: genericaliasobject.c:_Py_XNewRef Unexecuted instantiation: floatobject.c:_Py_XNewRef Line | Count | Source | 541 | 38.5M | { | 542 | 38.5M | Py_XINCREF(obj); | 543 | 38.5M | return obj; | 544 | 38.5M | } |
Unexecuted instantiation: longobject.c:_Py_XNewRef Line | Count | Source | 541 | 231M | { | 542 | 231M | Py_XINCREF(obj); | 543 | 231M | return obj; | 544 | 231M | } |
memoryobject.c:_Py_XNewRef Line | Count | Source | 541 | 61 | { | 542 | 61 | Py_XINCREF(obj); | 543 | 61 | return obj; | 544 | 61 | } |
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 | 541 | 258k | { | 542 | 258k | Py_XINCREF(obj); | 543 | 258k | return obj; | 544 | 258k | } |
typevarobject.c:_Py_XNewRef Line | Count | Source | 541 | 1.10k | { | 542 | 1.10k | Py_XINCREF(obj); | 543 | 1.10k | return obj; | 544 | 1.10k | } |
Unexecuted instantiation: unicode_format.c:_Py_XNewRef Unexecuted instantiation: unicode_formatter.c:_Py_XNewRef Unexecuted instantiation: unicode_writer.c:_Py_XNewRef Unexecuted instantiation: unicodectype.c:_Py_XNewRef Unexecuted instantiation: unicodeobject.c:_Py_XNewRef Unexecuted instantiation: unionobject.c:_Py_XNewRef weakrefobject.c:_Py_XNewRef Line | Count | Source | 541 | 1.36M | { | 542 | 1.36M | Py_XINCREF(obj); | 543 | 1.36M | return obj; | 544 | 1.36M | } |
Unexecuted instantiation: _warnings.c:_Py_XNewRef bltinmodule.c:_Py_XNewRef Line | Count | Source | 541 | 1.31k | { | 542 | 1.31k | Py_XINCREF(obj); | 543 | 1.31k | return obj; | 544 | 1.31k | } |
Line | Count | Source | 541 | 93.5M | { | 542 | 93.5M | Py_XINCREF(obj); | 543 | 93.5M | return obj; | 544 | 93.5M | } |
Unexecuted instantiation: codecs.c:_Py_XNewRef Unexecuted instantiation: codegen.c:_Py_XNewRef Line | Count | Source | 541 | 9.26k | { | 542 | 9.26k | Py_XINCREF(obj); | 543 | 9.26k | return obj; | 544 | 9.26k | } |
Line | Count | Source | 541 | 61 | { | 542 | 61 | Py_XINCREF(obj); | 543 | 61 | return obj; | 544 | 61 | } |
Unexecuted instantiation: errors.c:_Py_XNewRef Unexecuted instantiation: flowgraph.c:_Py_XNewRef Unexecuted instantiation: frame.c:_Py_XNewRef Unexecuted instantiation: future.c:_Py_XNewRef Unexecuted instantiation: gc.c:_Py_XNewRef Unexecuted instantiation: gc_gil.c:_Py_XNewRef Unexecuted instantiation: getargs.c:_Py_XNewRef Unexecuted instantiation: ceval_gil.c:_Py_XNewRef Unexecuted instantiation: hamt.c:_Py_XNewRef Unexecuted instantiation: hashtable.c:_Py_XNewRef Line | Count | Source | 541 | 31.1k | { | 542 | 31.1k | Py_XINCREF(obj); | 543 | 31.1k | return obj; | 544 | 31.1k | } |
Unexecuted instantiation: importdl.c:_Py_XNewRef Unexecuted instantiation: initconfig.c:_Py_XNewRef Unexecuted instantiation: instrumentation.c:_Py_XNewRef Unexecuted instantiation: instruction_sequence.c:_Py_XNewRef Unexecuted instantiation: intrinsics.c:_Py_XNewRef Unexecuted instantiation: legacy_tracing.c:_Py_XNewRef Unexecuted instantiation: lock.c:_Py_XNewRef Unexecuted instantiation: marshal.c:_Py_XNewRef Unexecuted instantiation: modsupport.c:_Py_XNewRef Unexecuted instantiation: mysnprintf.c:_Py_XNewRef Unexecuted instantiation: parking_lot.c:_Py_XNewRef Unexecuted instantiation: preconfig.c:_Py_XNewRef Unexecuted instantiation: pyarena.c:_Py_XNewRef Unexecuted instantiation: pyctype.c:_Py_XNewRef Unexecuted instantiation: pyhash.c:_Py_XNewRef Unexecuted instantiation: pylifecycle.c:_Py_XNewRef Unexecuted instantiation: pymath.c:_Py_XNewRef Line | Count | Source | 541 | 1.10M | { | 542 | 1.10M | Py_XINCREF(obj); | 543 | 1.10M | return obj; | 544 | 1.10M | } |
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 structmember.c:_Py_XNewRef Line | Count | Source | 541 | 6.82M | { | 542 | 6.82M | Py_XINCREF(obj); | 543 | 6.82M | return obj; | 544 | 6.82M | } |
Unexecuted instantiation: symtable.c:_Py_XNewRef Line | Count | Source | 541 | 210 | { | 542 | 210 | Py_XINCREF(obj); | 543 | 210 | return obj; | 544 | 210 | } |
Unexecuted instantiation: thread.c:_Py_XNewRef Line | Count | Source | 541 | 134M | { | 542 | 134M | Py_XINCREF(obj); | 543 | 134M | return obj; | 544 | 134M | } |
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 | 541 | 209k | { | 542 | 209k | Py_XINCREF(obj); | 543 | 209k | return obj; | 544 | 209k | } |
Unexecuted instantiation: signalmodule.c:_Py_XNewRef Unexecuted instantiation: _tracemalloc.c:_Py_XNewRef Unexecuted instantiation: _suggestions.c:_Py_XNewRef _datetimemodule.c:_Py_XNewRef Line | Count | Source | 541 | 76 | { | 542 | 76 | Py_XINCREF(obj); | 543 | 76 | return obj; | 544 | 76 | } |
Unexecuted instantiation: _codecsmodule.c:_Py_XNewRef _collectionsmodule.c:_Py_XNewRef Line | Count | Source | 541 | 22.3k | { | 542 | 22.3k | Py_XINCREF(obj); | 543 | 22.3k | return obj; | 544 | 22.3k | } |
Unexecuted instantiation: errnomodule.c:_Py_XNewRef Unexecuted instantiation: _iomodule.c:_Py_XNewRef Unexecuted instantiation: iobase.c:_Py_XNewRef Unexecuted instantiation: fileio.c:_Py_XNewRef Unexecuted instantiation: bytesio.c:_Py_XNewRef Unexecuted instantiation: bufferedio.c:_Py_XNewRef Unexecuted instantiation: textio.c:_Py_XNewRef Unexecuted instantiation: stringio.c:_Py_XNewRef Unexecuted instantiation: itertoolsmodule.c:_Py_XNewRef Unexecuted instantiation: sre.c:_Py_XNewRef Unexecuted instantiation: _sysconfig.c:_Py_XNewRef _threadmodule.c:_Py_XNewRef Line | Count | Source | 541 | 152 | { | 542 | 152 | Py_XINCREF(obj); | 543 | 152 | return obj; | 544 | 152 | } |
Unexecuted instantiation: timemodule.c:_Py_XNewRef Unexecuted instantiation: _typesmodule.c:_Py_XNewRef Unexecuted instantiation: _typingmodule.c:_Py_XNewRef Unexecuted instantiation: _weakref.c:_Py_XNewRef Line | Count | Source | 541 | 32.1k | { | 542 | 32.1k | Py_XINCREF(obj); | 543 | 32.1k | return obj; | 544 | 32.1k | } |
_functoolsmodule.c:_Py_XNewRef Line | Count | Source | 541 | 36 | { | 542 | 36 | Py_XINCREF(obj); | 543 | 36 | return obj; | 544 | 36 | } |
Unexecuted instantiation: _localemodule.c:_Py_XNewRef Unexecuted instantiation: _opcode.c:_Py_XNewRef Unexecuted instantiation: _operator.c:_Py_XNewRef Unexecuted instantiation: _stat.c:_Py_XNewRef Unexecuted instantiation: symtablemodule.c:_Py_XNewRef Unexecuted instantiation: pwdmodule.c:_Py_XNewRef Line | Count | Source | 541 | 216 | { | 542 | 216 | Py_XINCREF(obj); | 543 | 216 | return obj; | 544 | 216 | } |
Unexecuted instantiation: frozen.c:_Py_XNewRef Unexecuted instantiation: getbuildinfo.c:_Py_XNewRef Unexecuted instantiation: peg_api.c:_Py_XNewRef Unexecuted instantiation: file_tokenizer.c:_Py_XNewRef Unexecuted instantiation: helpers.c:_Py_XNewRef Unexecuted instantiation: myreadline.c:_Py_XNewRef Line | Count | Source | 541 | 96.3M | { | 542 | 96.3M | Py_XINCREF(obj); | 543 | 96.3M | return obj; | 544 | 96.3M | } |
Unexecuted instantiation: boolobject.c:_Py_XNewRef Unexecuted instantiation: bytes_methods.c:_Py_XNewRef Unexecuted instantiation: bytearrayobject.c:_Py_XNewRef Unexecuted instantiation: capsule.c:_Py_XNewRef Line | Count | Source | 541 | 21.0M | { | 542 | 21.0M | Py_XINCREF(obj); | 543 | 21.0M | return obj; | 544 | 21.0M | } |
Unexecuted instantiation: classobject.c:_Py_XNewRef Line | Count | Source | 541 | 4.61k | { | 542 | 4.61k | Py_XINCREF(obj); | 543 | 4.61k | return obj; | 544 | 4.61k | } |
Unexecuted instantiation: complexobject.c:_Py_XNewRef descrobject.c:_Py_XNewRef Line | Count | Source | 541 | 110k | { | 542 | 110k | Py_XINCREF(obj); | 543 | 110k | return obj; | 544 | 110k | } |
Unexecuted instantiation: enumobject.c:_Py_XNewRef Unexecuted instantiation: genobject.c:_Py_XNewRef Unexecuted instantiation: fileobject.c:_Py_XNewRef frameobject.c:_Py_XNewRef Line | Count | Source | 541 | 18.9M | { | 542 | 18.9M | Py_XINCREF(obj); | 543 | 18.9M | return obj; | 544 | 18.9M | } |
Line | Count | Source | 541 | 61.2k | { | 542 | 61.2k | Py_XINCREF(obj); | 543 | 61.2k | return obj; | 544 | 61.2k | } |
Unexecuted instantiation: interpolationobject.c:_Py_XNewRef Unexecuted instantiation: iterobject.c:_Py_XNewRef lazyimportobject.c:_Py_XNewRef Line | Count | Source | 541 | 304 | { | 542 | 304 | Py_XINCREF(obj); | 543 | 304 | return obj; | 544 | 304 | } |
Unexecuted instantiation: odictobject.c:_Py_XNewRef methodobject.c:_Py_XNewRef Line | Count | Source | 541 | 249M | { | 542 | 249M | Py_XINCREF(obj); | 543 | 249M | return obj; | 544 | 249M | } |
Unexecuted instantiation: namespaceobject.c:_Py_XNewRef Unexecuted instantiation: _contextvars.c:_Py_XNewRef Unexecuted instantiation: Python-ast.c:_Py_XNewRef Unexecuted instantiation: Python-tokenize.c:_Py_XNewRef Unexecuted instantiation: asdl.c:_Py_XNewRef Unexecuted instantiation: assemble.c:_Py_XNewRef Unexecuted instantiation: ast.c:_Py_XNewRef Unexecuted instantiation: ast_preprocess.c:_Py_XNewRef Unexecuted instantiation: ast_unparse.c:_Py_XNewRef Unexecuted instantiation: critical_section.c:_Py_XNewRef Unexecuted instantiation: crossinterp.c:_Py_XNewRef Unexecuted instantiation: getcopyright.c:_Py_XNewRef Unexecuted instantiation: getplatform.c:_Py_XNewRef Unexecuted instantiation: getversion.c:_Py_XNewRef Unexecuted instantiation: optimizer.c:_Py_XNewRef Unexecuted instantiation: pathconfig.c:_Py_XNewRef Line | Count | Source | 541 | 99.4k | { | 542 | 99.4k | Py_XINCREF(obj); | 543 | 99.4k | return obj; | 544 | 99.4k | } |
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 |
545 | | |
546 | | // Py_NewRef() and Py_XNewRef() are exported as functions for the stable ABI. |
547 | | // Names overridden with macros by static inline functions for best |
548 | | // performances. |
549 | | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000 |
550 | 14.2G | # define Py_NewRef(obj) _Py_NewRef(_PyObject_CAST(obj)) |
551 | 959M | # define Py_XNewRef(obj) _Py_XNewRef(_PyObject_CAST(obj)) |
552 | | #else |
553 | | # define Py_NewRef(obj) _Py_NewRef(obj) |
554 | | # define Py_XNewRef(obj) _Py_XNewRef(obj) |
555 | | #endif |
556 | | |
557 | | |
558 | | #ifdef __cplusplus |
559 | | } |
560 | | #endif |
561 | | #endif // !_Py_REFCOUNT_H |