/src/cpython/Include/refcount.h
Line | Count | Source |
1 | | #ifndef _Py_REFCOUNT_H |
2 | | #define _Py_REFCOUNT_H |
3 | | #ifdef __cplusplus |
4 | | extern "C" { |
5 | | #endif |
6 | | |
7 | | |
8 | | /* |
9 | | Immortalization: |
10 | | |
11 | | The following indicates the immortalization strategy depending on the amount |
12 | | of available bits in the reference count field. All strategies are backwards |
13 | | compatible but the specific reference count value or immortalization check |
14 | | might change depending on the specializations for the underlying system. |
15 | | |
16 | | Proper deallocation of immortal instances requires distinguishing between |
17 | | statically allocated immortal instances vs those promoted by the runtime to be |
18 | | immortal. The latter should be the only instances that require |
19 | | cleanup during runtime finalization. |
20 | | */ |
21 | | |
22 | | #if SIZEOF_VOID_P > 4 |
23 | | /* |
24 | | In 64+ bit systems, any object whose 32 bit reference count is >= 2**31 |
25 | | will be treated as immortal. |
26 | | |
27 | | Using the lower 32 bits makes the value backwards compatible by allowing |
28 | | C-Extensions without the updated checks in Py_INCREF and Py_DECREF to safely |
29 | | increase and decrease the objects reference count. |
30 | | |
31 | | In order to offer sufficient resilience to C extensions using the stable ABI |
32 | | compiled against 3.11 or earlier, we set the initial value near the |
33 | | middle of the range (2**31, 2**32). That way the refcount can be |
34 | | off by ~1 billion without affecting immortality. |
35 | | |
36 | | Reference count increases will use saturated arithmetic, taking advantage of |
37 | | having all the lower 32 bits set, which will avoid the reference count to go |
38 | | beyond the refcount limit. Immortality checks for reference count decreases will |
39 | | be done by checking the bit sign flag in the lower 32 bits. |
40 | | |
41 | | To ensure that once an object becomes immortal, it remains immortal, the threshold |
42 | | for omitting increfs is much higher than for omitting decrefs. Consequently, once |
43 | | the refcount for an object exceeds _Py_IMMORTAL_MINIMUM_REFCNT it will gradually |
44 | | increase over time until it reaches _Py_IMMORTAL_INITIAL_REFCNT. |
45 | | */ |
46 | 22.8G | #define _Py_IMMORTAL_INITIAL_REFCNT (3ULL << 30) |
47 | 351 | #define _Py_IMMORTAL_MINIMUM_REFCNT (1ULL << 31) |
48 | 260M | #define _Py_STATIC_FLAG_BITS ((Py_ssize_t)(_Py_STATICALLY_ALLOCATED_FLAG | _Py_IMMORTAL_FLAGS)) |
49 | 260M | #define _Py_STATIC_IMMORTAL_INITIAL_REFCNT (((Py_ssize_t)_Py_IMMORTAL_INITIAL_REFCNT) | (_Py_STATIC_FLAG_BITS << 48)) |
50 | | |
51 | | #else |
52 | | /* |
53 | | In 32 bit systems, an object will be treated as immortal if its reference |
54 | | count equals or exceeds _Py_IMMORTAL_MINIMUM_REFCNT (2**30). |
55 | | |
56 | | Using the lower 30 bits makes the value backwards compatible by allowing |
57 | | C-Extensions without the updated checks in Py_INCREF and Py_DECREF to safely |
58 | | increase and decrease the objects reference count. The object would lose its |
59 | | immortality, but the execution would still be correct. |
60 | | |
61 | | Reference count increases and decreases will first go through an immortality |
62 | | check by comparing the reference count field to the minimum immortality refcount. |
63 | | */ |
64 | | #define _Py_IMMORTAL_INITIAL_REFCNT ((Py_ssize_t)(5L << 28)) |
65 | | #define _Py_IMMORTAL_MINIMUM_REFCNT ((Py_ssize_t)(1L << 30)) |
66 | | #define _Py_STATIC_IMMORTAL_INITIAL_REFCNT ((Py_ssize_t)(7L << 28)) |
67 | | #define _Py_STATIC_IMMORTAL_MINIMUM_REFCNT ((Py_ssize_t)(6L << 28)) |
68 | | #endif |
69 | | |
70 | | // Py_GIL_DISABLED builds indicate immortal objects using `ob_ref_local`, which is |
71 | | // always 32-bits. |
72 | | #ifdef Py_GIL_DISABLED |
73 | | #define _Py_IMMORTAL_REFCNT_LOCAL UINT32_MAX |
74 | | #endif |
75 | | |
76 | | |
77 | | #ifdef Py_GIL_DISABLED |
78 | | // The shared reference count uses the two least-significant bits to store |
79 | | // flags. The remaining bits are used to store the reference count. |
80 | | # define _Py_REF_SHARED_SHIFT 2 |
81 | | # define _Py_REF_SHARED_FLAG_MASK 0x3 |
82 | | |
83 | | // The shared flags are initialized to zero. |
84 | | # define _Py_REF_SHARED_INIT 0x0 |
85 | | # define _Py_REF_MAYBE_WEAKREF 0x1 |
86 | | # define _Py_REF_QUEUED 0x2 |
87 | | # define _Py_REF_MERGED 0x3 |
88 | | |
89 | | // Create a shared field from a refcnt and desired flags |
90 | | # define _Py_REF_SHARED(refcnt, flags) \ |
91 | | (((refcnt) << _Py_REF_SHARED_SHIFT) + (flags)) |
92 | | #endif // Py_GIL_DISABLED |
93 | | |
94 | | |
95 | | // Py_REFCNT() implementation for the stable ABI |
96 | | PyAPI_FUNC(Py_ssize_t) Py_REFCNT(PyObject *ob); |
97 | | |
98 | | #if defined(Py_LIMITED_API) && Py_LIMITED_API+0 >= 0x030e0000 |
99 | | // Stable ABI implements Py_REFCNT() as a function call |
100 | | // on limited C API version 3.14 and newer. |
101 | | #else |
102 | 1.15G | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { |
103 | 1.15G | #if !defined(Py_GIL_DISABLED) |
104 | 1.15G | return ob->ob_refcnt; |
105 | | #else |
106 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); |
107 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { |
108 | | return _Py_IMMORTAL_INITIAL_REFCNT; |
109 | | } |
110 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); |
111 | | return _Py_STATIC_CAST(Py_ssize_t, local) + |
112 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); |
113 | | #endif |
114 | 1.15G | } Line | Count | Source | 102 | 2.13M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 2.13M | #if !defined(Py_GIL_DISABLED) | 104 | 2.13M | return ob->ob_refcnt; | 105 | | #else | 106 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 107 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 108 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 109 | | } | 110 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 111 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 112 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 113 | | #endif | 114 | 2.13M | } |
Unexecuted instantiation: call.c:_Py_REFCNT Unexecuted instantiation: exceptions.c:_Py_REFCNT Unexecuted instantiation: genericaliasobject.c:_Py_REFCNT Unexecuted instantiation: floatobject.c:_Py_REFCNT Line | Count | Source | 102 | 351 | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 351 | #if !defined(Py_GIL_DISABLED) | 104 | 351 | return ob->ob_refcnt; | 105 | | #else | 106 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 107 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 108 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 109 | | } | 110 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 111 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 112 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 113 | | #endif | 114 | 351 | } |
Line | Count | Source | 102 | 448 | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 448 | #if !defined(Py_GIL_DISABLED) | 104 | 448 | return ob->ob_refcnt; | 105 | | #else | 106 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 107 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 108 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 109 | | } | 110 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 111 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 112 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 113 | | #endif | 114 | 448 | } |
Line | Count | Source | 102 | 682M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 682M | #if !defined(Py_GIL_DISABLED) | 104 | 682M | return ob->ob_refcnt; | 105 | | #else | 106 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 107 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 108 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 109 | | } | 110 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 111 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 112 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 113 | | #endif | 114 | 682M | } |
Unexecuted instantiation: memoryobject.c:_Py_REFCNT Unexecuted instantiation: moduleobject.c:_Py_REFCNT Line | Count | Source | 102 | 59.4M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 59.4M | #if !defined(Py_GIL_DISABLED) | 104 | 59.4M | return ob->ob_refcnt; | 105 | | #else | 106 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 107 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 108 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 109 | | } | 110 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 111 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 112 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 113 | | #endif | 114 | 59.4M | } |
Unexecuted instantiation: obmalloc.c:_Py_REFCNT Unexecuted instantiation: picklebufobject.c:_Py_REFCNT Unexecuted instantiation: rangeobject.c:_Py_REFCNT Line | Count | Source | 102 | 3.79k | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 3.79k | #if !defined(Py_GIL_DISABLED) | 104 | 3.79k | return ob->ob_refcnt; | 105 | | #else | 106 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 107 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 108 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 109 | | } | 110 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 111 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 112 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 113 | | #endif | 114 | 3.79k | } |
Unexecuted instantiation: sliceobject.c:_Py_REFCNT Unexecuted instantiation: structseq.c:_Py_REFCNT Unexecuted instantiation: templateobject.c:_Py_REFCNT Line | Count | Source | 102 | 123k | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 123k | #if !defined(Py_GIL_DISABLED) | 104 | 123k | return ob->ob_refcnt; | 105 | | #else | 106 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 107 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 108 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 109 | | } | 110 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 111 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 112 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 113 | | #endif | 114 | 123k | } |
Line | Count | Source | 102 | 224 | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 224 | #if !defined(Py_GIL_DISABLED) | 104 | 224 | return ob->ob_refcnt; | 105 | | #else | 106 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 107 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 108 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 109 | | } | 110 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 111 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 112 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 113 | | #endif | 114 | 224 | } |
Unexecuted instantiation: typevarobject.c:_Py_REFCNT unicode_format.c:_Py_REFCNT Line | Count | Source | 102 | 9.62M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 9.62M | #if !defined(Py_GIL_DISABLED) | 104 | 9.62M | return ob->ob_refcnt; | 105 | | #else | 106 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 107 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 108 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 109 | | } | 110 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 111 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 112 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 113 | | #endif | 114 | 9.62M | } |
Unexecuted instantiation: unicode_formatter.c:_Py_REFCNT Unexecuted instantiation: unicode_writer.c:_Py_REFCNT Unexecuted instantiation: unicodectype.c:_Py_REFCNT unicodeobject.c:_Py_REFCNT Line | Count | Source | 102 | 80.9M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 80.9M | #if !defined(Py_GIL_DISABLED) | 104 | 80.9M | return ob->ob_refcnt; | 105 | | #else | 106 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 107 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 108 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 109 | | } | 110 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 111 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 112 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 113 | | #endif | 114 | 80.9M | } |
Unexecuted instantiation: unionobject.c:_Py_REFCNT weakrefobject.c:_Py_REFCNT Line | Count | Source | 102 | 48.8M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 48.8M | #if !defined(Py_GIL_DISABLED) | 104 | 48.8M | return ob->ob_refcnt; | 105 | | #else | 106 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 107 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 108 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 109 | | } | 110 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 111 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 112 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 113 | | #endif | 114 | 48.8M | } |
Unexecuted instantiation: _warnings.c:_Py_REFCNT Line | Count | Source | 102 | 25.8M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 25.8M | #if !defined(Py_GIL_DISABLED) | 104 | 25.8M | return ob->ob_refcnt; | 105 | | #else | 106 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 107 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 108 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 109 | | } | 110 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 111 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 112 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 113 | | #endif | 114 | 25.8M | } |
Unexecuted instantiation: ceval.c:_Py_REFCNT Unexecuted instantiation: codecs.c:_Py_REFCNT Unexecuted instantiation: codegen.c:_Py_REFCNT Unexecuted instantiation: compile.c:_Py_REFCNT Unexecuted instantiation: context.c:_Py_REFCNT Unexecuted instantiation: errors.c:_Py_REFCNT Unexecuted instantiation: flowgraph.c:_Py_REFCNT Line | Count | Source | 102 | 50.0M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 50.0M | #if !defined(Py_GIL_DISABLED) | 104 | 50.0M | return ob->ob_refcnt; | 105 | | #else | 106 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 107 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 108 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 109 | | } | 110 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 111 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 112 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 113 | | #endif | 114 | 50.0M | } |
Unexecuted instantiation: future.c:_Py_REFCNT Line | Count | Source | 102 | 72.1M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 72.1M | #if !defined(Py_GIL_DISABLED) | 104 | 72.1M | return ob->ob_refcnt; | 105 | | #else | 106 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 107 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 108 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 109 | | } | 110 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 111 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 112 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 113 | | #endif | 114 | 72.1M | } |
Unexecuted instantiation: gc_gil.c:_Py_REFCNT Unexecuted instantiation: getargs.c:_Py_REFCNT Unexecuted instantiation: ceval_gil.c:_Py_REFCNT Unexecuted instantiation: hamt.c:_Py_REFCNT Unexecuted instantiation: hashtable.c:_Py_REFCNT Line | Count | Source | 102 | 32 | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 32 | #if !defined(Py_GIL_DISABLED) | 104 | 32 | return ob->ob_refcnt; | 105 | | #else | 106 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 107 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 108 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 109 | | } | 110 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 111 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 112 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 113 | | #endif | 114 | 32 | } |
Unexecuted instantiation: importdl.c:_Py_REFCNT Unexecuted instantiation: initconfig.c:_Py_REFCNT Unexecuted instantiation: instrumentation.c:_Py_REFCNT Unexecuted instantiation: instruction_sequence.c:_Py_REFCNT Unexecuted instantiation: intrinsics.c:_Py_REFCNT Unexecuted instantiation: legacy_tracing.c:_Py_REFCNT Unexecuted instantiation: lock.c:_Py_REFCNT Line | Count | Source | 102 | 74.7k | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 74.7k | #if !defined(Py_GIL_DISABLED) | 104 | 74.7k | return ob->ob_refcnt; | 105 | | #else | 106 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 107 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 108 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 109 | | } | 110 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 111 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 112 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 113 | | #endif | 114 | 74.7k | } |
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 | 102 | 2 | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 2 | #if !defined(Py_GIL_DISABLED) | 104 | 2 | return ob->ob_refcnt; | 105 | | #else | 106 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 107 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 108 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 109 | | } | 110 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 111 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 112 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 113 | | #endif | 114 | 2 | } |
Unexecuted instantiation: thread.c:_Py_REFCNT Unexecuted instantiation: traceback.c:_Py_REFCNT Unexecuted instantiation: tracemalloc.c:_Py_REFCNT Unexecuted instantiation: getopt.c:_Py_REFCNT Unexecuted instantiation: pystrcmp.c:_Py_REFCNT Unexecuted instantiation: pystrtod.c:_Py_REFCNT Unexecuted instantiation: pystrhex.c:_Py_REFCNT Unexecuted instantiation: dtoa.c:_Py_REFCNT Unexecuted instantiation: fileutils.c:_Py_REFCNT Unexecuted instantiation: suggestions.c:_Py_REFCNT Unexecuted instantiation: perf_trampoline.c:_Py_REFCNT Unexecuted instantiation: perf_jit_trampoline.c:_Py_REFCNT Unexecuted instantiation: remote_debugging.c:_Py_REFCNT Unexecuted instantiation: dynload_shlib.c:_Py_REFCNT Unexecuted instantiation: config.c:_Py_REFCNT Unexecuted instantiation: gcmodule.c:_Py_REFCNT Unexecuted instantiation: _asynciomodule.c:_Py_REFCNT Unexecuted instantiation: atexitmodule.c:_Py_REFCNT Unexecuted instantiation: faulthandler.c:_Py_REFCNT Unexecuted instantiation: posixmodule.c:_Py_REFCNT Unexecuted instantiation: signalmodule.c:_Py_REFCNT Unexecuted instantiation: _tracemalloc.c:_Py_REFCNT Unexecuted instantiation: _suggestions.c:_Py_REFCNT Unexecuted instantiation: _datetimemodule.c:_Py_REFCNT Unexecuted instantiation: _codecsmodule.c:_Py_REFCNT Unexecuted instantiation: _collectionsmodule.c:_Py_REFCNT Unexecuted instantiation: errnomodule.c:_Py_REFCNT Unexecuted instantiation: _iomodule.c:_Py_REFCNT Line | Count | Source | 102 | 151k | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 151k | #if !defined(Py_GIL_DISABLED) | 104 | 151k | return ob->ob_refcnt; | 105 | | #else | 106 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 107 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 108 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 109 | | } | 110 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 111 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 112 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 113 | | #endif | 114 | 151k | } |
Unexecuted instantiation: fileio.c:_Py_REFCNT Line | Count | Source | 102 | 2.30k | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 2.30k | #if !defined(Py_GIL_DISABLED) | 104 | 2.30k | return ob->ob_refcnt; | 105 | | #else | 106 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 107 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 108 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 109 | | } | 110 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 111 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 112 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 113 | | #endif | 114 | 2.30k | } |
Unexecuted instantiation: bufferedio.c:_Py_REFCNT Unexecuted instantiation: textio.c:_Py_REFCNT Unexecuted instantiation: stringio.c:_Py_REFCNT itertoolsmodule.c:_Py_REFCNT Line | Count | Source | 102 | 820 | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 820 | #if !defined(Py_GIL_DISABLED) | 104 | 820 | return ob->ob_refcnt; | 105 | | #else | 106 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 107 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 108 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 109 | | } | 110 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 111 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 112 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 113 | | #endif | 114 | 820 | } |
Unexecuted instantiation: sre.c:_Py_REFCNT Unexecuted instantiation: _sysconfig.c:_Py_REFCNT Unexecuted instantiation: _threadmodule.c:_Py_REFCNT Unexecuted instantiation: timemodule.c:_Py_REFCNT Unexecuted instantiation: _typesmodule.c:_Py_REFCNT Unexecuted instantiation: _typingmodule.c:_Py_REFCNT Unexecuted instantiation: _weakref.c:_Py_REFCNT Unexecuted instantiation: _abc.c:_Py_REFCNT _functoolsmodule.c:_Py_REFCNT Line | Count | Source | 102 | 219k | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 219k | #if !defined(Py_GIL_DISABLED) | 104 | 219k | return ob->ob_refcnt; | 105 | | #else | 106 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 107 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 108 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 109 | | } | 110 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 111 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 112 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 113 | | #endif | 114 | 219k | } |
Unexecuted instantiation: _localemodule.c:_Py_REFCNT Unexecuted instantiation: _opcode.c:_Py_REFCNT Unexecuted instantiation: _operator.c:_Py_REFCNT Unexecuted instantiation: _stat.c:_Py_REFCNT Unexecuted instantiation: symtablemodule.c:_Py_REFCNT Unexecuted instantiation: pwdmodule.c:_Py_REFCNT Unexecuted instantiation: getpath.c:_Py_REFCNT Unexecuted instantiation: frozen.c:_Py_REFCNT Unexecuted instantiation: getbuildinfo.c:_Py_REFCNT Unexecuted instantiation: peg_api.c:_Py_REFCNT Unexecuted instantiation: file_tokenizer.c:_Py_REFCNT Unexecuted instantiation: helpers.c:_Py_REFCNT Unexecuted instantiation: myreadline.c:_Py_REFCNT Unexecuted instantiation: abstract.c:_Py_REFCNT Unexecuted instantiation: boolobject.c:_Py_REFCNT Unexecuted instantiation: bytes_methods.c:_Py_REFCNT Unexecuted instantiation: bytearrayobject.c:_Py_REFCNT Unexecuted instantiation: capsule.c:_Py_REFCNT Unexecuted instantiation: cellobject.c:_Py_REFCNT Unexecuted instantiation: classobject.c:_Py_REFCNT Line | Count | Source | 102 | 106k | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 106k | #if !defined(Py_GIL_DISABLED) | 104 | 106k | return ob->ob_refcnt; | 105 | | #else | 106 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 107 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 108 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 109 | | } | 110 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 111 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 112 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 113 | | #endif | 114 | 106k | } |
Unexecuted instantiation: complexobject.c:_Py_REFCNT Unexecuted instantiation: descrobject.c:_Py_REFCNT Line | Count | Source | 102 | 96.8M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 96.8M | #if !defined(Py_GIL_DISABLED) | 104 | 96.8M | return ob->ob_refcnt; | 105 | | #else | 106 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 107 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 108 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 109 | | } | 110 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 111 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 112 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 113 | | #endif | 114 | 96.8M | } |
Unexecuted instantiation: genobject.c:_Py_REFCNT Unexecuted instantiation: fileobject.c:_Py_REFCNT Unexecuted instantiation: frameobject.c:_Py_REFCNT Line | Count | Source | 102 | 25.7M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 25.7M | #if !defined(Py_GIL_DISABLED) | 104 | 25.7M | return ob->ob_refcnt; | 105 | | #else | 106 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 107 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 108 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 109 | | } | 110 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 111 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 112 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 113 | | #endif | 114 | 25.7M | } |
Unexecuted instantiation: interpolationobject.c:_Py_REFCNT Unexecuted instantiation: iterobject.c:_Py_REFCNT Unexecuted instantiation: lazyimportobject.c:_Py_REFCNT Line | Count | Source | 102 | 12 | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 12 | #if !defined(Py_GIL_DISABLED) | 104 | 12 | return ob->ob_refcnt; | 105 | | #else | 106 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 107 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 108 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 109 | | } | 110 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 111 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 112 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 113 | | #endif | 114 | 12 | } |
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 |
115 | | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000 |
116 | 783M | # define Py_REFCNT(ob) _Py_REFCNT(_PyObject_CAST(ob)) |
117 | | #else |
118 | | # define Py_REFCNT(ob) _Py_REFCNT(ob) |
119 | | #endif |
120 | | #endif |
121 | | |
122 | | #ifndef _Py_OPAQUE_PYOBJECT |
123 | | static inline Py_ALWAYS_INLINE int _Py_IsImmortal(PyObject *op) |
124 | 35.0G | { |
125 | | #if defined(Py_GIL_DISABLED) |
126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == |
127 | | _Py_IMMORTAL_REFCNT_LOCAL); |
128 | | #elif SIZEOF_VOID_P > 4 |
129 | 35.0G | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; |
130 | | #else |
131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; |
132 | | #endif |
133 | 35.0G | } bytesobject.c:_Py_IsImmortal Line | Count | Source | 124 | 5.18M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 5.18M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 5.18M | } |
Line | Count | Source | 124 | 154M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 154M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 154M | } |
exceptions.c:_Py_IsImmortal Line | Count | Source | 124 | 180M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 180M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 180M | } |
genericaliasobject.c:_Py_IsImmortal Line | Count | Source | 124 | 322 | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 322 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 322 | } |
floatobject.c:_Py_IsImmortal Line | Count | Source | 124 | 281k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 281k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 281k | } |
listobject.c:_Py_IsImmortal Line | Count | Source | 124 | 2.02G | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 2.02G | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 2.02G | } |
longobject.c:_Py_IsImmortal Line | Count | Source | 124 | 53.5M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 53.5M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 53.5M | } |
dictobject.c:_Py_IsImmortal Line | Count | Source | 124 | 2.03G | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 2.03G | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 2.03G | } |
memoryobject.c:_Py_IsImmortal Line | Count | Source | 124 | 3.11M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 3.11M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 3.11M | } |
moduleobject.c:_Py_IsImmortal Line | Count | Source | 124 | 3.71M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 3.71M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 3.71M | } |
Line | Count | Source | 124 | 993M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 993M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 993M | } |
Unexecuted instantiation: obmalloc.c:_Py_IsImmortal Unexecuted instantiation: picklebufobject.c:_Py_IsImmortal rangeobject.c:_Py_IsImmortal Line | Count | Source | 124 | 55.2M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 55.2M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 55.2M | } |
setobject.c:_Py_IsImmortal Line | Count | Source | 124 | 12.9M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 12.9M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 12.9M | } |
sliceobject.c:_Py_IsImmortal Line | Count | Source | 124 | 257M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 257M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 257M | } |
structseq.c:_Py_IsImmortal Line | Count | Source | 124 | 8.71M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 8.71M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 8.71M | } |
templateobject.c:_Py_IsImmortal Line | Count | Source | 124 | 8 | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 8 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 8 | } |
tupleobject.c:_Py_IsImmortal Line | Count | Source | 124 | 11.6G | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 11.6G | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 11.6G | } |
typeobject.c:_Py_IsImmortal Line | Count | Source | 124 | 1.22G | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 1.22G | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 1.22G | } |
typevarobject.c:_Py_IsImmortal Line | Count | Source | 124 | 1.97k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 1.97k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 1.97k | } |
unicode_format.c:_Py_IsImmortal Line | Count | Source | 124 | 80.0M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 80.0M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 80.0M | } |
unicode_formatter.c:_Py_IsImmortal Line | Count | Source | 124 | 512 | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 512 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 512 | } |
unicode_writer.c:_Py_IsImmortal Line | Count | Source | 124 | 21.4M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 21.4M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 21.4M | } |
Unexecuted instantiation: unicodectype.c:_Py_IsImmortal unicodeobject.c:_Py_IsImmortal Line | Count | Source | 124 | 227M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 227M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 227M | } |
unionobject.c:_Py_IsImmortal Line | Count | Source | 124 | 2.62k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 2.62k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 2.62k | } |
weakrefobject.c:_Py_IsImmortal Line | Count | Source | 124 | 72.2k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 72.2k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 72.2k | } |
_warnings.c:_Py_IsImmortal Line | Count | Source | 124 | 52.4M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 52.4M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 52.4M | } |
bltinmodule.c:_Py_IsImmortal Line | Count | Source | 124 | 2.21G | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 2.21G | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 2.21G | } |
Line | Count | Source | 124 | 10.4G | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 10.4G | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 10.4G | } |
Line | Count | Source | 124 | 9.02M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 9.02M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 9.02M | } |
Line | Count | Source | 124 | 76.8k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 76.8k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 76.8k | } |
Line | Count | Source | 124 | 356k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 356k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 356k | } |
Line | Count | Source | 124 | 64 | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 64 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 64 | } |
Line | Count | Source | 124 | 90.8M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 90.8M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 90.8M | } |
flowgraph.c:_Py_IsImmortal Line | Count | Source | 124 | 40.2k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 40.2k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 40.2k | } |
Line | Count | Source | 124 | 102M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 102M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 102M | } |
Unexecuted instantiation: future.c:_Py_IsImmortal Line | Count | Source | 124 | 673M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 673M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 673M | } |
Unexecuted instantiation: gc_gil.c:_Py_IsImmortal Line | Count | Source | 124 | 9.49M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 9.49M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 9.49M | } |
Unexecuted instantiation: ceval_gil.c:_Py_IsImmortal Unexecuted instantiation: hamt.c:_Py_IsImmortal Unexecuted instantiation: hashtable.c:_Py_IsImmortal Line | Count | Source | 124 | 23.5M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 23.5M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 23.5M | } |
importdl.c:_Py_IsImmortal Line | Count | Source | 124 | 2.74k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 2.74k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 2.74k | } |
initconfig.c:_Py_IsImmortal Line | Count | Source | 124 | 4.54k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 4.54k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 4.54k | } |
instrumentation.c:_Py_IsImmortal Line | Count | Source | 124 | 768 | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 768 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 768 | } |
Unexecuted instantiation: instruction_sequence.c:_Py_IsImmortal intrinsics.c:_Py_IsImmortal Line | Count | Source | 124 | 64.1k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 64.1k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 64.1k | } |
Unexecuted instantiation: legacy_tracing.c:_Py_IsImmortal Unexecuted instantiation: lock.c:_Py_IsImmortal Line | Count | Source | 124 | 1.20M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 1.20M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 1.20M | } |
modsupport.c:_Py_IsImmortal Line | Count | Source | 124 | 26.2k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 26.2k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 26.2k | } |
Unexecuted instantiation: mysnprintf.c:_Py_IsImmortal Unexecuted instantiation: parking_lot.c:_Py_IsImmortal Unexecuted instantiation: preconfig.c:_Py_IsImmortal Line | Count | Source | 124 | 3.16M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 3.16M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 3.16M | } |
Unexecuted instantiation: pyctype.c:_Py_IsImmortal Unexecuted instantiation: pyhash.c:_Py_IsImmortal pylifecycle.c:_Py_IsImmortal Line | Count | Source | 124 | 1.15k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 1.15k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 1.15k | } |
Unexecuted instantiation: pymath.c:_Py_IsImmortal Unexecuted instantiation: pystate.c:_Py_IsImmortal pythonrun.c:_Py_IsImmortal Line | Count | Source | 124 | 1.35k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 1.35k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 1.35k | } |
Unexecuted instantiation: pytime.c:_Py_IsImmortal Unexecuted instantiation: qsbr.c:_Py_IsImmortal Unexecuted instantiation: bootstrap_hash.c:_Py_IsImmortal specialize.c:_Py_IsImmortal Line | Count | Source | 124 | 2.05M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 2.05M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 2.05M | } |
structmember.c:_Py_IsImmortal Line | Count | Source | 124 | 2.26k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 2.26k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 2.26k | } |
symtable.c:_Py_IsImmortal Line | Count | Source | 124 | 438k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 438k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 438k | } |
sysmodule.c:_Py_IsImmortal Line | Count | Source | 124 | 4.40M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 4.40M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 4.40M | } |
Unexecuted instantiation: thread.c:_Py_IsImmortal traceback.c:_Py_IsImmortal Line | Count | Source | 124 | 158M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 158M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 158M | } |
Unexecuted instantiation: tracemalloc.c:_Py_IsImmortal Unexecuted instantiation: getopt.c:_Py_IsImmortal Unexecuted instantiation: pystrcmp.c:_Py_IsImmortal Unexecuted instantiation: pystrtod.c:_Py_IsImmortal Unexecuted instantiation: pystrhex.c:_Py_IsImmortal Unexecuted instantiation: dtoa.c:_Py_IsImmortal fileutils.c:_Py_IsImmortal Line | Count | Source | 124 | 8.62k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 8.62k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 8.62k | } |
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 | 124 | 6 | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 6 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 6 | } |
Unexecuted instantiation: config.c:_Py_IsImmortal Unexecuted instantiation: gcmodule.c:_Py_IsImmortal _asynciomodule.c:_Py_IsImmortal Line | Count | Source | 124 | 16 | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 16 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 16 | } |
atexitmodule.c:_Py_IsImmortal Line | Count | Source | 124 | 8 | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 8 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 8 | } |
Unexecuted instantiation: faulthandler.c:_Py_IsImmortal posixmodule.c:_Py_IsImmortal Line | Count | Source | 124 | 4.79M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 4.79M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 4.79M | } |
signalmodule.c:_Py_IsImmortal Line | Count | Source | 124 | 64 | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 64 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 64 | } |
Unexecuted instantiation: _tracemalloc.c:_Py_IsImmortal Unexecuted instantiation: _suggestions.c:_Py_IsImmortal _datetimemodule.c:_Py_IsImmortal Line | Count | Source | 124 | 1.84k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 1.84k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 1.84k | } |
Unexecuted instantiation: _codecsmodule.c:_Py_IsImmortal _collectionsmodule.c:_Py_IsImmortal Line | Count | Source | 124 | 99.8k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 99.8k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 99.8k | } |
Unexecuted instantiation: errnomodule.c:_Py_IsImmortal _iomodule.c:_Py_IsImmortal Line | Count | Source | 124 | 2.50M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 2.50M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 2.50M | } |
Line | Count | Source | 124 | 2.72M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 2.72M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 2.72M | } |
Line | Count | Source | 124 | 121k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 121k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 121k | } |
Line | Count | Source | 124 | 332k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 332k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 332k | } |
bufferedio.c:_Py_IsImmortal Line | Count | Source | 124 | 10.3M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 10.3M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 10.3M | } |
Line | Count | Source | 124 | 1.07M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 1.07M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 1.07M | } |
stringio.c:_Py_IsImmortal Line | Count | Source | 124 | 307k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 307k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 307k | } |
itertoolsmodule.c:_Py_IsImmortal Line | Count | Source | 124 | 96.8k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 96.8k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 96.8k | } |
Line | Count | Source | 124 | 400M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 400M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 400M | } |
Unexecuted instantiation: _sysconfig.c:_Py_IsImmortal _threadmodule.c:_Py_IsImmortal Line | Count | Source | 124 | 28.3k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 28.3k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 28.3k | } |
timemodule.c:_Py_IsImmortal Line | Count | Source | 124 | 96 | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 96 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 96 | } |
Unexecuted instantiation: _typesmodule.c:_Py_IsImmortal Unexecuted instantiation: _typingmodule.c:_Py_IsImmortal Unexecuted instantiation: _weakref.c:_Py_IsImmortal Line | Count | Source | 124 | 128k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 128k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 128k | } |
_functoolsmodule.c:_Py_IsImmortal Line | Count | Source | 124 | 873k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 873k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 873k | } |
Unexecuted instantiation: _localemodule.c:_Py_IsImmortal Unexecuted instantiation: _opcode.c:_Py_IsImmortal _operator.c:_Py_IsImmortal Line | Count | Source | 124 | 558k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 558k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 558k | } |
Unexecuted instantiation: _stat.c:_Py_IsImmortal Unexecuted instantiation: symtablemodule.c:_Py_IsImmortal Unexecuted instantiation: pwdmodule.c:_Py_IsImmortal Line | Count | Source | 124 | 1.05k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 1.05k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 1.05k | } |
Unexecuted instantiation: frozen.c:_Py_IsImmortal Unexecuted instantiation: getbuildinfo.c:_Py_IsImmortal Unexecuted instantiation: peg_api.c:_Py_IsImmortal Unexecuted instantiation: file_tokenizer.c:_Py_IsImmortal Line | Count | Source | 124 | 18.5k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 18.5k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 18.5k | } |
Unexecuted instantiation: myreadline.c:_Py_IsImmortal abstract.c:_Py_IsImmortal Line | Count | Source | 124 | 744M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 744M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 744M | } |
Unexecuted instantiation: boolobject.c:_Py_IsImmortal Unexecuted instantiation: bytes_methods.c:_Py_IsImmortal bytearrayobject.c:_Py_IsImmortal Line | Count | Source | 124 | 4.31M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 4.31M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 4.31M | } |
Line | Count | Source | 124 | 18 | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 18 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 18 | } |
cellobject.c:_Py_IsImmortal Line | Count | Source | 124 | 521k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 521k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 521k | } |
classobject.c:_Py_IsImmortal Line | Count | Source | 124 | 94.3M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 94.3M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 94.3M | } |
codeobject.c:_Py_IsImmortal Line | Count | Source | 124 | 607k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 607k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 607k | } |
Unexecuted instantiation: complexobject.c:_Py_IsImmortal descrobject.c:_Py_IsImmortal Line | Count | Source | 124 | 73.1M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 73.1M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 73.1M | } |
enumobject.c:_Py_IsImmortal Line | Count | Source | 124 | 240M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 240M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 240M | } |
genobject.c:_Py_IsImmortal Line | Count | Source | 124 | 136M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 136M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 136M | } |
fileobject.c:_Py_IsImmortal Line | Count | Source | 124 | 402k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 402k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 402k | } |
frameobject.c:_Py_IsImmortal Line | Count | Source | 124 | 33.8M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 33.8M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 33.8M | } |
funcobject.c:_Py_IsImmortal Line | Count | Source | 124 | 142M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 142M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 142M | } |
interpolationobject.c:_Py_IsImmortal Line | Count | Source | 124 | 32 | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 32 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 32 | } |
iterobject.c:_Py_IsImmortal Line | Count | Source | 124 | 3.55M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 3.55M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 3.55M | } |
lazyimportobject.c:_Py_IsImmortal Line | Count | Source | 124 | 224 | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 224 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 224 | } |
odictobject.c:_Py_IsImmortal Line | Count | Source | 124 | 14.2k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 14.2k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 14.2k | } |
methodobject.c:_Py_IsImmortal Line | Count | Source | 124 | 335M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 335M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 335M | } |
namespaceobject.c:_Py_IsImmortal Line | Count | Source | 124 | 40 | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 40 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 40 | } |
Unexecuted instantiation: _contextvars.c:_Py_IsImmortal Python-ast.c:_Py_IsImmortal Line | Count | Source | 124 | 2.30M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 2.30M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 2.30M | } |
Python-tokenize.c:_Py_IsImmortal Line | Count | Source | 124 | 252 | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 252 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 252 | } |
Unexecuted instantiation: asdl.c:_Py_IsImmortal assemble.c:_Py_IsImmortal Line | Count | Source | 124 | 32.1k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 32.1k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 32.1k | } |
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 | 124 | 117k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 117k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 117k | } |
pegen_errors.c:_Py_IsImmortal Line | Count | Source | 124 | 34.3k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 34.3k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 34.3k | } |
Unexecuted instantiation: parser.c:_Py_IsImmortal Unexecuted instantiation: buffer.c:_Py_IsImmortal Line | Count | Source | 124 | 14.1k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 14.1k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 14.1k | } |
Line | Count | Source | 124 | 18.4k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 18.4k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 18.4k | } |
readline_tokenizer.c:_Py_IsImmortal Line | Count | Source | 124 | 174 | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 174 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 174 | } |
Unexecuted instantiation: string_tokenizer.c:_Py_IsImmortal Unexecuted instantiation: utf8_tokenizer.c:_Py_IsImmortal Unexecuted instantiation: getcompiler.c:_Py_IsImmortal Unexecuted instantiation: mystrtoul.c:_Py_IsImmortal Unexecuted instantiation: token.c:_Py_IsImmortal Unexecuted instantiation: action_helpers.c:_Py_IsImmortal string_parser.c:_Py_IsImmortal Line | Count | Source | 124 | 35.8k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 35.8k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 35.8k | } |
|
134 | 37.3G | #define _Py_IsImmortal(op) _Py_IsImmortal(_PyObject_CAST(op)) |
135 | | |
136 | | |
137 | | static inline Py_ALWAYS_INLINE int _Py_IsStaticImmortal(PyObject *op) |
138 | 0 | { |
139 | 0 | #if defined(Py_GIL_DISABLED) || SIZEOF_VOID_P > 4 |
140 | 0 | return (op->ob_flags & _Py_STATICALLY_ALLOCATED_FLAG) != 0; |
141 | 0 | #else |
142 | 0 | return op->ob_refcnt >= _Py_STATIC_IMMORTAL_MINIMUM_REFCNT; |
143 | 0 | #endif |
144 | 0 | } Unexecuted instantiation: bytesobject.c:_Py_IsStaticImmortal Unexecuted instantiation: call.c:_Py_IsStaticImmortal Unexecuted instantiation: exceptions.c:_Py_IsStaticImmortal Unexecuted instantiation: genericaliasobject.c:_Py_IsStaticImmortal Unexecuted instantiation: floatobject.c:_Py_IsStaticImmortal Unexecuted instantiation: listobject.c:_Py_IsStaticImmortal Unexecuted instantiation: longobject.c:_Py_IsStaticImmortal Unexecuted instantiation: dictobject.c:_Py_IsStaticImmortal Unexecuted instantiation: memoryobject.c:_Py_IsStaticImmortal Unexecuted instantiation: moduleobject.c:_Py_IsStaticImmortal Unexecuted instantiation: object.c:_Py_IsStaticImmortal Unexecuted instantiation: obmalloc.c:_Py_IsStaticImmortal Unexecuted instantiation: picklebufobject.c:_Py_IsStaticImmortal Unexecuted instantiation: rangeobject.c:_Py_IsStaticImmortal Unexecuted instantiation: setobject.c:_Py_IsStaticImmortal Unexecuted instantiation: sliceobject.c:_Py_IsStaticImmortal Unexecuted instantiation: structseq.c:_Py_IsStaticImmortal Unexecuted instantiation: templateobject.c:_Py_IsStaticImmortal Unexecuted instantiation: tupleobject.c:_Py_IsStaticImmortal Unexecuted instantiation: typeobject.c:_Py_IsStaticImmortal Unexecuted instantiation: typevarobject.c:_Py_IsStaticImmortal Unexecuted instantiation: unicode_format.c:_Py_IsStaticImmortal Unexecuted instantiation: unicode_formatter.c:_Py_IsStaticImmortal Unexecuted instantiation: unicode_writer.c:_Py_IsStaticImmortal Unexecuted instantiation: unicodectype.c:_Py_IsStaticImmortal Unexecuted instantiation: unicodeobject.c:_Py_IsStaticImmortal Unexecuted instantiation: unionobject.c:_Py_IsStaticImmortal Unexecuted instantiation: weakrefobject.c:_Py_IsStaticImmortal Unexecuted instantiation: _warnings.c:_Py_IsStaticImmortal Unexecuted instantiation: bltinmodule.c:_Py_IsStaticImmortal Unexecuted instantiation: ceval.c:_Py_IsStaticImmortal Unexecuted instantiation: codecs.c:_Py_IsStaticImmortal Unexecuted instantiation: codegen.c:_Py_IsStaticImmortal Unexecuted instantiation: compile.c:_Py_IsStaticImmortal Unexecuted instantiation: context.c:_Py_IsStaticImmortal Unexecuted instantiation: errors.c:_Py_IsStaticImmortal Unexecuted instantiation: flowgraph.c:_Py_IsStaticImmortal Unexecuted instantiation: frame.c:_Py_IsStaticImmortal Unexecuted instantiation: future.c:_Py_IsStaticImmortal Unexecuted instantiation: gc.c:_Py_IsStaticImmortal Unexecuted instantiation: gc_gil.c:_Py_IsStaticImmortal Unexecuted instantiation: getargs.c:_Py_IsStaticImmortal Unexecuted instantiation: ceval_gil.c:_Py_IsStaticImmortal Unexecuted instantiation: hamt.c:_Py_IsStaticImmortal Unexecuted instantiation: hashtable.c:_Py_IsStaticImmortal Unexecuted instantiation: import.c:_Py_IsStaticImmortal Unexecuted instantiation: importdl.c:_Py_IsStaticImmortal Unexecuted instantiation: initconfig.c:_Py_IsStaticImmortal Unexecuted instantiation: instrumentation.c:_Py_IsStaticImmortal Unexecuted instantiation: instruction_sequence.c:_Py_IsStaticImmortal Unexecuted instantiation: intrinsics.c:_Py_IsStaticImmortal Unexecuted instantiation: legacy_tracing.c:_Py_IsStaticImmortal Unexecuted instantiation: lock.c:_Py_IsStaticImmortal Unexecuted instantiation: marshal.c:_Py_IsStaticImmortal Unexecuted instantiation: modsupport.c:_Py_IsStaticImmortal Unexecuted instantiation: mysnprintf.c:_Py_IsStaticImmortal Unexecuted instantiation: parking_lot.c:_Py_IsStaticImmortal Unexecuted instantiation: preconfig.c:_Py_IsStaticImmortal Unexecuted instantiation: pyarena.c:_Py_IsStaticImmortal Unexecuted instantiation: pyctype.c:_Py_IsStaticImmortal Unexecuted instantiation: pyhash.c:_Py_IsStaticImmortal Unexecuted instantiation: pylifecycle.c:_Py_IsStaticImmortal Unexecuted instantiation: pymath.c:_Py_IsStaticImmortal Unexecuted instantiation: pystate.c:_Py_IsStaticImmortal Unexecuted instantiation: pythonrun.c:_Py_IsStaticImmortal Unexecuted instantiation: pytime.c:_Py_IsStaticImmortal Unexecuted instantiation: qsbr.c:_Py_IsStaticImmortal Unexecuted instantiation: bootstrap_hash.c:_Py_IsStaticImmortal Unexecuted instantiation: specialize.c:_Py_IsStaticImmortal Unexecuted instantiation: 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 |
145 | | #define _Py_IsStaticImmortal(op) _Py_IsStaticImmortal(_PyObject_CAST(op)) |
146 | | #endif // !defined(_Py_OPAQUE_PYOBJECT) |
147 | | |
148 | | // Py_SET_REFCNT() implementation for stable ABI |
149 | | PyAPI_FUNC(void) _Py_SetRefcnt(PyObject *ob, Py_ssize_t refcnt); |
150 | | |
151 | 744M | static inline void Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) { |
152 | 744M | assert(refcnt >= 0); |
153 | | #if defined(Py_LIMITED_API) && Py_LIMITED_API+0 >= 0x030d0000 |
154 | | // Stable ABI implements Py_SET_REFCNT() as a function call |
155 | | // on limited C API version 3.13 and newer. |
156 | | _Py_SetRefcnt(ob, refcnt); |
157 | | #else |
158 | | // This immortal check is for code that is unaware of immortal objects. |
159 | | // The runtime tracks these objects and we should avoid as much |
160 | | // as possible having extensions inadvertently change the refcnt |
161 | | // of an immortalized object. |
162 | 744M | if (_Py_IsImmortal(ob)) { |
163 | 965 | return; |
164 | 965 | } |
165 | 744M | #ifndef Py_GIL_DISABLED |
166 | 744M | #if SIZEOF_VOID_P > 4 |
167 | 744M | ob->ob_refcnt = (PY_UINT32_T)refcnt; |
168 | | #else |
169 | | ob->ob_refcnt = refcnt; |
170 | | #endif |
171 | | #else |
172 | | if (_Py_IsOwnedByCurrentThread(ob)) { |
173 | | if ((size_t)refcnt > (size_t)UINT32_MAX) { |
174 | | // On overflow, make the object immortal |
175 | | ob->ob_tid = _Py_UNOWNED_TID; |
176 | | ob->ob_ref_local = _Py_IMMORTAL_REFCNT_LOCAL; |
177 | | ob->ob_ref_shared = 0; |
178 | | } |
179 | | else { |
180 | | // Set local refcount to desired refcount and shared refcount |
181 | | // to zero, but preserve the shared refcount flags. |
182 | | ob->ob_ref_local = _Py_STATIC_CAST(uint32_t, refcnt); |
183 | | ob->ob_ref_shared &= _Py_REF_SHARED_FLAG_MASK; |
184 | | } |
185 | | } |
186 | | else { |
187 | | // Set local refcount to zero and shared refcount to desired refcount. |
188 | | // Mark the object as merged. |
189 | | ob->ob_tid = _Py_UNOWNED_TID; |
190 | | ob->ob_ref_local = 0; |
191 | | ob->ob_ref_shared = _Py_REF_SHARED(refcnt, _Py_REF_MERGED); |
192 | | } |
193 | | #endif // Py_GIL_DISABLED |
194 | 744M | #endif // Py_LIMITED_API+0 < 0x030d0000 |
195 | 744M | } Unexecuted instantiation: bytesobject.c:Py_SET_REFCNT Unexecuted instantiation: call.c:Py_SET_REFCNT Unexecuted instantiation: exceptions.c:Py_SET_REFCNT Unexecuted instantiation: genericaliasobject.c:Py_SET_REFCNT Unexecuted instantiation: floatobject.c:Py_SET_REFCNT Unexecuted instantiation: listobject.c:Py_SET_REFCNT Unexecuted instantiation: longobject.c:Py_SET_REFCNT dictobject.c:Py_SET_REFCNT Line | Count | Source | 151 | 677M | static inline void Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) { | 152 | 677M | assert(refcnt >= 0); | 153 | | #if defined(Py_LIMITED_API) && Py_LIMITED_API+0 >= 0x030d0000 | 154 | | // Stable ABI implements Py_SET_REFCNT() as a function call | 155 | | // on limited C API version 3.13 and newer. | 156 | | _Py_SetRefcnt(ob, refcnt); | 157 | | #else | 158 | | // This immortal check is for code that is unaware of immortal objects. | 159 | | // The runtime tracks these objects and we should avoid as much | 160 | | // as possible having extensions inadvertently change the refcnt | 161 | | // of an immortalized object. | 162 | 677M | if (_Py_IsImmortal(ob)) { | 163 | 0 | return; | 164 | 0 | } | 165 | 677M | #ifndef Py_GIL_DISABLED | 166 | 677M | #if SIZEOF_VOID_P > 4 | 167 | 677M | ob->ob_refcnt = (PY_UINT32_T)refcnt; | 168 | | #else | 169 | | ob->ob_refcnt = refcnt; | 170 | | #endif | 171 | | #else | 172 | | if (_Py_IsOwnedByCurrentThread(ob)) { | 173 | | if ((size_t)refcnt > (size_t)UINT32_MAX) { | 174 | | // On overflow, make the object immortal | 175 | | ob->ob_tid = _Py_UNOWNED_TID; | 176 | | ob->ob_ref_local = _Py_IMMORTAL_REFCNT_LOCAL; | 177 | | ob->ob_ref_shared = 0; | 178 | | } | 179 | | else { | 180 | | // Set local refcount to desired refcount and shared refcount | 181 | | // to zero, but preserve the shared refcount flags. | 182 | | ob->ob_ref_local = _Py_STATIC_CAST(uint32_t, refcnt); | 183 | | ob->ob_ref_shared &= _Py_REF_SHARED_FLAG_MASK; | 184 | | } | 185 | | } | 186 | | else { | 187 | | // Set local refcount to zero and shared refcount to desired refcount. | 188 | | // Mark the object as merged. | 189 | | ob->ob_tid = _Py_UNOWNED_TID; | 190 | | ob->ob_ref_local = 0; | 191 | | ob->ob_ref_shared = _Py_REF_SHARED(refcnt, _Py_REF_MERGED); | 192 | | } | 193 | | #endif // Py_GIL_DISABLED | 194 | 677M | #endif // Py_LIMITED_API+0 < 0x030d0000 | 195 | 677M | } |
Unexecuted instantiation: memoryobject.c:Py_SET_REFCNT moduleobject.c:Py_SET_REFCNT Line | Count | Source | 151 | 965 | static inline void Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) { | 152 | 965 | assert(refcnt >= 0); | 153 | | #if defined(Py_LIMITED_API) && Py_LIMITED_API+0 >= 0x030d0000 | 154 | | // Stable ABI implements Py_SET_REFCNT() as a function call | 155 | | // on limited C API version 3.13 and newer. | 156 | | _Py_SetRefcnt(ob, refcnt); | 157 | | #else | 158 | | // This immortal check is for code that is unaware of immortal objects. | 159 | | // The runtime tracks these objects and we should avoid as much | 160 | | // as possible having extensions inadvertently change the refcnt | 161 | | // of an immortalized object. | 162 | 965 | if (_Py_IsImmortal(ob)) { | 163 | 965 | return; | 164 | 965 | } | 165 | 0 | #ifndef Py_GIL_DISABLED | 166 | 0 | #if SIZEOF_VOID_P > 4 | 167 | 0 | ob->ob_refcnt = (PY_UINT32_T)refcnt; | 168 | | #else | 169 | | ob->ob_refcnt = refcnt; | 170 | | #endif | 171 | | #else | 172 | | if (_Py_IsOwnedByCurrentThread(ob)) { | 173 | | if ((size_t)refcnt > (size_t)UINT32_MAX) { | 174 | | // On overflow, make the object immortal | 175 | | ob->ob_tid = _Py_UNOWNED_TID; | 176 | | ob->ob_ref_local = _Py_IMMORTAL_REFCNT_LOCAL; | 177 | | ob->ob_ref_shared = 0; | 178 | | } | 179 | | else { | 180 | | // Set local refcount to desired refcount and shared refcount | 181 | | // to zero, but preserve the shared refcount flags. | 182 | | ob->ob_ref_local = _Py_STATIC_CAST(uint32_t, refcnt); | 183 | | ob->ob_ref_shared &= _Py_REF_SHARED_FLAG_MASK; | 184 | | } | 185 | | } | 186 | | else { | 187 | | // Set local refcount to zero and shared refcount to desired refcount. | 188 | | // Mark the object as merged. | 189 | | ob->ob_tid = _Py_UNOWNED_TID; | 190 | | ob->ob_ref_local = 0; | 191 | | ob->ob_ref_shared = _Py_REF_SHARED(refcnt, _Py_REF_MERGED); | 192 | | } | 193 | | #endif // Py_GIL_DISABLED | 194 | 0 | #endif // Py_LIMITED_API+0 < 0x030d0000 | 195 | 0 | } |
Line | Count | Source | 151 | 39.6M | static inline void Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) { | 152 | 39.6M | assert(refcnt >= 0); | 153 | | #if defined(Py_LIMITED_API) && Py_LIMITED_API+0 >= 0x030d0000 | 154 | | // Stable ABI implements Py_SET_REFCNT() as a function call | 155 | | // on limited C API version 3.13 and newer. | 156 | | _Py_SetRefcnt(ob, refcnt); | 157 | | #else | 158 | | // This immortal check is for code that is unaware of immortal objects. | 159 | | // The runtime tracks these objects and we should avoid as much | 160 | | // as possible having extensions inadvertently change the refcnt | 161 | | // of an immortalized object. | 162 | 39.6M | if (_Py_IsImmortal(ob)) { | 163 | 0 | return; | 164 | 0 | } | 165 | 39.6M | #ifndef Py_GIL_DISABLED | 166 | 39.6M | #if SIZEOF_VOID_P > 4 | 167 | 39.6M | ob->ob_refcnt = (PY_UINT32_T)refcnt; | 168 | | #else | 169 | | ob->ob_refcnt = refcnt; | 170 | | #endif | 171 | | #else | 172 | | if (_Py_IsOwnedByCurrentThread(ob)) { | 173 | | if ((size_t)refcnt > (size_t)UINT32_MAX) { | 174 | | // On overflow, make the object immortal | 175 | | ob->ob_tid = _Py_UNOWNED_TID; | 176 | | ob->ob_ref_local = _Py_IMMORTAL_REFCNT_LOCAL; | 177 | | ob->ob_ref_shared = 0; | 178 | | } | 179 | | else { | 180 | | // Set local refcount to desired refcount and shared refcount | 181 | | // to zero, but preserve the shared refcount flags. | 182 | | ob->ob_ref_local = _Py_STATIC_CAST(uint32_t, refcnt); | 183 | | ob->ob_ref_shared &= _Py_REF_SHARED_FLAG_MASK; | 184 | | } | 185 | | } | 186 | | else { | 187 | | // Set local refcount to zero and shared refcount to desired refcount. | 188 | | // Mark the object as merged. | 189 | | ob->ob_tid = _Py_UNOWNED_TID; | 190 | | ob->ob_ref_local = 0; | 191 | | ob->ob_ref_shared = _Py_REF_SHARED(refcnt, _Py_REF_MERGED); | 192 | | } | 193 | | #endif // Py_GIL_DISABLED | 194 | 39.6M | #endif // Py_LIMITED_API+0 < 0x030d0000 | 195 | 39.6M | } |
Unexecuted instantiation: obmalloc.c:Py_SET_REFCNT Unexecuted instantiation: picklebufobject.c:Py_SET_REFCNT Unexecuted instantiation: rangeobject.c:Py_SET_REFCNT Unexecuted instantiation: setobject.c:Py_SET_REFCNT Unexecuted instantiation: sliceobject.c:Py_SET_REFCNT Unexecuted instantiation: structseq.c:Py_SET_REFCNT Unexecuted instantiation: templateobject.c:Py_SET_REFCNT Unexecuted instantiation: tupleobject.c:Py_SET_REFCNT Unexecuted instantiation: typeobject.c:Py_SET_REFCNT Unexecuted instantiation: typevarobject.c:Py_SET_REFCNT Unexecuted instantiation: unicode_format.c:Py_SET_REFCNT Unexecuted instantiation: unicode_formatter.c:Py_SET_REFCNT Unexecuted instantiation: unicode_writer.c:Py_SET_REFCNT Unexecuted instantiation: unicodectype.c:Py_SET_REFCNT unicodeobject.c:Py_SET_REFCNT Line | Count | Source | 151 | 1.16M | static inline void Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) { | 152 | 1.16M | assert(refcnt >= 0); | 153 | | #if defined(Py_LIMITED_API) && Py_LIMITED_API+0 >= 0x030d0000 | 154 | | // Stable ABI implements Py_SET_REFCNT() as a function call | 155 | | // on limited C API version 3.13 and newer. | 156 | | _Py_SetRefcnt(ob, refcnt); | 157 | | #else | 158 | | // This immortal check is for code that is unaware of immortal objects. | 159 | | // The runtime tracks these objects and we should avoid as much | 160 | | // as possible having extensions inadvertently change the refcnt | 161 | | // of an immortalized object. | 162 | 1.16M | if (_Py_IsImmortal(ob)) { | 163 | 0 | return; | 164 | 0 | } | 165 | 1.16M | #ifndef Py_GIL_DISABLED | 166 | 1.16M | #if SIZEOF_VOID_P > 4 | 167 | 1.16M | ob->ob_refcnt = (PY_UINT32_T)refcnt; | 168 | | #else | 169 | | ob->ob_refcnt = refcnt; | 170 | | #endif | 171 | | #else | 172 | | if (_Py_IsOwnedByCurrentThread(ob)) { | 173 | | if ((size_t)refcnt > (size_t)UINT32_MAX) { | 174 | | // On overflow, make the object immortal | 175 | | ob->ob_tid = _Py_UNOWNED_TID; | 176 | | ob->ob_ref_local = _Py_IMMORTAL_REFCNT_LOCAL; | 177 | | ob->ob_ref_shared = 0; | 178 | | } | 179 | | else { | 180 | | // Set local refcount to desired refcount and shared refcount | 181 | | // to zero, but preserve the shared refcount flags. | 182 | | ob->ob_ref_local = _Py_STATIC_CAST(uint32_t, refcnt); | 183 | | ob->ob_ref_shared &= _Py_REF_SHARED_FLAG_MASK; | 184 | | } | 185 | | } | 186 | | else { | 187 | | // Set local refcount to zero and shared refcount to desired refcount. | 188 | | // Mark the object as merged. | 189 | | ob->ob_tid = _Py_UNOWNED_TID; | 190 | | ob->ob_ref_local = 0; | 191 | | ob->ob_ref_shared = _Py_REF_SHARED(refcnt, _Py_REF_MERGED); | 192 | | } | 193 | | #endif // Py_GIL_DISABLED | 194 | 1.16M | #endif // Py_LIMITED_API+0 < 0x030d0000 | 195 | 1.16M | } |
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 | 151 | 106k | static inline void Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) { | 152 | 106k | assert(refcnt >= 0); | 153 | | #if defined(Py_LIMITED_API) && Py_LIMITED_API+0 >= 0x030d0000 | 154 | | // Stable ABI implements Py_SET_REFCNT() as a function call | 155 | | // on limited C API version 3.13 and newer. | 156 | | _Py_SetRefcnt(ob, refcnt); | 157 | | #else | 158 | | // This immortal check is for code that is unaware of immortal objects. | 159 | | // The runtime tracks these objects and we should avoid as much | 160 | | // as possible having extensions inadvertently change the refcnt | 161 | | // of an immortalized object. | 162 | 106k | if (_Py_IsImmortal(ob)) { | 163 | 0 | return; | 164 | 0 | } | 165 | 106k | #ifndef Py_GIL_DISABLED | 166 | 106k | #if SIZEOF_VOID_P > 4 | 167 | 106k | ob->ob_refcnt = (PY_UINT32_T)refcnt; | 168 | | #else | 169 | | ob->ob_refcnt = refcnt; | 170 | | #endif | 171 | | #else | 172 | | if (_Py_IsOwnedByCurrentThread(ob)) { | 173 | | if ((size_t)refcnt > (size_t)UINT32_MAX) { | 174 | | // On overflow, make the object immortal | 175 | | ob->ob_tid = _Py_UNOWNED_TID; | 176 | | ob->ob_ref_local = _Py_IMMORTAL_REFCNT_LOCAL; | 177 | | ob->ob_ref_shared = 0; | 178 | | } | 179 | | else { | 180 | | // Set local refcount to desired refcount and shared refcount | 181 | | // to zero, but preserve the shared refcount flags. | 182 | | ob->ob_ref_local = _Py_STATIC_CAST(uint32_t, refcnt); | 183 | | ob->ob_ref_shared &= _Py_REF_SHARED_FLAG_MASK; | 184 | | } | 185 | | } | 186 | | else { | 187 | | // Set local refcount to zero and shared refcount to desired refcount. | 188 | | // Mark the object as merged. | 189 | | ob->ob_tid = _Py_UNOWNED_TID; | 190 | | ob->ob_ref_local = 0; | 191 | | ob->ob_ref_shared = _Py_REF_SHARED(refcnt, _Py_REF_MERGED); | 192 | | } | 193 | | #endif // Py_GIL_DISABLED | 194 | 106k | #endif // Py_LIMITED_API+0 < 0x030d0000 | 195 | 106k | } |
Unexecuted instantiation: complexobject.c:Py_SET_REFCNT Unexecuted instantiation: descrobject.c:Py_SET_REFCNT Unexecuted instantiation: enumobject.c:Py_SET_REFCNT Unexecuted instantiation: genobject.c:Py_SET_REFCNT Unexecuted instantiation: fileobject.c:Py_SET_REFCNT Unexecuted instantiation: frameobject.c:Py_SET_REFCNT funcobject.c:Py_SET_REFCNT Line | Count | Source | 151 | 25.7M | static inline void Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) { | 152 | 25.7M | assert(refcnt >= 0); | 153 | | #if defined(Py_LIMITED_API) && Py_LIMITED_API+0 >= 0x030d0000 | 154 | | // Stable ABI implements Py_SET_REFCNT() as a function call | 155 | | // on limited C API version 3.13 and newer. | 156 | | _Py_SetRefcnt(ob, refcnt); | 157 | | #else | 158 | | // This immortal check is for code that is unaware of immortal objects. | 159 | | // The runtime tracks these objects and we should avoid as much | 160 | | // as possible having extensions inadvertently change the refcnt | 161 | | // of an immortalized object. | 162 | 25.7M | if (_Py_IsImmortal(ob)) { | 163 | 0 | return; | 164 | 0 | } | 165 | 25.7M | #ifndef Py_GIL_DISABLED | 166 | 25.7M | #if SIZEOF_VOID_P > 4 | 167 | 25.7M | ob->ob_refcnt = (PY_UINT32_T)refcnt; | 168 | | #else | 169 | | ob->ob_refcnt = refcnt; | 170 | | #endif | 171 | | #else | 172 | | if (_Py_IsOwnedByCurrentThread(ob)) { | 173 | | if ((size_t)refcnt > (size_t)UINT32_MAX) { | 174 | | // On overflow, make the object immortal | 175 | | ob->ob_tid = _Py_UNOWNED_TID; | 176 | | ob->ob_ref_local = _Py_IMMORTAL_REFCNT_LOCAL; | 177 | | ob->ob_ref_shared = 0; | 178 | | } | 179 | | else { | 180 | | // Set local refcount to desired refcount and shared refcount | 181 | | // to zero, but preserve the shared refcount flags. | 182 | | ob->ob_ref_local = _Py_STATIC_CAST(uint32_t, refcnt); | 183 | | ob->ob_ref_shared &= _Py_REF_SHARED_FLAG_MASK; | 184 | | } | 185 | | } | 186 | | else { | 187 | | // Set local refcount to zero and shared refcount to desired refcount. | 188 | | // Mark the object as merged. | 189 | | ob->ob_tid = _Py_UNOWNED_TID; | 190 | | ob->ob_ref_local = 0; | 191 | | ob->ob_ref_shared = _Py_REF_SHARED(refcnt, _Py_REF_MERGED); | 192 | | } | 193 | | #endif // Py_GIL_DISABLED | 194 | 25.7M | #endif // Py_LIMITED_API+0 < 0x030d0000 | 195 | 25.7M | } |
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 |
196 | | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000 |
197 | 744M | # define Py_SET_REFCNT(ob, refcnt) Py_SET_REFCNT(_PyObject_CAST(ob), (refcnt)) |
198 | | #endif |
199 | | |
200 | | |
201 | | /* |
202 | | The macros Py_INCREF(op) and Py_DECREF(op) are used to increment or decrement |
203 | | reference counts. Py_DECREF calls the object's deallocator function when |
204 | | the refcount falls to 0; for |
205 | | objects that don't contain references to other objects or heap memory |
206 | | this can be the standard function free(). Both macros can be used |
207 | | wherever a void expression is allowed. The argument must not be a |
208 | | NULL pointer. If it may be NULL, use Py_XINCREF/Py_XDECREF instead. |
209 | | The macro _Py_NewReference(op) initialize reference counts to 1, and |
210 | | in special builds (Py_REF_DEBUG, Py_TRACE_REFS) performs additional |
211 | | bookkeeping appropriate to the special build. |
212 | | |
213 | | We assume that the reference count field can never overflow; this can |
214 | | be proven when the size of the field is the same as the pointer size, so |
215 | | we ignore the possibility. Provided a C int is at least 32 bits (which |
216 | | is implicitly assumed in many parts of this code), that's enough for |
217 | | about 2**31 references to an object. |
218 | | |
219 | | XXX The following became out of date in Python 2.2, but I'm not sure |
220 | | XXX what the full truth is now. Certainly, heap-allocated type objects |
221 | | XXX can and should be deallocated. |
222 | | Type objects should never be deallocated; the type pointer in an object |
223 | | is not considered to be a reference to the type object, to save |
224 | | complications in the deallocation function. (This is actually a |
225 | | decision that's up to the implementer of each new type so if you want, |
226 | | you can count such references to the type object.) |
227 | | */ |
228 | | |
229 | | #if defined(Py_REF_DEBUG) && !defined(Py_LIMITED_API) |
230 | | PyAPI_FUNC(void) _Py_NegativeRefcount(const char *filename, int lineno, |
231 | | PyObject *op); |
232 | | PyAPI_FUNC(void) _Py_INCREF_IncRefTotal(void); |
233 | | PyAPI_FUNC(void) _Py_DECREF_DecRefTotal(void); |
234 | | #endif // Py_REF_DEBUG && !Py_LIMITED_API |
235 | | |
236 | | PyAPI_FUNC(void) _Py_Dealloc(PyObject *); |
237 | | |
238 | | |
239 | | /* |
240 | | These are provided as conveniences to Python runtime embedders, so that |
241 | | they can have object code that is not dependent on Python compilation flags. |
242 | | */ |
243 | | PyAPI_FUNC(void) Py_IncRef(PyObject *); |
244 | | PyAPI_FUNC(void) Py_DecRef(PyObject *); |
245 | | |
246 | | // Similar to Py_IncRef() and Py_DecRef() but the argument must be non-NULL. |
247 | | // Private functions used by Py_INCREF() and Py_DECREF(). |
248 | | PyAPI_FUNC(void) _Py_IncRef(PyObject *); |
249 | | PyAPI_FUNC(void) _Py_DecRef(PyObject *); |
250 | | |
251 | | static inline Py_ALWAYS_INLINE void Py_INCREF(PyObject *op) |
252 | 22.5G | { |
253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) |
254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API |
255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() |
256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. |
257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. |
258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 |
259 | | _Py_IncRef(op); |
260 | | # else |
261 | | Py_IncRef(op); |
262 | | # endif |
263 | | #else |
264 | | // Non-limited C API and limited C API for Python 3.9 and older access |
265 | | // directly PyObject.ob_refcnt. |
266 | | #if defined(Py_GIL_DISABLED) |
267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); |
268 | | uint32_t new_local = local + 1; |
269 | | if (new_local == 0) { |
270 | | _Py_INCREF_IMMORTAL_STAT_INC(); |
271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing |
272 | | return; |
273 | | } |
274 | | if (_Py_IsOwnedByCurrentThread(op)) { |
275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); |
276 | | } |
277 | | else { |
278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); |
279 | | } |
280 | | #elif SIZEOF_VOID_P > 4 |
281 | 22.5G | PY_UINT32_T cur_refcnt = op->ob_refcnt; |
282 | 22.5G | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { |
283 | | // the object is immortal |
284 | 10.6G | _Py_INCREF_IMMORTAL_STAT_INC(); |
285 | 10.6G | return; |
286 | 10.6G | } |
287 | 11.9G | op->ob_refcnt = cur_refcnt + 1; |
288 | | #else |
289 | | if (_Py_IsImmortal(op)) { |
290 | | _Py_INCREF_IMMORTAL_STAT_INC(); |
291 | | return; |
292 | | } |
293 | | op->ob_refcnt++; |
294 | | #endif |
295 | 11.9G | _Py_INCREF_STAT_INC(); |
296 | | #ifdef Py_REF_DEBUG |
297 | | // Don't count the incref if the object is immortal. |
298 | | if (!_Py_IsImmortal(op)) { |
299 | | _Py_INCREF_IncRefTotal(); |
300 | | } |
301 | | #endif |
302 | 11.9G | #endif |
303 | 11.9G | } Line | Count | Source | 252 | 110M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 110M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 110M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 108M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 108M | return; | 286 | 108M | } | 287 | 2.20M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 2.20M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 2.20M | #endif | 303 | 2.20M | } |
Line | Count | Source | 252 | 15.8M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 15.8M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 15.8M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 8.07M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 8.07M | return; | 286 | 8.07M | } | 287 | 7.82M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 7.82M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 7.82M | #endif | 303 | 7.82M | } |
Line | Count | Source | 252 | 161M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 161M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 161M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 33.8M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 33.8M | return; | 286 | 33.8M | } | 287 | 127M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 127M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 127M | #endif | 303 | 127M | } |
genericaliasobject.c:Py_INCREF Line | Count | Source | 252 | 1.53k | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 1.53k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 1.53k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 1.18k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 1.18k | return; | 286 | 1.18k | } | 287 | 352 | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 352 | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 352 | #endif | 303 | 352 | } |
Line | Count | Source | 252 | 1.46M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 1.46M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 1.46M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 1.46M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 1.46M | return; | 286 | 1.46M | } | 287 | 0 | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 0 | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 0 | #endif | 303 | 0 | } |
Line | Count | Source | 252 | 1.62G | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 1.62G | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 1.62G | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 347M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 347M | return; | 286 | 347M | } | 287 | 1.27G | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 1.27G | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 1.27G | #endif | 303 | 1.27G | } |
Line | Count | Source | 252 | 152M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 152M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 152M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 152M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 152M | return; | 286 | 152M | } | 287 | 524 | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 524 | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 524 | #endif | 303 | 524 | } |
Line | Count | Source | 252 | 2.28G | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 2.28G | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 2.28G | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 524M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 524M | return; | 286 | 524M | } | 287 | 1.76G | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 1.76G | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 1.76G | #endif | 303 | 1.76G | } |
Line | Count | Source | 252 | 2.87M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 2.87M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 2.87M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 0 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 0 | return; | 286 | 0 | } | 287 | 2.87M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 2.87M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 2.87M | #endif | 303 | 2.87M | } |
Line | Count | Source | 252 | 5.43k | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 5.43k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 5.43k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 4.15k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 4.15k | return; | 286 | 4.15k | } | 287 | 1.27k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 1.27k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 1.27k | #endif | 303 | 1.27k | } |
Line | Count | Source | 252 | 1.09G | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 1.09G | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 1.09G | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 777M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 777M | return; | 286 | 777M | } | 287 | 316M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 316M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 316M | #endif | 303 | 316M | } |
Unexecuted instantiation: obmalloc.c:Py_INCREF Unexecuted instantiation: picklebufobject.c:Py_INCREF Line | Count | Source | 252 | 128 | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 128 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 128 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 96 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 96 | return; | 286 | 96 | } | 287 | 32 | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 32 | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 32 | #endif | 303 | 32 | } |
Line | Count | Source | 252 | 10.8M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 10.8M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 10.8M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 1.21M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 1.21M | return; | 286 | 1.21M | } | 287 | 9.59M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 9.59M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 9.59M | #endif | 303 | 9.59M | } |
Line | Count | Source | 252 | 92.0M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 92.0M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 92.0M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 92.0M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 92.0M | return; | 286 | 92.0M | } | 287 | 1.25k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 1.25k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 1.25k | #endif | 303 | 1.25k | } |
Line | Count | Source | 252 | 1.05k | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 1.05k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 1.05k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 960 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 960 | return; | 286 | 960 | } | 287 | 96 | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 96 | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 96 | #endif | 303 | 96 | } |
templateobject.c:Py_INCREF Line | Count | Source | 252 | 8 | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 8 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 8 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 4 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 4 | return; | 286 | 4 | } | 287 | 4 | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 4 | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 4 | #endif | 303 | 4 | } |
Line | Count | Source | 252 | 11.3G | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 11.3G | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 11.3G | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 5.58G | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 5.58G | return; | 286 | 5.58G | } | 287 | 5.81G | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 5.81G | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 5.81G | #endif | 303 | 5.81G | } |
Line | Count | Source | 252 | 397M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 397M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 397M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 163M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 163M | return; | 286 | 163M | } | 287 | 233M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 233M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 233M | #endif | 303 | 233M | } |
typevarobject.c:Py_INCREF Line | Count | Source | 252 | 1.17k | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 1.17k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 1.17k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 430 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 430 | return; | 286 | 430 | } | 287 | 748 | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 748 | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 748 | #endif | 303 | 748 | } |
unicode_format.c:Py_INCREF Line | Count | Source | 252 | 58.3M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 58.3M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 58.3M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 24.1M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 24.1M | return; | 286 | 24.1M | } | 287 | 34.1M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 34.1M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 34.1M | #endif | 303 | 34.1M | } |
Unexecuted instantiation: unicode_formatter.c:Py_INCREF unicode_writer.c:Py_INCREF Line | Count | Source | 252 | 5.56k | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 5.56k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 5.56k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 0 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 0 | return; | 286 | 0 | } | 287 | 5.56k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 5.56k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 5.56k | #endif | 303 | 5.56k | } |
Unexecuted instantiation: unicodectype.c:Py_INCREF unicodeobject.c:Py_INCREF Line | Count | Source | 252 | 834M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 834M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 834M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 731M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 731M | return; | 286 | 731M | } | 287 | 102M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 102M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 102M | #endif | 303 | 102M | } |
Line | Count | Source | 252 | 468 | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 468 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 468 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 304 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 304 | return; | 286 | 304 | } | 287 | 164 | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 164 | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 164 | #endif | 303 | 164 | } |
weakrefobject.c:Py_INCREF Line | Count | Source | 252 | 360k | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 360k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 360k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 2.91k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 2.91k | return; | 286 | 2.91k | } | 287 | 357k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 357k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 357k | #endif | 303 | 357k | } |
Line | Count | Source | 252 | 5.95M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 5.95M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 5.95M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 3.18M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 3.18M | return; | 286 | 3.18M | } | 287 | 2.77M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 2.77M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 2.77M | #endif | 303 | 2.77M | } |
Line | Count | Source | 252 | 113M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 113M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 113M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 50.5M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 50.5M | return; | 286 | 50.5M | } | 287 | 62.7M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 62.7M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 62.7M | #endif | 303 | 62.7M | } |
Line | Count | Source | 252 | 1.81G | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 1.81G | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 1.81G | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 1.02G | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 1.02G | return; | 286 | 1.02G | } | 287 | 793M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 793M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 793M | #endif | 303 | 793M | } |
Line | Count | Source | 252 | 4.18M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 4.18M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 4.18M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 240k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 240k | return; | 286 | 240k | } | 287 | 3.94M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 3.94M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 3.94M | #endif | 303 | 3.94M | } |
Line | Count | Source | 252 | 1.91k | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 1.91k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 1.91k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 1.91k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 1.91k | return; | 286 | 1.91k | } | 287 | 0 | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 0 | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 0 | #endif | 303 | 0 | } |
Line | Count | Source | 252 | 67.5k | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 67.5k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 67.5k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 33.2k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 33.2k | return; | 286 | 33.2k | } | 287 | 34.3k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 34.3k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 34.3k | #endif | 303 | 34.3k | } |
Line | Count | Source | 252 | 54 | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 54 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 54 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 22 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 22 | return; | 286 | 22 | } | 287 | 32 | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 32 | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 32 | #endif | 303 | 32 | } |
Line | Count | Source | 252 | 85.5M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 85.5M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 85.5M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 36.1M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 36.1M | return; | 286 | 36.1M | } | 287 | 49.3M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 49.3M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 49.3M | #endif | 303 | 49.3M | } |
Line | Count | Source | 252 | 49.7k | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 49.7k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 49.7k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 31.4k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 31.4k | return; | 286 | 31.4k | } | 287 | 18.3k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 18.3k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 18.3k | #endif | 303 | 18.3k | } |
Line | Count | Source | 252 | 49.6M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 49.6M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 49.6M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 0 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 0 | return; | 286 | 0 | } | 287 | 49.6M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 49.6M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 49.6M | #endif | 303 | 49.6M | } |
Unexecuted instantiation: future.c:Py_INCREF Line | Count | Source | 252 | 451M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 451M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 451M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 389M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 389M | return; | 286 | 389M | } | 287 | 61.9M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 61.9M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 61.9M | #endif | 303 | 61.9M | } |
Unexecuted instantiation: gc_gil.c:Py_INCREF Line | Count | Source | 252 | 3.14M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 3.14M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 3.14M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 2.51M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 2.51M | return; | 286 | 2.51M | } | 287 | 621k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 621k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 621k | #endif | 303 | 621k | } |
Unexecuted instantiation: ceval_gil.c:Py_INCREF Unexecuted instantiation: hamt.c:Py_INCREF Unexecuted instantiation: hashtable.c:Py_INCREF Line | Count | Source | 252 | 14.6M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 14.6M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 14.6M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 3.11M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 3.11M | return; | 286 | 3.11M | } | 287 | 11.5M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 11.5M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 11.5M | #endif | 303 | 11.5M | } |
Line | Count | Source | 252 | 1.19k | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 1.19k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 1.19k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 922 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 922 | return; | 286 | 922 | } | 287 | 271 | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 271 | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 271 | #endif | 303 | 271 | } |
Line | Count | Source | 252 | 544 | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 544 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 544 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 544 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 544 | return; | 286 | 544 | } | 287 | 0 | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 0 | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 0 | #endif | 303 | 0 | } |
Unexecuted instantiation: instrumentation.c:Py_INCREF Unexecuted instantiation: instruction_sequence.c:Py_INCREF Line | Count | Source | 252 | 20.8k | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 20.8k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 20.8k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 0 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 0 | return; | 286 | 0 | } | 287 | 20.8k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 20.8k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 20.8k | #endif | 303 | 20.8k | } |
Unexecuted instantiation: legacy_tracing.c:Py_INCREF Unexecuted instantiation: lock.c:Py_INCREF Line | Count | Source | 252 | 1.30M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 1.30M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 1.30M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 1.18M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 1.18M | return; | 286 | 1.18M | } | 287 | 117k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 117k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 117k | #endif | 303 | 117k | } |
Line | Count | Source | 252 | 3.03M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 3.03M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 3.03M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 849k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 849k | return; | 286 | 849k | } | 287 | 2.18M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 2.18M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 2.18M | #endif | 303 | 2.18M | } |
Unexecuted instantiation: mysnprintf.c:Py_INCREF Unexecuted instantiation: parking_lot.c:Py_INCREF Unexecuted instantiation: preconfig.c:Py_INCREF Unexecuted instantiation: pyarena.c:Py_INCREF Unexecuted instantiation: pyctype.c:Py_INCREF Unexecuted instantiation: pyhash.c:Py_INCREF Line | Count | Source | 252 | 32 | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 32 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 32 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 0 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 0 | return; | 286 | 0 | } | 287 | 32 | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 32 | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 32 | #endif | 303 | 32 | } |
Unexecuted instantiation: pymath.c:Py_INCREF Line | Count | Source | 252 | 1.46M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 1.46M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 1.46M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 0 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 0 | return; | 286 | 0 | } | 287 | 1.46M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 1.46M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 1.46M | #endif | 303 | 1.46M | } |
Unexecuted instantiation: pythonrun.c:Py_INCREF Unexecuted instantiation: pytime.c:Py_INCREF Unexecuted instantiation: qsbr.c:Py_INCREF Unexecuted instantiation: bootstrap_hash.c:Py_INCREF Unexecuted instantiation: specialize.c:Py_INCREF Line | Count | Source | 252 | 2.06M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 2.06M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 2.06M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 957k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 957k | return; | 286 | 957k | } | 287 | 1.10M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 1.10M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 1.10M | #endif | 303 | 1.10M | } |
Line | Count | Source | 252 | 137k | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 137k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 137k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 137k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 137k | return; | 286 | 137k | } | 287 | 309 | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 309 | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 309 | #endif | 303 | 309 | } |
Line | Count | Source | 252 | 3.18k | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 3.18k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 3.18k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 1.94k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 1.94k | return; | 286 | 1.94k | } | 287 | 1.23k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 1.23k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 1.23k | #endif | 303 | 1.23k | } |
Unexecuted instantiation: thread.c:Py_INCREF Line | Count | Source | 252 | 79.3M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 79.3M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 79.3M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 0 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 0 | return; | 286 | 0 | } | 287 | 79.3M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 79.3M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 79.3M | #endif | 303 | 79.3M | } |
Unexecuted instantiation: tracemalloc.c:Py_INCREF Unexecuted instantiation: getopt.c:Py_INCREF Unexecuted instantiation: pystrcmp.c:Py_INCREF Unexecuted instantiation: pystrtod.c:Py_INCREF Unexecuted instantiation: pystrhex.c:Py_INCREF Unexecuted instantiation: dtoa.c:Py_INCREF Unexecuted instantiation: fileutils.c:Py_INCREF Unexecuted instantiation: suggestions.c:Py_INCREF Unexecuted instantiation: perf_trampoline.c:Py_INCREF Unexecuted instantiation: perf_jit_trampoline.c:Py_INCREF Unexecuted instantiation: remote_debugging.c:Py_INCREF Unexecuted instantiation: dynload_shlib.c:Py_INCREF Unexecuted instantiation: config.c:Py_INCREF Unexecuted instantiation: gcmodule.c:Py_INCREF Unexecuted instantiation: _asynciomodule.c:Py_INCREF Line | Count | Source | 252 | 4 | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 4 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 4 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 0 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 0 | return; | 286 | 0 | } | 287 | 4 | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 4 | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 4 | #endif | 303 | 4 | } |
Unexecuted instantiation: faulthandler.c:Py_INCREF Line | Count | Source | 252 | 3.55M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 3.55M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 3.55M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 696k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 696k | return; | 286 | 696k | } | 287 | 2.85M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 2.85M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 2.85M | #endif | 303 | 2.85M | } |
Line | Count | Source | 252 | 2.04k | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 2.04k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 2.04k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 2.04k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 2.04k | return; | 286 | 2.04k | } | 287 | 0 | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 0 | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 0 | #endif | 303 | 0 | } |
Unexecuted instantiation: _tracemalloc.c:Py_INCREF Unexecuted instantiation: _suggestions.c:Py_INCREF _datetimemodule.c:Py_INCREF Line | Count | Source | 252 | 613 | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 613 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 613 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 442 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 442 | return; | 286 | 442 | } | 287 | 171 | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 171 | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 171 | #endif | 303 | 171 | } |
Unexecuted instantiation: _codecsmodule.c:Py_INCREF _collectionsmodule.c:Py_INCREF Line | Count | Source | 252 | 17.6M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 17.6M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 17.6M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 15.2M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 15.2M | return; | 286 | 15.2M | } | 287 | 2.33M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 2.33M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 2.33M | #endif | 303 | 2.33M | } |
Unexecuted instantiation: errnomodule.c:Py_INCREF Line | Count | Source | 252 | 272 | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 272 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 272 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 260 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 260 | return; | 286 | 260 | } | 287 | 12 | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 12 | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 12 | #endif | 303 | 12 | } |
Line | Count | Source | 252 | 120k | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 120k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 120k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 0 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 0 | return; | 286 | 0 | } | 287 | 120k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 120k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 120k | #endif | 303 | 120k | } |
Unexecuted instantiation: fileio.c:Py_INCREF Line | Count | Source | 252 | 62.7k | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 62.7k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 62.7k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 422 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 422 | return; | 286 | 422 | } | 287 | 62.3k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 62.3k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 62.3k | #endif | 303 | 62.3k | } |
Line | Count | Source | 252 | 52.8k | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 52.8k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 52.8k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 0 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 0 | return; | 286 | 0 | } | 287 | 52.8k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 52.8k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 52.8k | #endif | 303 | 52.8k | } |
Line | Count | Source | 252 | 595k | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 595k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 595k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 19.6k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 19.6k | return; | 286 | 19.6k | } | 287 | 575k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 575k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 575k | #endif | 303 | 575k | } |
Line | Count | Source | 252 | 22.1k | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 22.1k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 22.1k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 98 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 98 | return; | 286 | 98 | } | 287 | 22.0k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 22.0k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 22.0k | #endif | 303 | 22.0k | } |
itertoolsmodule.c:Py_INCREF Line | Count | Source | 252 | 45.0k | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 45.0k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 45.0k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 43.7k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 43.7k | return; | 286 | 43.7k | } | 287 | 1.27k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 1.27k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 1.27k | #endif | 303 | 1.27k | } |
Line | Count | Source | 252 | 198M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 198M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 198M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 49.5M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 49.5M | return; | 286 | 49.5M | } | 287 | 148M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 148M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 148M | #endif | 303 | 148M | } |
Unexecuted instantiation: _sysconfig.c:Py_INCREF _threadmodule.c:Py_INCREF Line | Count | Source | 252 | 76 | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 76 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 76 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 38 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 38 | return; | 286 | 38 | } | 287 | 38 | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 38 | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 38 | #endif | 303 | 38 | } |
Unexecuted instantiation: timemodule.c:Py_INCREF Unexecuted instantiation: _typesmodule.c:Py_INCREF Unexecuted instantiation: _typingmodule.c:Py_INCREF Unexecuted instantiation: _weakref.c:Py_INCREF Line | Count | Source | 252 | 38.1k | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 38.1k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 38.1k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 37.8k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 37.8k | return; | 286 | 37.8k | } | 287 | 320 | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 320 | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 320 | #endif | 303 | 320 | } |
_functoolsmodule.c:Py_INCREF Line | Count | Source | 252 | 445k | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 445k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 445k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 2.57k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 2.57k | return; | 286 | 2.57k | } | 287 | 442k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 442k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 442k | #endif | 303 | 442k | } |
Unexecuted instantiation: _localemodule.c:Py_INCREF Unexecuted instantiation: _opcode.c:Py_INCREF Line | Count | Source | 252 | 1.28M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 1.28M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 1.28M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 1.25M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 1.25M | return; | 286 | 1.25M | } | 287 | 31.0k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 31.0k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 31.0k | #endif | 303 | 31.0k | } |
Unexecuted instantiation: _stat.c:Py_INCREF Unexecuted instantiation: symtablemodule.c:Py_INCREF Unexecuted instantiation: pwdmodule.c:Py_INCREF Line | Count | Source | 252 | 352 | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 352 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 352 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 352 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 352 | return; | 286 | 352 | } | 287 | 0 | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 0 | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 0 | #endif | 303 | 0 | } |
Unexecuted instantiation: frozen.c:Py_INCREF Unexecuted instantiation: getbuildinfo.c:Py_INCREF Unexecuted instantiation: peg_api.c:Py_INCREF Unexecuted instantiation: file_tokenizer.c:Py_INCREF Unexecuted instantiation: helpers.c:Py_INCREF Unexecuted instantiation: myreadline.c:Py_INCREF Line | Count | Source | 252 | 792M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 792M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 792M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 398M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 398M | return; | 286 | 398M | } | 287 | 394M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 394M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 394M | #endif | 303 | 394M | } |
Unexecuted instantiation: boolobject.c:Py_INCREF Unexecuted instantiation: bytes_methods.c:Py_INCREF bytearrayobject.c:Py_INCREF Line | Count | Source | 252 | 466k | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 466k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 466k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 0 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 0 | return; | 286 | 0 | } | 287 | 466k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 466k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 466k | #endif | 303 | 466k | } |
Unexecuted instantiation: capsule.c:Py_INCREF Line | Count | Source | 252 | 185k | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 185k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 185k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 63.5k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 63.5k | return; | 286 | 63.5k | } | 287 | 121k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 121k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 121k | #endif | 303 | 121k | } |
Line | Count | Source | 252 | 94.3M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 94.3M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 94.3M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 76 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 76 | return; | 286 | 76 | } | 287 | 94.3M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 94.3M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 94.3M | #endif | 303 | 94.3M | } |
Line | Count | Source | 252 | 1.20M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 1.20M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 1.20M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 574k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 574k | return; | 286 | 574k | } | 287 | 628k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 628k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 628k | #endif | 303 | 628k | } |
complexobject.c:Py_INCREF Line | Count | Source | 252 | 3.12k | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 3.12k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 3.12k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 3.12k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 3.12k | return; | 286 | 3.12k | } | 287 | 0 | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 0 | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 0 | #endif | 303 | 0 | } |
Line | Count | Source | 252 | 21.6M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 21.6M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 21.6M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 62.5k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 62.5k | return; | 286 | 62.5k | } | 287 | 21.5M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 21.5M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 21.5M | #endif | 303 | 21.5M | } |
Line | Count | Source | 252 | 96.8M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 96.8M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 96.8M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 6 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 6 | return; | 286 | 6 | } | 287 | 96.8M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 96.8M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 96.8M | #endif | 303 | 96.8M | } |
Line | Count | Source | 252 | 39.3M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 39.3M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 39.3M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 39.2M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 39.2M | return; | 286 | 39.2M | } | 287 | 75.8k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 75.8k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 75.8k | #endif | 303 | 75.8k | } |
Unexecuted instantiation: fileobject.c:Py_INCREF Line | Count | Source | 252 | 32.4M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 32.4M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 32.4M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 84 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 84 | return; | 286 | 84 | } | 287 | 32.4M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 32.4M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 32.4M | #endif | 303 | 32.4M | } |
Line | Count | Source | 252 | 65.8M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 65.8M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 65.8M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 38.7M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 38.7M | return; | 286 | 38.7M | } | 287 | 27.0M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 27.0M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 27.0M | #endif | 303 | 27.0M | } |
Unexecuted instantiation: interpolationobject.c:Py_INCREF Line | Count | Source | 252 | 3.25M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 3.25M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 3.25M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 299k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 299k | return; | 286 | 299k | } | 287 | 2.95M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 2.95M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 2.95M | #endif | 303 | 2.95M | } |
lazyimportobject.c:Py_INCREF Line | Count | Source | 252 | 448 | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 448 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 448 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 168 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 168 | return; | 286 | 168 | } | 287 | 280 | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 280 | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 280 | #endif | 303 | 280 | } |
Line | Count | Source | 252 | 9.67k | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 9.67k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 9.67k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 7.20k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 7.20k | return; | 286 | 7.20k | } | 287 | 2.47k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 2.47k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 2.47k | #endif | 303 | 2.47k | } |
Line | Count | Source | 252 | 335M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 335M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 335M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 5.46M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 5.46M | return; | 286 | 5.46M | } | 287 | 329M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 329M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 329M | #endif | 303 | 329M | } |
Unexecuted instantiation: namespaceobject.c:Py_INCREF Unexecuted instantiation: _contextvars.c:Py_INCREF Line | Count | Source | 252 | 340k | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 340k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 340k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 185k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 185k | return; | 286 | 185k | } | 287 | 155k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 155k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 155k | #endif | 303 | 155k | } |
Unexecuted instantiation: Python-tokenize.c:Py_INCREF Unexecuted instantiation: asdl.c:Py_INCREF Line | Count | Source | 252 | 25.8k | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 25.8k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 25.8k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 25.7k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 25.7k | return; | 286 | 25.7k | } | 287 | 50 | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 50 | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 50 | #endif | 303 | 50 | } |
Unexecuted instantiation: ast.c:Py_INCREF Unexecuted instantiation: ast_preprocess.c:Py_INCREF Unexecuted instantiation: ast_unparse.c:Py_INCREF Unexecuted instantiation: critical_section.c:Py_INCREF Unexecuted instantiation: crossinterp.c:Py_INCREF Unexecuted instantiation: getcopyright.c:Py_INCREF Unexecuted instantiation: getplatform.c:Py_INCREF Unexecuted instantiation: getversion.c:Py_INCREF Unexecuted instantiation: optimizer.c:Py_INCREF Unexecuted instantiation: pathconfig.c:Py_INCREF Line | Count | Source | 252 | 16.4k | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 16.4k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 16.4k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 553 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 553 | return; | 286 | 553 | } | 287 | 15.8k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 15.8k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 15.8k | #endif | 303 | 15.8k | } |
Unexecuted instantiation: pegen_errors.c:Py_INCREF Unexecuted instantiation: parser.c:Py_INCREF Unexecuted instantiation: buffer.c:Py_INCREF Unexecuted instantiation: lexer.c:Py_INCREF Unexecuted instantiation: state.c:Py_INCREF readline_tokenizer.c:Py_INCREF Line | Count | Source | 252 | 10 | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 10 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 10 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 0 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 0 | return; | 286 | 0 | } | 287 | 10 | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 10 | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 10 | #endif | 303 | 10 | } |
Unexecuted instantiation: string_tokenizer.c:Py_INCREF Unexecuted instantiation: utf8_tokenizer.c:Py_INCREF Unexecuted instantiation: getcompiler.c:Py_INCREF Unexecuted instantiation: mystrtoul.c:Py_INCREF Unexecuted instantiation: token.c:Py_INCREF Unexecuted instantiation: action_helpers.c:Py_INCREF Unexecuted instantiation: string_parser.c:Py_INCREF |
304 | | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000 |
305 | 22.5G | # define Py_INCREF(op) Py_INCREF(_PyObject_CAST(op)) |
306 | | #endif |
307 | | |
308 | | |
309 | | #if !defined(Py_LIMITED_API) && defined(Py_GIL_DISABLED) |
310 | | // Implements Py_DECREF on objects not owned by the current thread. |
311 | | PyAPI_FUNC(void) _Py_DecRefShared(PyObject *); |
312 | | PyAPI_FUNC(void) _Py_DecRefSharedDebug(PyObject *, const char *, int); |
313 | | |
314 | | // Called from Py_DECREF by the owning thread when the local refcount reaches |
315 | | // zero. The call will deallocate the object if the shared refcount is also |
316 | | // zero. Otherwise, the thread gives up ownership and merges the reference |
317 | | // count fields. |
318 | | PyAPI_FUNC(void) _Py_MergeZeroLocalRefcount(PyObject *); |
319 | | #endif |
320 | | |
321 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) |
322 | | // Stable ABI implements Py_DECREF() as a function call on limited C API |
323 | | // version 3.12 and newer, and on Python built in debug mode. _Py_DecRef() was |
324 | | // added to Python 3.10.0a7, use Py_DecRef() on older Python versions. |
325 | | // Py_DecRef() accepts NULL whereas _Py_DecRef() doesn't. |
326 | 8.80k | static inline void Py_DECREF(PyObject *op) { |
327 | 8.80k | # if Py_LIMITED_API+0 >= 0x030a00A7 |
328 | 8.80k | _Py_DecRef(op); |
329 | | # else |
330 | | Py_DecRef(op); |
331 | | # endif |
332 | 8.80k | } Line | Count | Source | 326 | 8.80k | static inline void Py_DECREF(PyObject *op) { | 327 | 8.80k | # if Py_LIMITED_API+0 >= 0x030a00A7 | 328 | 8.80k | _Py_DecRef(op); | 329 | | # else | 330 | | Py_DecRef(op); | 331 | | # endif | 332 | 8.80k | } |
Unexecuted instantiation: _stat.c:Py_DECREF |
333 | 8.80k | #define Py_DECREF(op) Py_DECREF(_PyObject_CAST(op)) |
334 | | |
335 | | #elif defined(Py_GIL_DISABLED) && defined(Py_REF_DEBUG) |
336 | | static inline void Py_DECREF(const char *filename, int lineno, PyObject *op) |
337 | | { |
338 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); |
339 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { |
340 | | _Py_DECREF_IMMORTAL_STAT_INC(); |
341 | | return; |
342 | | } |
343 | | _Py_DECREF_STAT_INC(); |
344 | | _Py_DECREF_DecRefTotal(); |
345 | | if (_Py_IsOwnedByCurrentThread(op)) { |
346 | | if (local == 0) { |
347 | | _Py_NegativeRefcount(filename, lineno, op); |
348 | | } |
349 | | local--; |
350 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, local); |
351 | | if (local == 0) { |
352 | | _Py_MergeZeroLocalRefcount(op); |
353 | | } |
354 | | } |
355 | | else { |
356 | | _Py_DecRefSharedDebug(op, filename, lineno); |
357 | | } |
358 | | } |
359 | | #define Py_DECREF(op) Py_DECREF(__FILE__, __LINE__, _PyObject_CAST(op)) |
360 | | |
361 | | #elif defined(Py_GIL_DISABLED) |
362 | | static inline void Py_DECREF(PyObject *op) |
363 | | { |
364 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); |
365 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { |
366 | | _Py_DECREF_IMMORTAL_STAT_INC(); |
367 | | return; |
368 | | } |
369 | | _Py_DECREF_STAT_INC(); |
370 | | if (_Py_IsOwnedByCurrentThread(op)) { |
371 | | local--; |
372 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, local); |
373 | | if (local == 0) { |
374 | | _Py_MergeZeroLocalRefcount(op); |
375 | | } |
376 | | } |
377 | | else { |
378 | | _Py_DecRefShared(op); |
379 | | } |
380 | | } |
381 | | #define Py_DECREF(op) Py_DECREF(_PyObject_CAST(op)) |
382 | | |
383 | | #elif defined(Py_REF_DEBUG) |
384 | | |
385 | | static inline void Py_DECREF(const char *filename, int lineno, PyObject *op) |
386 | | { |
387 | | #if SIZEOF_VOID_P > 4 |
388 | | /* If an object has been freed, it will have a negative full refcnt |
389 | | * If it has not it been freed, will have a very large refcnt */ |
390 | | if (op->ob_refcnt_full <= 0 || op->ob_refcnt > (((PY_UINT32_T)-1) - (1<<20))) { |
391 | | #else |
392 | | if (op->ob_refcnt <= 0) { |
393 | | #endif |
394 | | _Py_NegativeRefcount(filename, lineno, op); |
395 | | } |
396 | | if (_Py_IsImmortal(op)) { |
397 | | _Py_DECREF_IMMORTAL_STAT_INC(); |
398 | | return; |
399 | | } |
400 | | _Py_DECREF_STAT_INC(); |
401 | | _Py_DECREF_DecRefTotal(); |
402 | | if (--op->ob_refcnt == 0) { |
403 | | _Py_Dealloc(op); |
404 | | } |
405 | | } |
406 | | #define Py_DECREF(op) Py_DECREF(__FILE__, __LINE__, _PyObject_CAST(op)) |
407 | | |
408 | | #else |
409 | | |
410 | | static inline Py_ALWAYS_INLINE void Py_DECREF(PyObject *op) |
411 | 22.2G | { |
412 | | // Non-limited C API and limited C API for Python 3.9 and older access |
413 | | // directly PyObject.ob_refcnt. |
414 | 22.2G | if (_Py_IsImmortal(op)) { |
415 | 11.0G | _Py_DECREF_IMMORTAL_STAT_INC(); |
416 | 11.0G | return; |
417 | 11.0G | } |
418 | 11.1G | _Py_DECREF_STAT_INC(); |
419 | 11.1G | if (--op->ob_refcnt == 0) { |
420 | 1.45G | _Py_Dealloc(op); |
421 | 1.45G | } |
422 | 11.1G | } Line | Count | Source | 411 | 5.18M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 5.18M | if (_Py_IsImmortal(op)) { | 415 | 4.82M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 4.82M | return; | 417 | 4.82M | } | 418 | 352k | _Py_DECREF_STAT_INC(); | 419 | 352k | if (--op->ob_refcnt == 0) { | 420 | 283k | _Py_Dealloc(op); | 421 | 283k | } | 422 | 352k | } |
Line | Count | Source | 411 | 154M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 154M | if (_Py_IsImmortal(op)) { | 415 | 64.2M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 64.2M | return; | 417 | 64.2M | } | 418 | 90.2M | _Py_DECREF_STAT_INC(); | 419 | 90.2M | if (--op->ob_refcnt == 0) { | 420 | 62.1M | _Py_Dealloc(op); | 421 | 62.1M | } | 422 | 90.2M | } |
Line | Count | Source | 411 | 180M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 180M | if (_Py_IsImmortal(op)) { | 415 | 35.8M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 35.8M | return; | 417 | 35.8M | } | 418 | 144M | _Py_DECREF_STAT_INC(); | 419 | 144M | if (--op->ob_refcnt == 0) { | 420 | 93.7M | _Py_Dealloc(op); | 421 | 93.7M | } | 422 | 144M | } |
genericaliasobject.c:Py_DECREF Line | Count | Source | 411 | 322 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 322 | if (_Py_IsImmortal(op)) { | 415 | 139 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 139 | return; | 417 | 139 | } | 418 | 183 | _Py_DECREF_STAT_INC(); | 419 | 183 | if (--op->ob_refcnt == 0) { | 420 | 151 | _Py_Dealloc(op); | 421 | 151 | } | 422 | 183 | } |
Line | Count | Source | 411 | 281k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 281k | if (_Py_IsImmortal(op)) { | 415 | 34 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 34 | return; | 417 | 34 | } | 418 | 281k | _Py_DECREF_STAT_INC(); | 419 | 281k | if (--op->ob_refcnt == 0) { | 420 | 2 | _Py_Dealloc(op); | 421 | 2 | } | 422 | 281k | } |
Line | Count | Source | 411 | 2.02G | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 2.02G | if (_Py_IsImmortal(op)) { | 415 | 544M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 544M | return; | 417 | 544M | } | 418 | 1.48G | _Py_DECREF_STAT_INC(); | 419 | 1.48G | if (--op->ob_refcnt == 0) { | 420 | 329M | _Py_Dealloc(op); | 421 | 329M | } | 422 | 1.48G | } |
Line | Count | Source | 411 | 20.9M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 20.9M | if (_Py_IsImmortal(op)) { | 415 | 8.02M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 8.02M | return; | 417 | 8.02M | } | 418 | 12.9M | _Py_DECREF_STAT_INC(); | 419 | 12.9M | if (--op->ob_refcnt == 0) { | 420 | 3.77M | _Py_Dealloc(op); | 421 | 3.77M | } | 422 | 12.9M | } |
Line | Count | Source | 411 | 1.34G | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 1.34G | if (_Py_IsImmortal(op)) { | 415 | 600M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 600M | return; | 417 | 600M | } | 418 | 746M | _Py_DECREF_STAT_INC(); | 419 | 746M | if (--op->ob_refcnt == 0) { | 420 | 124M | _Py_Dealloc(op); | 421 | 124M | } | 422 | 746M | } |
Line | Count | Source | 411 | 3.11M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 3.11M | if (_Py_IsImmortal(op)) { | 415 | 148k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 148k | return; | 417 | 148k | } | 418 | 2.96M | _Py_DECREF_STAT_INC(); | 419 | 2.96M | if (--op->ob_refcnt == 0) { | 420 | 1.38M | _Py_Dealloc(op); | 421 | 1.38M | } | 422 | 2.96M | } |
Line | Count | Source | 411 | 3.71M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 3.71M | if (_Py_IsImmortal(op)) { | 415 | 3.66M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 3.66M | return; | 417 | 3.66M | } | 418 | 45.8k | _Py_DECREF_STAT_INC(); | 419 | 45.8k | if (--op->ob_refcnt == 0) { | 420 | 2.18k | _Py_Dealloc(op); | 421 | 2.18k | } | 422 | 45.8k | } |
Line | Count | Source | 411 | 953M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 953M | if (_Py_IsImmortal(op)) { | 415 | 739M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 739M | return; | 417 | 739M | } | 418 | 213M | _Py_DECREF_STAT_INC(); | 419 | 213M | if (--op->ob_refcnt == 0) { | 420 | 12.6k | _Py_Dealloc(op); | 421 | 12.6k | } | 422 | 213M | } |
Unexecuted instantiation: obmalloc.c:Py_DECREF Unexecuted instantiation: picklebufobject.c:Py_DECREF Line | Count | Source | 411 | 55.2M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 55.2M | if (_Py_IsImmortal(op)) { | 415 | 53.0M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 53.0M | return; | 417 | 53.0M | } | 418 | 2.19M | _Py_DECREF_STAT_INC(); | 419 | 2.19M | if (--op->ob_refcnt == 0) { | 420 | 1.04M | _Py_Dealloc(op); | 421 | 1.04M | } | 422 | 2.19M | } |
Line | Count | Source | 411 | 12.9M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 12.9M | if (_Py_IsImmortal(op)) { | 415 | 3.84M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 3.84M | return; | 417 | 3.84M | } | 418 | 9.10M | _Py_DECREF_STAT_INC(); | 419 | 9.10M | if (--op->ob_refcnt == 0) { | 420 | 2.41M | _Py_Dealloc(op); | 421 | 2.41M | } | 422 | 9.10M | } |
Line | Count | Source | 411 | 257M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 257M | if (_Py_IsImmortal(op)) { | 415 | 167M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 167M | return; | 417 | 167M | } | 418 | 90.3M | _Py_DECREF_STAT_INC(); | 419 | 90.3M | if (--op->ob_refcnt == 0) { | 420 | 32.3M | _Py_Dealloc(op); | 421 | 32.3M | } | 422 | 90.3M | } |
Line | Count | Source | 411 | 8.71M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 8.71M | if (_Py_IsImmortal(op)) { | 415 | 2.59M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 2.59M | return; | 417 | 2.59M | } | 418 | 6.12M | _Py_DECREF_STAT_INC(); | 419 | 6.12M | if (--op->ob_refcnt == 0) { | 420 | 5.66M | _Py_Dealloc(op); | 421 | 5.66M | } | 422 | 6.12M | } |
templateobject.c:Py_DECREF Line | Count | Source | 411 | 8 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 8 | if (_Py_IsImmortal(op)) { | 415 | 4 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 4 | return; | 417 | 4 | } | 418 | 4 | _Py_DECREF_STAT_INC(); | 419 | 4 | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 4 | } |
Line | Count | Source | 411 | 11.6G | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 11.6G | if (_Py_IsImmortal(op)) { | 415 | 5.62G | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 5.62G | return; | 417 | 5.62G | } | 418 | 6.06G | _Py_DECREF_STAT_INC(); | 419 | 6.06G | if (--op->ob_refcnt == 0) { | 420 | 112M | _Py_Dealloc(op); | 421 | 112M | } | 422 | 6.06G | } |
Line | Count | Source | 411 | 432M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 432M | if (_Py_IsImmortal(op)) { | 415 | 98.5M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 98.5M | return; | 417 | 98.5M | } | 418 | 334M | _Py_DECREF_STAT_INC(); | 419 | 334M | if (--op->ob_refcnt == 0) { | 420 | 42.7M | _Py_Dealloc(op); | 421 | 42.7M | } | 422 | 334M | } |
typevarobject.c:Py_DECREF Line | Count | Source | 411 | 1.97k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 1.97k | if (_Py_IsImmortal(op)) { | 415 | 308 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 308 | return; | 417 | 308 | } | 418 | 1.66k | _Py_DECREF_STAT_INC(); | 419 | 1.66k | if (--op->ob_refcnt == 0) { | 420 | 552 | _Py_Dealloc(op); | 421 | 552 | } | 422 | 1.66k | } |
unicode_format.c:Py_DECREF Line | Count | Source | 411 | 80.0M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 80.0M | if (_Py_IsImmortal(op)) { | 415 | 24.2M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 24.2M | return; | 417 | 24.2M | } | 418 | 55.7M | _Py_DECREF_STAT_INC(); | 419 | 55.7M | if (--op->ob_refcnt == 0) { | 420 | 15.6M | _Py_Dealloc(op); | 421 | 15.6M | } | 422 | 55.7M | } |
unicode_formatter.c:Py_DECREF Line | Count | Source | 411 | 512 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 512 | if (_Py_IsImmortal(op)) { | 415 | 384 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 384 | return; | 417 | 384 | } | 418 | 128 | _Py_DECREF_STAT_INC(); | 419 | 128 | if (--op->ob_refcnt == 0) { | 420 | 128 | _Py_Dealloc(op); | 421 | 128 | } | 422 | 128 | } |
unicode_writer.c:Py_DECREF Line | Count | Source | 411 | 21.4M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 21.4M | if (_Py_IsImmortal(op)) { | 415 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 0 | return; | 417 | 0 | } | 418 | 21.4M | _Py_DECREF_STAT_INC(); | 419 | 21.4M | if (--op->ob_refcnt == 0) { | 420 | 21.4M | _Py_Dealloc(op); | 421 | 21.4M | } | 422 | 21.4M | } |
Unexecuted instantiation: unicodectype.c:Py_DECREF unicodeobject.c:Py_DECREF Line | Count | Source | 411 | 220M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 220M | if (_Py_IsImmortal(op)) { | 415 | 133M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 133M | return; | 417 | 133M | } | 418 | 87.4M | _Py_DECREF_STAT_INC(); | 419 | 87.4M | if (--op->ob_refcnt == 0) { | 420 | 18.1M | _Py_Dealloc(op); | 421 | 18.1M | } | 422 | 87.4M | } |
Line | Count | Source | 411 | 2.62k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 2.62k | if (_Py_IsImmortal(op)) { | 415 | 292 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 292 | return; | 417 | 292 | } | 418 | 2.33k | _Py_DECREF_STAT_INC(); | 419 | 2.33k | if (--op->ob_refcnt == 0) { | 420 | 2.04k | _Py_Dealloc(op); | 421 | 2.04k | } | 422 | 2.33k | } |
weakrefobject.c:Py_DECREF Line | Count | Source | 411 | 72.2k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 72.2k | if (_Py_IsImmortal(op)) { | 415 | 20.7k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 20.7k | return; | 417 | 20.7k | } | 418 | 51.5k | _Py_DECREF_STAT_INC(); | 419 | 51.5k | if (--op->ob_refcnt == 0) { | 420 | 18.8k | _Py_Dealloc(op); | 421 | 18.8k | } | 422 | 51.5k | } |
Line | Count | Source | 411 | 52.4M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 52.4M | if (_Py_IsImmortal(op)) { | 415 | 7.57M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 7.57M | return; | 417 | 7.57M | } | 418 | 44.8M | _Py_DECREF_STAT_INC(); | 419 | 44.8M | if (--op->ob_refcnt == 0) { | 420 | 2.94M | _Py_Dealloc(op); | 421 | 2.94M | } | 422 | 44.8M | } |
Line | Count | Source | 411 | 2.21G | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 2.21G | if (_Py_IsImmortal(op)) { | 415 | 2.02G | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 2.02G | return; | 417 | 2.02G | } | 418 | 187M | _Py_DECREF_STAT_INC(); | 419 | 187M | if (--op->ob_refcnt == 0) { | 420 | 119M | _Py_Dealloc(op); | 421 | 119M | } | 422 | 187M | } |
Line | Count | Source | 411 | 7.23k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 7.23k | if (_Py_IsImmortal(op)) { | 415 | 621 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 621 | return; | 417 | 621 | } | 418 | 6.61k | _Py_DECREF_STAT_INC(); | 419 | 6.61k | if (--op->ob_refcnt == 0) { | 420 | 1.02k | _Py_Dealloc(op); | 421 | 1.02k | } | 422 | 6.61k | } |
Line | Count | Source | 411 | 9.02M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 9.02M | if (_Py_IsImmortal(op)) { | 415 | 3.22M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 3.22M | return; | 417 | 3.22M | } | 418 | 5.79M | _Py_DECREF_STAT_INC(); | 419 | 5.79M | if (--op->ob_refcnt == 0) { | 420 | 2.77M | _Py_Dealloc(op); | 421 | 2.77M | } | 422 | 5.79M | } |
Line | Count | Source | 411 | 76.8k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 76.8k | if (_Py_IsImmortal(op)) { | 415 | 67.7k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 67.7k | return; | 417 | 67.7k | } | 418 | 9.10k | _Py_DECREF_STAT_INC(); | 419 | 9.10k | if (--op->ob_refcnt == 0) { | 420 | 333 | _Py_Dealloc(op); | 421 | 333 | } | 422 | 9.10k | } |
Line | Count | Source | 411 | 356k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 356k | if (_Py_IsImmortal(op)) { | 415 | 185k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 185k | return; | 417 | 185k | } | 418 | 170k | _Py_DECREF_STAT_INC(); | 419 | 170k | if (--op->ob_refcnt == 0) { | 420 | 63.8k | _Py_Dealloc(op); | 421 | 63.8k | } | 422 | 170k | } |
Line | Count | Source | 411 | 64 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 64 | if (_Py_IsImmortal(op)) { | 415 | 32 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 32 | return; | 417 | 32 | } | 418 | 32 | _Py_DECREF_STAT_INC(); | 419 | 32 | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 32 | } |
Line | Count | Source | 411 | 90.8M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 90.8M | if (_Py_IsImmortal(op)) { | 415 | 36.1M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 36.1M | return; | 417 | 36.1M | } | 418 | 54.7M | _Py_DECREF_STAT_INC(); | 419 | 54.7M | if (--op->ob_refcnt == 0) { | 420 | 15.4M | _Py_Dealloc(op); | 421 | 15.4M | } | 422 | 54.7M | } |
Line | Count | Source | 411 | 40.2k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 40.2k | if (_Py_IsImmortal(op)) { | 415 | 27.4k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 27.4k | return; | 417 | 27.4k | } | 418 | 12.8k | _Py_DECREF_STAT_INC(); | 419 | 12.8k | if (--op->ob_refcnt == 0) { | 420 | 109 | _Py_Dealloc(op); | 421 | 109 | } | 422 | 12.8k | } |
Line | Count | Source | 411 | 50.0M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 50.0M | if (_Py_IsImmortal(op)) { | 415 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 0 | return; | 417 | 0 | } | 418 | 50.0M | _Py_DECREF_STAT_INC(); | 419 | 50.0M | if (--op->ob_refcnt == 0) { | 420 | 16.1M | _Py_Dealloc(op); | 421 | 16.1M | } | 422 | 50.0M | } |
Unexecuted instantiation: future.c:Py_DECREF Line | Count | Source | 411 | 739k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 739k | if (_Py_IsImmortal(op)) { | 415 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 0 | return; | 417 | 0 | } | 418 | 739k | _Py_DECREF_STAT_INC(); | 419 | 739k | if (--op->ob_refcnt == 0) { | 420 | 499k | _Py_Dealloc(op); | 421 | 499k | } | 422 | 739k | } |
Unexecuted instantiation: gc_gil.c:Py_DECREF Line | Count | Source | 411 | 9.49M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 9.49M | if (_Py_IsImmortal(op)) { | 415 | 8.75M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 8.75M | return; | 417 | 8.75M | } | 418 | 741k | _Py_DECREF_STAT_INC(); | 419 | 741k | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 741k | } |
Unexecuted instantiation: ceval_gil.c:Py_DECREF Unexecuted instantiation: hamt.c:Py_DECREF Unexecuted instantiation: hashtable.c:Py_DECREF Line | Count | Source | 411 | 23.5M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 23.5M | if (_Py_IsImmortal(op)) { | 415 | 3.12M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 3.12M | return; | 417 | 3.12M | } | 418 | 20.4M | _Py_DECREF_STAT_INC(); | 419 | 20.4M | if (--op->ob_refcnt == 0) { | 420 | 274k | _Py_Dealloc(op); | 421 | 274k | } | 422 | 20.4M | } |
Line | Count | Source | 411 | 2.74k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 2.74k | if (_Py_IsImmortal(op)) { | 415 | 1.08k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 1.08k | return; | 417 | 1.08k | } | 418 | 1.65k | _Py_DECREF_STAT_INC(); | 419 | 1.65k | if (--op->ob_refcnt == 0) { | 420 | 1.01k | _Py_Dealloc(op); | 421 | 1.01k | } | 422 | 1.65k | } |
Line | Count | Source | 411 | 4.54k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 4.54k | if (_Py_IsImmortal(op)) { | 415 | 3.68k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 3.68k | return; | 417 | 3.68k | } | 418 | 864 | _Py_DECREF_STAT_INC(); | 419 | 864 | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 864 | } |
instrumentation.c:Py_DECREF Line | Count | Source | 411 | 768 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 768 | if (_Py_IsImmortal(op)) { | 415 | 480 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 480 | return; | 417 | 480 | } | 418 | 288 | _Py_DECREF_STAT_INC(); | 419 | 288 | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 288 | } |
Unexecuted instantiation: instruction_sequence.c:Py_DECREF Line | Count | Source | 411 | 64.1k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 64.1k | if (_Py_IsImmortal(op)) { | 415 | 36.7k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 36.7k | return; | 417 | 36.7k | } | 418 | 27.3k | _Py_DECREF_STAT_INC(); | 419 | 27.3k | if (--op->ob_refcnt == 0) { | 420 | 283 | _Py_Dealloc(op); | 421 | 283 | } | 422 | 27.3k | } |
Unexecuted instantiation: legacy_tracing.c:Py_DECREF Unexecuted instantiation: lock.c:Py_DECREF Line | Count | Source | 411 | 1.20M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 1.20M | if (_Py_IsImmortal(op)) { | 415 | 498k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 498k | return; | 417 | 498k | } | 418 | 703k | _Py_DECREF_STAT_INC(); | 419 | 703k | if (--op->ob_refcnt == 0) { | 420 | 4.21k | _Py_Dealloc(op); | 421 | 4.21k | } | 422 | 703k | } |
Line | Count | Source | 411 | 26.2k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 26.2k | if (_Py_IsImmortal(op)) { | 415 | 18.4k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 18.4k | return; | 417 | 18.4k | } | 418 | 7.80k | _Py_DECREF_STAT_INC(); | 419 | 7.80k | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 7.80k | } |
Unexecuted instantiation: mysnprintf.c:Py_DECREF Unexecuted instantiation: parking_lot.c:Py_DECREF Unexecuted instantiation: preconfig.c:Py_DECREF Line | Count | Source | 411 | 3.16M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 3.16M | if (_Py_IsImmortal(op)) { | 415 | 2.69M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 2.69M | return; | 417 | 2.69M | } | 418 | 467k | _Py_DECREF_STAT_INC(); | 419 | 467k | if (--op->ob_refcnt == 0) { | 420 | 17.7k | _Py_Dealloc(op); | 421 | 17.7k | } | 422 | 467k | } |
Unexecuted instantiation: pyctype.c:Py_DECREF Unexecuted instantiation: pyhash.c:Py_DECREF Line | Count | Source | 411 | 1.15k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 1.15k | if (_Py_IsImmortal(op)) { | 415 | 224 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 224 | return; | 417 | 224 | } | 418 | 928 | _Py_DECREF_STAT_INC(); | 419 | 928 | if (--op->ob_refcnt == 0) { | 420 | 96 | _Py_Dealloc(op); | 421 | 96 | } | 422 | 928 | } |
Unexecuted instantiation: pymath.c:Py_DECREF Unexecuted instantiation: pystate.c:Py_DECREF Line | Count | Source | 411 | 1.35k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 1.35k | if (_Py_IsImmortal(op)) { | 415 | 332 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 332 | return; | 417 | 332 | } | 418 | 1.02k | _Py_DECREF_STAT_INC(); | 419 | 1.02k | if (--op->ob_refcnt == 0) { | 420 | 408 | _Py_Dealloc(op); | 421 | 408 | } | 422 | 1.02k | } |
Unexecuted instantiation: pytime.c:Py_DECREF Unexecuted instantiation: qsbr.c:Py_DECREF Unexecuted instantiation: bootstrap_hash.c:Py_DECREF Line | Count | Source | 411 | 2.05M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 2.05M | if (_Py_IsImmortal(op)) { | 415 | 1.12M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 1.12M | return; | 417 | 1.12M | } | 418 | 937k | _Py_DECREF_STAT_INC(); | 419 | 937k | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 937k | } |
Line | Count | Source | 411 | 2.26k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 2.26k | if (_Py_IsImmortal(op)) { | 415 | 1.49k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 1.49k | return; | 417 | 1.49k | } | 418 | 772 | _Py_DECREF_STAT_INC(); | 419 | 772 | if (--op->ob_refcnt == 0) { | 420 | 48 | _Py_Dealloc(op); | 421 | 48 | } | 422 | 772 | } |
Line | Count | Source | 411 | 438k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 438k | if (_Py_IsImmortal(op)) { | 415 | 188k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 188k | return; | 417 | 188k | } | 418 | 249k | _Py_DECREF_STAT_INC(); | 419 | 249k | if (--op->ob_refcnt == 0) { | 420 | 129k | _Py_Dealloc(op); | 421 | 129k | } | 422 | 249k | } |
Line | Count | Source | 411 | 4.40M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 4.40M | if (_Py_IsImmortal(op)) { | 415 | 1.02M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 1.02M | return; | 417 | 1.02M | } | 418 | 3.37M | _Py_DECREF_STAT_INC(); | 419 | 3.37M | if (--op->ob_refcnt == 0) { | 420 | 2.51M | _Py_Dealloc(op); | 421 | 2.51M | } | 422 | 3.37M | } |
Unexecuted instantiation: thread.c:Py_DECREF Line | Count | Source | 411 | 158M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 158M | if (_Py_IsImmortal(op)) { | 415 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 0 | return; | 417 | 0 | } | 418 | 158M | _Py_DECREF_STAT_INC(); | 419 | 158M | if (--op->ob_refcnt == 0) { | 420 | 45.6M | _Py_Dealloc(op); | 421 | 45.6M | } | 422 | 158M | } |
Unexecuted instantiation: tracemalloc.c:Py_DECREF Unexecuted instantiation: getopt.c:Py_DECREF Unexecuted instantiation: pystrcmp.c:Py_DECREF Unexecuted instantiation: pystrtod.c:Py_DECREF Unexecuted instantiation: pystrhex.c:Py_DECREF Unexecuted instantiation: dtoa.c:Py_DECREF Line | Count | Source | 411 | 8.62k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 8.62k | if (_Py_IsImmortal(op)) { | 415 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 0 | return; | 417 | 0 | } | 418 | 8.62k | _Py_DECREF_STAT_INC(); | 419 | 8.62k | if (--op->ob_refcnt == 0) { | 420 | 8.62k | _Py_Dealloc(op); | 421 | 8.62k | } | 422 | 8.62k | } |
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 | 411 | 6 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 6 | if (_Py_IsImmortal(op)) { | 415 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 0 | return; | 417 | 0 | } | 418 | 6 | _Py_DECREF_STAT_INC(); | 419 | 6 | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 6 | } |
Unexecuted instantiation: config.c:Py_DECREF Unexecuted instantiation: gcmodule.c:Py_DECREF _asynciomodule.c:Py_DECREF Line | Count | Source | 411 | 16 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 16 | if (_Py_IsImmortal(op)) { | 415 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 0 | return; | 417 | 0 | } | 418 | 16 | _Py_DECREF_STAT_INC(); | 419 | 16 | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 16 | } |
Line | Count | Source | 411 | 8 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 8 | if (_Py_IsImmortal(op)) { | 415 | 4 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 4 | return; | 417 | 4 | } | 418 | 4 | _Py_DECREF_STAT_INC(); | 419 | 4 | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 4 | } |
Unexecuted instantiation: faulthandler.c:Py_DECREF Line | Count | Source | 411 | 4.79M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 4.79M | if (_Py_IsImmortal(op)) { | 415 | 1.75M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 1.75M | return; | 417 | 1.75M | } | 418 | 3.04M | _Py_DECREF_STAT_INC(); | 419 | 3.04M | if (--op->ob_refcnt == 0) { | 420 | 1.26M | _Py_Dealloc(op); | 421 | 1.26M | } | 422 | 3.04M | } |
Line | Count | Source | 411 | 64 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 64 | if (_Py_IsImmortal(op)) { | 415 | 32 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 32 | return; | 417 | 32 | } | 418 | 32 | _Py_DECREF_STAT_INC(); | 419 | 32 | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 32 | } |
Unexecuted instantiation: _tracemalloc.c:Py_DECREF Unexecuted instantiation: _suggestions.c:Py_DECREF _datetimemodule.c:Py_DECREF Line | Count | Source | 411 | 1.84k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 1.84k | if (_Py_IsImmortal(op)) { | 415 | 397 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 397 | return; | 417 | 397 | } | 418 | 1.44k | _Py_DECREF_STAT_INC(); | 419 | 1.44k | if (--op->ob_refcnt == 0) { | 420 | 340 | _Py_Dealloc(op); | 421 | 340 | } | 422 | 1.44k | } |
Unexecuted instantiation: _codecsmodule.c:Py_DECREF _collectionsmodule.c:Py_DECREF Line | Count | Source | 411 | 99.8k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 99.8k | if (_Py_IsImmortal(op)) { | 415 | 42.5k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 42.5k | return; | 417 | 42.5k | } | 418 | 57.2k | _Py_DECREF_STAT_INC(); | 419 | 57.2k | if (--op->ob_refcnt == 0) { | 420 | 40.7k | _Py_Dealloc(op); | 421 | 40.7k | } | 422 | 57.2k | } |
Line | Count | Source | 411 | 2.50M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 2.50M | if (_Py_IsImmortal(op)) { | 415 | 2.33M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 2.33M | return; | 417 | 2.33M | } | 418 | 166k | _Py_DECREF_STAT_INC(); | 419 | 166k | if (--op->ob_refcnt == 0) { | 420 | 81.5k | _Py_Dealloc(op); | 421 | 81.5k | } | 422 | 166k | } |
Line | Count | Source | 411 | 2.72M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 2.72M | if (_Py_IsImmortal(op)) { | 415 | 2.60M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 2.60M | return; | 417 | 2.60M | } | 418 | 124k | _Py_DECREF_STAT_INC(); | 419 | 124k | if (--op->ob_refcnt == 0) { | 420 | 62.3k | _Py_Dealloc(op); | 421 | 62.3k | } | 422 | 124k | } |
Line | Count | Source | 411 | 121k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 121k | if (_Py_IsImmortal(op)) { | 415 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 0 | return; | 417 | 0 | } | 418 | 121k | _Py_DECREF_STAT_INC(); | 419 | 121k | if (--op->ob_refcnt == 0) { | 420 | 81.1k | _Py_Dealloc(op); | 421 | 81.1k | } | 422 | 121k | } |
Line | Count | Source | 411 | 332k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 332k | if (_Py_IsImmortal(op)) { | 415 | 94.5k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 94.5k | return; | 417 | 94.5k | } | 418 | 238k | _Py_DECREF_STAT_INC(); | 419 | 238k | if (--op->ob_refcnt == 0) { | 420 | 8.28k | _Py_Dealloc(op); | 421 | 8.28k | } | 422 | 238k | } |
Line | Count | Source | 411 | 10.3M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 10.3M | if (_Py_IsImmortal(op)) { | 415 | 9.78M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 9.78M | return; | 417 | 9.78M | } | 418 | 530k | _Py_DECREF_STAT_INC(); | 419 | 530k | if (--op->ob_refcnt == 0) { | 420 | 421k | _Py_Dealloc(op); | 421 | 421k | } | 422 | 530k | } |
Line | Count | Source | 411 | 1.07M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 1.07M | if (_Py_IsImmortal(op)) { | 415 | 287k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 287k | return; | 417 | 287k | } | 418 | 789k | _Py_DECREF_STAT_INC(); | 419 | 789k | if (--op->ob_refcnt == 0) { | 420 | 255k | _Py_Dealloc(op); | 421 | 255k | } | 422 | 789k | } |
Line | Count | Source | 411 | 307k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 307k | if (_Py_IsImmortal(op)) { | 415 | 157k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 157k | return; | 417 | 157k | } | 418 | 150k | _Py_DECREF_STAT_INC(); | 419 | 150k | if (--op->ob_refcnt == 0) { | 420 | 32.1k | _Py_Dealloc(op); | 421 | 32.1k | } | 422 | 150k | } |
itertoolsmodule.c:Py_DECREF Line | Count | Source | 411 | 96.8k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 96.8k | if (_Py_IsImmortal(op)) { | 415 | 5.59k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 5.59k | return; | 417 | 5.59k | } | 418 | 91.2k | _Py_DECREF_STAT_INC(); | 419 | 91.2k | if (--op->ob_refcnt == 0) { | 420 | 30.7k | _Py_Dealloc(op); | 421 | 30.7k | } | 422 | 91.2k | } |
Line | Count | Source | 411 | 400M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 400M | if (_Py_IsImmortal(op)) { | 415 | 147M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 147M | return; | 417 | 147M | } | 418 | 253M | _Py_DECREF_STAT_INC(); | 419 | 253M | if (--op->ob_refcnt == 0) { | 420 | 18.5M | _Py_Dealloc(op); | 421 | 18.5M | } | 422 | 253M | } |
Unexecuted instantiation: _sysconfig.c:Py_DECREF _threadmodule.c:Py_DECREF Line | Count | Source | 411 | 28.3k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 28.3k | if (_Py_IsImmortal(op)) { | 415 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 0 | return; | 417 | 0 | } | 418 | 28.3k | _Py_DECREF_STAT_INC(); | 419 | 28.3k | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 28.3k | } |
Line | Count | Source | 411 | 96 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 96 | if (_Py_IsImmortal(op)) { | 415 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 0 | return; | 417 | 0 | } | 418 | 96 | _Py_DECREF_STAT_INC(); | 419 | 96 | if (--op->ob_refcnt == 0) { | 420 | 96 | _Py_Dealloc(op); | 421 | 96 | } | 422 | 96 | } |
Unexecuted instantiation: _typesmodule.c:Py_DECREF Unexecuted instantiation: _typingmodule.c:Py_DECREF Unexecuted instantiation: _weakref.c:Py_DECREF Line | Count | Source | 411 | 128k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 128k | if (_Py_IsImmortal(op)) { | 415 | 26.4k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 26.4k | return; | 417 | 26.4k | } | 418 | 102k | _Py_DECREF_STAT_INC(); | 419 | 102k | if (--op->ob_refcnt == 0) { | 420 | 6.50k | _Py_Dealloc(op); | 421 | 6.50k | } | 422 | 102k | } |
_functoolsmodule.c:Py_DECREF Line | Count | Source | 411 | 873k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 873k | if (_Py_IsImmortal(op)) { | 415 | 217k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 217k | return; | 417 | 217k | } | 418 | 655k | _Py_DECREF_STAT_INC(); | 419 | 655k | if (--op->ob_refcnt == 0) { | 420 | 435k | _Py_Dealloc(op); | 421 | 435k | } | 422 | 655k | } |
Unexecuted instantiation: _localemodule.c:Py_DECREF Unexecuted instantiation: _opcode.c:Py_DECREF Line | Count | Source | 411 | 558k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 558k | if (_Py_IsImmortal(op)) { | 415 | 279k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 279k | return; | 417 | 279k | } | 418 | 279k | _Py_DECREF_STAT_INC(); | 419 | 279k | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 279k | } |
Unexecuted instantiation: symtablemodule.c:Py_DECREF Unexecuted instantiation: pwdmodule.c:Py_DECREF Line | Count | Source | 411 | 1.05k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 1.05k | if (_Py_IsImmortal(op)) { | 415 | 384 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 384 | return; | 417 | 384 | } | 418 | 672 | _Py_DECREF_STAT_INC(); | 419 | 672 | if (--op->ob_refcnt == 0) { | 420 | 32 | _Py_Dealloc(op); | 421 | 32 | } | 422 | 672 | } |
Unexecuted instantiation: frozen.c:Py_DECREF Unexecuted instantiation: getbuildinfo.c:Py_DECREF Unexecuted instantiation: peg_api.c:Py_DECREF Unexecuted instantiation: file_tokenizer.c:Py_DECREF Line | Count | Source | 411 | 18.5k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 18.5k | if (_Py_IsImmortal(op)) { | 415 | 603 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 603 | return; | 417 | 603 | } | 418 | 17.9k | _Py_DECREF_STAT_INC(); | 419 | 17.9k | if (--op->ob_refcnt == 0) { | 420 | 12.6k | _Py_Dealloc(op); | 421 | 12.6k | } | 422 | 17.9k | } |
Unexecuted instantiation: myreadline.c:Py_DECREF Line | Count | Source | 411 | 744M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 744M | if (_Py_IsImmortal(op)) { | 415 | 425M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 425M | return; | 417 | 425M | } | 418 | 318M | _Py_DECREF_STAT_INC(); | 419 | 318M | if (--op->ob_refcnt == 0) { | 420 | 2.85M | _Py_Dealloc(op); | 421 | 2.85M | } | 422 | 318M | } |
Unexecuted instantiation: boolobject.c:Py_DECREF Unexecuted instantiation: bytes_methods.c:Py_DECREF bytearrayobject.c:Py_DECREF Line | Count | Source | 411 | 4.31M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 4.31M | if (_Py_IsImmortal(op)) { | 415 | 508k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 508k | return; | 417 | 508k | } | 418 | 3.80M | _Py_DECREF_STAT_INC(); | 419 | 3.80M | if (--op->ob_refcnt == 0) { | 420 | 3.80M | _Py_Dealloc(op); | 421 | 3.80M | } | 422 | 3.80M | } |
Line | Count | Source | 411 | 18 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 18 | if (_Py_IsImmortal(op)) { | 415 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 0 | return; | 417 | 0 | } | 418 | 18 | _Py_DECREF_STAT_INC(); | 419 | 18 | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 18 | } |
Line | Count | Source | 411 | 521k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 521k | if (_Py_IsImmortal(op)) { | 415 | 68.8k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 68.8k | return; | 417 | 68.8k | } | 418 | 452k | _Py_DECREF_STAT_INC(); | 419 | 452k | if (--op->ob_refcnt == 0) { | 420 | 288k | _Py_Dealloc(op); | 421 | 288k | } | 422 | 452k | } |
Line | Count | Source | 411 | 94.3M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 94.3M | if (_Py_IsImmortal(op)) { | 415 | 76 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 76 | return; | 417 | 76 | } | 418 | 94.3M | _Py_DECREF_STAT_INC(); | 419 | 94.3M | if (--op->ob_refcnt == 0) { | 420 | 5.92k | _Py_Dealloc(op); | 421 | 5.92k | } | 422 | 94.3M | } |
Line | Count | Source | 411 | 500k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 500k | if (_Py_IsImmortal(op)) { | 415 | 231k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 231k | return; | 417 | 231k | } | 418 | 269k | _Py_DECREF_STAT_INC(); | 419 | 269k | if (--op->ob_refcnt == 0) { | 420 | 219k | _Py_Dealloc(op); | 421 | 219k | } | 422 | 269k | } |
Unexecuted instantiation: complexobject.c:Py_DECREF Line | Count | Source | 411 | 73.1M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 73.1M | if (_Py_IsImmortal(op)) { | 415 | 10.7M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 10.7M | return; | 417 | 10.7M | } | 418 | 62.4M | _Py_DECREF_STAT_INC(); | 419 | 62.4M | if (--op->ob_refcnt == 0) { | 420 | 32.8M | _Py_Dealloc(op); | 421 | 32.8M | } | 422 | 62.4M | } |
Line | Count | Source | 411 | 240M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 240M | if (_Py_IsImmortal(op)) { | 415 | 95.7M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 95.7M | return; | 417 | 95.7M | } | 418 | 144M | _Py_DECREF_STAT_INC(); | 419 | 144M | if (--op->ob_refcnt == 0) { | 420 | 46.7M | _Py_Dealloc(op); | 421 | 46.7M | } | 422 | 144M | } |
Line | Count | Source | 411 | 51.2M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 51.2M | if (_Py_IsImmortal(op)) { | 415 | 51.1M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 51.1M | return; | 417 | 51.1M | } | 418 | 74.7k | _Py_DECREF_STAT_INC(); | 419 | 74.7k | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 74.7k | } |
Line | Count | Source | 411 | 402k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 402k | if (_Py_IsImmortal(op)) { | 415 | 398k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 398k | return; | 417 | 398k | } | 418 | 4.01k | _Py_DECREF_STAT_INC(); | 419 | 4.01k | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 4.01k | } |
Line | Count | Source | 411 | 33.8M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 33.8M | if (_Py_IsImmortal(op)) { | 415 | 42 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 42 | return; | 417 | 42 | } | 418 | 33.8M | _Py_DECREF_STAT_INC(); | 419 | 33.8M | if (--op->ob_refcnt == 0) { | 420 | 8.78M | _Py_Dealloc(op); | 421 | 8.78M | } | 422 | 33.8M | } |
Line | Count | Source | 411 | 116M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 116M | if (_Py_IsImmortal(op)) { | 415 | 66.1M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 66.1M | return; | 417 | 66.1M | } | 418 | 50.4M | _Py_DECREF_STAT_INC(); | 419 | 50.4M | if (--op->ob_refcnt == 0) { | 420 | 543k | _Py_Dealloc(op); | 421 | 543k | } | 422 | 50.4M | } |
interpolationobject.c:Py_DECREF Line | Count | Source | 411 | 32 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 32 | if (_Py_IsImmortal(op)) { | 415 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 0 | return; | 417 | 0 | } | 418 | 32 | _Py_DECREF_STAT_INC(); | 419 | 32 | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 32 | } |
Line | Count | Source | 411 | 3.55M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 3.55M | if (_Py_IsImmortal(op)) { | 415 | 598k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 598k | return; | 417 | 598k | } | 418 | 2.95M | _Py_DECREF_STAT_INC(); | 419 | 2.95M | if (--op->ob_refcnt == 0) { | 420 | 299k | _Py_Dealloc(op); | 421 | 299k | } | 422 | 2.95M | } |
lazyimportobject.c:Py_DECREF Line | Count | Source | 411 | 224 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 224 | if (_Py_IsImmortal(op)) { | 415 | 56 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 56 | return; | 417 | 56 | } | 418 | 168 | _Py_DECREF_STAT_INC(); | 419 | 168 | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 168 | } |
Line | Count | Source | 411 | 14.2k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 14.2k | if (_Py_IsImmortal(op)) { | 415 | 8.13k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 8.13k | return; | 417 | 8.13k | } | 418 | 6.15k | _Py_DECREF_STAT_INC(); | 419 | 6.15k | if (--op->ob_refcnt == 0) { | 420 | 2.21k | _Py_Dealloc(op); | 421 | 2.21k | } | 422 | 6.15k | } |
Line | Count | Source | 411 | 335M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 335M | if (_Py_IsImmortal(op)) { | 415 | 5.45M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 5.45M | return; | 417 | 5.45M | } | 418 | 329M | _Py_DECREF_STAT_INC(); | 419 | 329M | if (--op->ob_refcnt == 0) { | 420 | 262M | _Py_Dealloc(op); | 421 | 262M | } | 422 | 329M | } |
namespaceobject.c:Py_DECREF Line | Count | Source | 411 | 40 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 40 | if (_Py_IsImmortal(op)) { | 415 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 0 | return; | 417 | 0 | } | 418 | 40 | _Py_DECREF_STAT_INC(); | 419 | 40 | if (--op->ob_refcnt == 0) { | 420 | 40 | _Py_Dealloc(op); | 421 | 40 | } | 422 | 40 | } |
Unexecuted instantiation: _contextvars.c:Py_DECREF Line | Count | Source | 411 | 2.30M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 2.30M | if (_Py_IsImmortal(op)) { | 415 | 1.29M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 1.29M | return; | 417 | 1.29M | } | 418 | 1.01M | _Py_DECREF_STAT_INC(); | 419 | 1.01M | if (--op->ob_refcnt == 0) { | 420 | 285k | _Py_Dealloc(op); | 421 | 285k | } | 422 | 1.01M | } |
Python-tokenize.c:Py_DECREF Line | Count | Source | 411 | 252 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 252 | if (_Py_IsImmortal(op)) { | 415 | 98 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 98 | return; | 417 | 98 | } | 418 | 154 | _Py_DECREF_STAT_INC(); | 419 | 154 | if (--op->ob_refcnt == 0) { | 420 | 10 | _Py_Dealloc(op); | 421 | 10 | } | 422 | 154 | } |
Unexecuted instantiation: asdl.c:Py_DECREF Line | Count | Source | 411 | 32.1k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 32.1k | if (_Py_IsImmortal(op)) { | 415 | 6.58k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 6.58k | return; | 417 | 6.58k | } | 418 | 25.5k | _Py_DECREF_STAT_INC(); | 419 | 25.5k | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 25.5k | } |
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 | 411 | 117k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 117k | if (_Py_IsImmortal(op)) { | 415 | 44.9k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 44.9k | return; | 417 | 44.9k | } | 418 | 72.4k | _Py_DECREF_STAT_INC(); | 419 | 72.4k | if (--op->ob_refcnt == 0) { | 420 | 58.7k | _Py_Dealloc(op); | 421 | 58.7k | } | 422 | 72.4k | } |
Line | Count | Source | 411 | 34.3k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 34.3k | if (_Py_IsImmortal(op)) { | 415 | 1.86k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 1.86k | return; | 417 | 1.86k | } | 418 | 32.5k | _Py_DECREF_STAT_INC(); | 419 | 32.5k | if (--op->ob_refcnt == 0) { | 420 | 2.55k | _Py_Dealloc(op); | 421 | 2.55k | } | 422 | 32.5k | } |
Unexecuted instantiation: parser.c:Py_DECREF Unexecuted instantiation: buffer.c:Py_DECREF Line | Count | Source | 411 | 14.1k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 14.1k | if (_Py_IsImmortal(op)) { | 415 | 548 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 548 | return; | 417 | 548 | } | 418 | 13.6k | _Py_DECREF_STAT_INC(); | 419 | 13.6k | if (--op->ob_refcnt == 0) { | 420 | 13.6k | _Py_Dealloc(op); | 421 | 13.6k | } | 422 | 13.6k | } |
Line | Count | Source | 411 | 18.4k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 18.4k | if (_Py_IsImmortal(op)) { | 415 | 585 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 585 | return; | 417 | 585 | } | 418 | 17.8k | _Py_DECREF_STAT_INC(); | 419 | 17.8k | if (--op->ob_refcnt == 0) { | 420 | 1.94k | _Py_Dealloc(op); | 421 | 1.94k | } | 422 | 17.8k | } |
readline_tokenizer.c:Py_DECREF Line | Count | Source | 411 | 174 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 174 | if (_Py_IsImmortal(op)) { | 415 | 22 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 22 | return; | 417 | 22 | } | 418 | 152 | _Py_DECREF_STAT_INC(); | 419 | 152 | if (--op->ob_refcnt == 0) { | 420 | 34 | _Py_Dealloc(op); | 421 | 34 | } | 422 | 152 | } |
Unexecuted instantiation: string_tokenizer.c:Py_DECREF Unexecuted instantiation: utf8_tokenizer.c:Py_DECREF Unexecuted instantiation: getcompiler.c:Py_DECREF Unexecuted instantiation: mystrtoul.c:Py_DECREF Unexecuted instantiation: token.c:Py_DECREF Unexecuted instantiation: action_helpers.c:Py_DECREF string_parser.c:Py_DECREF Line | Count | Source | 411 | 35.8k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 35.8k | if (_Py_IsImmortal(op)) { | 415 | 1.93k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 1.93k | return; | 417 | 1.93k | } | 418 | 33.8k | _Py_DECREF_STAT_INC(); | 419 | 33.8k | if (--op->ob_refcnt == 0) { | 420 | 33.8k | _Py_Dealloc(op); | 421 | 33.8k | } | 422 | 33.8k | } |
|
423 | 22.2G | #define Py_DECREF(op) Py_DECREF(_PyObject_CAST(op)) |
424 | | #endif |
425 | | |
426 | | |
427 | | /* Safely decref `op` and set `op` to NULL, especially useful in tp_clear |
428 | | * and tp_dealloc implementations. |
429 | | * |
430 | | * Note that "the obvious" code can be deadly: |
431 | | * |
432 | | * Py_XDECREF(op); |
433 | | * op = NULL; |
434 | | * |
435 | | * Typically, `op` is something like self->containee, and `self` is done |
436 | | * using its `containee` member. In the code sequence above, suppose |
437 | | * `containee` is non-NULL with a refcount of 1. Its refcount falls to |
438 | | * 0 on the first line, which can trigger an arbitrary amount of code, |
439 | | * possibly including finalizers (like __del__ methods or weakref callbacks) |
440 | | * coded in Python, which in turn can release the GIL and allow other threads |
441 | | * to run, etc. Such code may even invoke methods of `self` again, or cause |
442 | | * cyclic gc to trigger, but-- oops! --self->containee still points to the |
443 | | * object being torn down, and it may be in an insane state while being torn |
444 | | * down. This has in fact been a rich historic source of miserable (rare & |
445 | | * hard-to-diagnose) segfaulting (and other) bugs. |
446 | | * |
447 | | * The safe way is: |
448 | | * |
449 | | * Py_CLEAR(op); |
450 | | * |
451 | | * That arranges to set `op` to NULL _before_ decref'ing, so that any code |
452 | | * triggered as a side-effect of `op` getting torn down no longer believes |
453 | | * `op` points to a valid object. |
454 | | * |
455 | | * There are cases where it's safe to use the naive code, but they're brittle. |
456 | | * For example, if `op` points to a Python integer, you know that destroying |
457 | | * one of those can't cause problems -- but in part that relies on that |
458 | | * Python integers aren't currently weakly referencable. Best practice is |
459 | | * to use Py_CLEAR() even if you can't think of a reason for why you need to. |
460 | | * |
461 | | * gh-98724: Use a temporary variable to only evaluate the macro argument once, |
462 | | * to avoid the duplication of side effects if the argument has side effects. |
463 | | * |
464 | | * gh-99701: If the PyObject* type is used with casting arguments to PyObject*, |
465 | | * the code can be miscompiled with strict aliasing because of type punning. |
466 | | * With strict aliasing, a compiler considers that two pointers of different |
467 | | * types cannot read or write the same memory which enables optimization |
468 | | * opportunities. |
469 | | * |
470 | | * If available, use _Py_TYPEOF() to use the 'op' type for temporary variables, |
471 | | * and so avoid type punning. Otherwise, use memcpy() which causes type erasure |
472 | | * and so prevents the compiler to reuse an old cached 'op' value after |
473 | | * Py_CLEAR(). |
474 | | */ |
475 | | #ifdef _Py_TYPEOF |
476 | | #define Py_CLEAR(op) \ |
477 | 2.20G | do { \ |
478 | 2.20G | _Py_TYPEOF(op)* _tmp_op_ptr = &(op); \ |
479 | 2.20G | _Py_TYPEOF(op) _tmp_old_op = (*_tmp_op_ptr); \ |
480 | 2.20G | if (_tmp_old_op != NULL) { \ |
481 | 467M | *_tmp_op_ptr = _Py_NULL; \ |
482 | 467M | Py_DECREF(_tmp_old_op); \ |
483 | 467M | } \ |
484 | 2.20G | } while (0) |
485 | | #else |
486 | | #define Py_CLEAR(op) \ |
487 | | do { \ |
488 | | PyObject **_tmp_op_ptr = _Py_CAST(PyObject**, &(op)); \ |
489 | | PyObject *_tmp_old_op = (*_tmp_op_ptr); \ |
490 | | if (_tmp_old_op != NULL) { \ |
491 | | PyObject *_null_ptr = _Py_NULL; \ |
492 | | memcpy(_tmp_op_ptr, &_null_ptr, sizeof(PyObject*)); \ |
493 | | Py_DECREF(_tmp_old_op); \ |
494 | | } \ |
495 | | } while (0) |
496 | | #endif |
497 | | |
498 | | |
499 | | /* Function to use in case the object pointer can be NULL: */ |
500 | | static inline void Py_XINCREF(PyObject *op) |
501 | 2.06G | { |
502 | 2.06G | if (op != _Py_NULL) { |
503 | 914M | Py_INCREF(op); |
504 | 914M | } |
505 | 2.06G | } Unexecuted instantiation: bytesobject.c:Py_XINCREF Unexecuted instantiation: call.c:Py_XINCREF Line | Count | Source | 501 | 107M | { | 502 | 107M | if (op != _Py_NULL) { | 503 | 22.2M | Py_INCREF(op); | 504 | 22.2M | } | 505 | 107M | } |
Unexecuted instantiation: genericaliasobject.c:Py_XINCREF Unexecuted instantiation: floatobject.c:Py_XINCREF Line | Count | Source | 501 | 19.0M | { | 502 | 19.0M | if (op != _Py_NULL) { | 503 | 19.0M | Py_INCREF(op); | 504 | 19.0M | } | 505 | 19.0M | } |
Unexecuted instantiation: longobject.c:Py_XINCREF Line | Count | Source | 501 | 726M | { | 502 | 726M | if (op != _Py_NULL) { | 503 | 226M | Py_INCREF(op); | 504 | 226M | } | 505 | 726M | } |
Unexecuted instantiation: memoryobject.c:Py_XINCREF Unexecuted instantiation: moduleobject.c:Py_XINCREF Unexecuted instantiation: object.c:Py_XINCREF Unexecuted instantiation: obmalloc.c:Py_XINCREF Unexecuted instantiation: picklebufobject.c:Py_XINCREF Unexecuted instantiation: rangeobject.c:Py_XINCREF Unexecuted instantiation: setobject.c:Py_XINCREF Unexecuted instantiation: sliceobject.c:Py_XINCREF Unexecuted instantiation: structseq.c:Py_XINCREF Unexecuted instantiation: templateobject.c:Py_XINCREF Unexecuted instantiation: tupleobject.c:Py_XINCREF Line | Count | Source | 501 | 53.5M | { | 502 | 53.5M | if (op != _Py_NULL) { | 503 | 53.2M | Py_INCREF(op); | 504 | 53.2M | } | 505 | 53.5M | } |
typevarobject.c:Py_XINCREF Line | Count | Source | 501 | 688 | { | 502 | 688 | if (op != _Py_NULL) { | 503 | 136 | Py_INCREF(op); | 504 | 136 | } | 505 | 688 | } |
Unexecuted instantiation: unicode_format.c:Py_XINCREF Unexecuted instantiation: unicode_formatter.c:Py_XINCREF Unexecuted instantiation: unicode_writer.c:Py_XINCREF Unexecuted instantiation: unicodectype.c:Py_XINCREF Unexecuted instantiation: unicodeobject.c:Py_XINCREF Unexecuted instantiation: unionobject.c:Py_XINCREF weakrefobject.c:Py_XINCREF Line | Count | Source | 501 | 286k | { | 502 | 286k | if (op != _Py_NULL) { | 503 | 25.5k | Py_INCREF(op); | 504 | 25.5k | } | 505 | 286k | } |
Unexecuted instantiation: _warnings.c:Py_XINCREF Line | Count | Source | 501 | 972 | { | 502 | 972 | if (op != _Py_NULL) { | 503 | 972 | Py_INCREF(op); | 504 | 972 | } | 505 | 972 | } |
Line | Count | Source | 501 | 278M | { | 502 | 278M | if (op != _Py_NULL) { | 503 | 84.4M | Py_INCREF(op); | 504 | 84.4M | } | 505 | 278M | } |
Unexecuted instantiation: codecs.c:Py_XINCREF Unexecuted instantiation: codegen.c:Py_XINCREF Line | Count | Source | 501 | 7.46k | { | 502 | 7.46k | if (op != _Py_NULL) { | 503 | 3.20k | Py_INCREF(op); | 504 | 3.20k | } | 505 | 7.46k | } |
Line | Count | Source | 501 | 272k | { | 502 | 272k | if (op != _Py_NULL) { | 503 | 0 | Py_INCREF(op); | 504 | 0 | } | 505 | 272k | } |
Line | Count | Source | 501 | 40.0M | { | 502 | 40.0M | if (op != _Py_NULL) { | 503 | 39.9M | Py_INCREF(op); | 504 | 39.9M | } | 505 | 40.0M | } |
Unexecuted instantiation: flowgraph.c:Py_XINCREF Unexecuted instantiation: frame.c:Py_XINCREF Unexecuted instantiation: future.c:Py_XINCREF Unexecuted instantiation: gc.c:Py_XINCREF Unexecuted instantiation: gc_gil.c:Py_XINCREF Unexecuted instantiation: getargs.c:Py_XINCREF Unexecuted instantiation: ceval_gil.c:Py_XINCREF Unexecuted instantiation: hamt.c:Py_XINCREF Unexecuted instantiation: hashtable.c:Py_XINCREF Line | Count | Source | 501 | 18.4k | { | 502 | 18.4k | if (op != _Py_NULL) { | 503 | 14.6k | Py_INCREF(op); | 504 | 14.6k | } | 505 | 18.4k | } |
Unexecuted instantiation: importdl.c:Py_XINCREF Unexecuted instantiation: initconfig.c:Py_XINCREF Unexecuted instantiation: instrumentation.c:Py_XINCREF Unexecuted instantiation: instruction_sequence.c:Py_XINCREF Unexecuted instantiation: intrinsics.c:Py_XINCREF Unexecuted instantiation: legacy_tracing.c:Py_XINCREF Unexecuted instantiation: lock.c:Py_XINCREF Unexecuted instantiation: marshal.c:Py_XINCREF Unexecuted instantiation: modsupport.c:Py_XINCREF Unexecuted instantiation: mysnprintf.c:Py_XINCREF Unexecuted instantiation: parking_lot.c:Py_XINCREF Unexecuted instantiation: preconfig.c:Py_XINCREF Unexecuted instantiation: pyarena.c:Py_XINCREF Unexecuted instantiation: pyctype.c:Py_XINCREF Unexecuted instantiation: pyhash.c:Py_XINCREF Unexecuted instantiation: pylifecycle.c:Py_XINCREF Unexecuted instantiation: pymath.c:Py_XINCREF Line | Count | Source | 501 | 1.46M | { | 502 | 1.46M | if (op != _Py_NULL) { | 503 | 1.46M | Py_INCREF(op); | 504 | 1.46M | } | 505 | 1.46M | } |
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 | 501 | 2.86M | { | 502 | 2.86M | if (op != _Py_NULL) { | 503 | 1.97M | Py_INCREF(op); | 504 | 1.97M | } | 505 | 2.86M | } |
Unexecuted instantiation: symtable.c:Py_XINCREF Line | Count | Source | 501 | 76 | { | 502 | 76 | if (op != _Py_NULL) { | 503 | 76 | Py_INCREF(op); | 504 | 76 | } | 505 | 76 | } |
Unexecuted instantiation: thread.c:Py_XINCREF Line | Count | Source | 501 | 117M | { | 502 | 117M | if (op != _Py_NULL) { | 503 | 79.3M | Py_INCREF(op); | 504 | 79.3M | } | 505 | 117M | } |
Unexecuted instantiation: tracemalloc.c:Py_XINCREF Unexecuted instantiation: getopt.c:Py_XINCREF Unexecuted instantiation: pystrcmp.c:Py_XINCREF Unexecuted instantiation: pystrtod.c:Py_XINCREF Unexecuted instantiation: pystrhex.c:Py_XINCREF Unexecuted instantiation: dtoa.c:Py_XINCREF Unexecuted instantiation: fileutils.c:Py_XINCREF Unexecuted instantiation: suggestions.c:Py_XINCREF Unexecuted instantiation: perf_trampoline.c:Py_XINCREF Unexecuted instantiation: perf_jit_trampoline.c:Py_XINCREF Unexecuted instantiation: remote_debugging.c:Py_XINCREF Unexecuted instantiation: dynload_shlib.c:Py_XINCREF Unexecuted instantiation: config.c:Py_XINCREF Unexecuted instantiation: gcmodule.c:Py_XINCREF Unexecuted instantiation: _asynciomodule.c:Py_XINCREF Unexecuted instantiation: atexitmodule.c:Py_XINCREF Unexecuted instantiation: faulthandler.c:Py_XINCREF Line | Count | Source | 501 | 180k | { | 502 | 180k | if (op != _Py_NULL) { | 503 | 180k | Py_INCREF(op); | 504 | 180k | } | 505 | 180k | } |
Unexecuted instantiation: signalmodule.c:Py_XINCREF Unexecuted instantiation: _tracemalloc.c:Py_XINCREF Unexecuted instantiation: _suggestions.c:Py_XINCREF _datetimemodule.c:Py_XINCREF Line | Count | Source | 501 | 64 | { | 502 | 64 | if (op != _Py_NULL) { | 503 | 0 | Py_INCREF(op); | 504 | 0 | } | 505 | 64 | } |
Unexecuted instantiation: _codecsmodule.c:Py_XINCREF _collectionsmodule.c:Py_XINCREF Line | Count | Source | 501 | 164 | { | 502 | 164 | if (op != _Py_NULL) { | 503 | 164 | Py_INCREF(op); | 504 | 164 | } | 505 | 164 | } |
Unexecuted instantiation: errnomodule.c:Py_XINCREF Unexecuted instantiation: _iomodule.c:Py_XINCREF Unexecuted instantiation: iobase.c:Py_XINCREF Unexecuted instantiation: fileio.c:Py_XINCREF Unexecuted instantiation: bytesio.c:Py_XINCREF Line | Count | Source | 501 | 4.01k | { | 502 | 4.01k | if (op != _Py_NULL) { | 503 | 4.01k | Py_INCREF(op); | 504 | 4.01k | } | 505 | 4.01k | } |
Unexecuted instantiation: textio.c:Py_XINCREF Unexecuted instantiation: stringio.c:Py_XINCREF Unexecuted instantiation: itertoolsmodule.c:Py_XINCREF Unexecuted instantiation: sre.c:Py_XINCREF Unexecuted instantiation: _sysconfig.c:Py_XINCREF _threadmodule.c:Py_XINCREF Line | Count | Source | 501 | 76 | { | 502 | 76 | if (op != _Py_NULL) { | 503 | 38 | Py_INCREF(op); | 504 | 38 | } | 505 | 76 | } |
Unexecuted instantiation: timemodule.c:Py_XINCREF Unexecuted instantiation: _typesmodule.c:Py_XINCREF Unexecuted instantiation: _typingmodule.c:Py_XINCREF Unexecuted instantiation: _weakref.c:Py_XINCREF Line | Count | Source | 501 | 1.45k | { | 502 | 1.45k | if (op != _Py_NULL) { | 503 | 1.45k | Py_INCREF(op); | 504 | 1.45k | } | 505 | 1.45k | } |
_functoolsmodule.c:Py_XINCREF Line | Count | Source | 501 | 16 | { | 502 | 16 | if (op != _Py_NULL) { | 503 | 0 | Py_INCREF(op); | 504 | 0 | } | 505 | 16 | } |
Unexecuted instantiation: _localemodule.c:Py_XINCREF Unexecuted instantiation: _opcode.c:Py_XINCREF Unexecuted instantiation: _operator.c:Py_XINCREF Unexecuted instantiation: _stat.c:Py_XINCREF Unexecuted instantiation: symtablemodule.c:Py_XINCREF Unexecuted instantiation: pwdmodule.c:Py_XINCREF Line | Count | Source | 501 | 96 | { | 502 | 96 | if (op != _Py_NULL) { | 503 | 96 | Py_INCREF(op); | 504 | 96 | } | 505 | 96 | } |
Unexecuted instantiation: frozen.c:Py_XINCREF Unexecuted instantiation: getbuildinfo.c:Py_XINCREF Unexecuted instantiation: peg_api.c:Py_XINCREF Unexecuted instantiation: file_tokenizer.c:Py_XINCREF Unexecuted instantiation: helpers.c:Py_XINCREF Unexecuted instantiation: myreadline.c:Py_XINCREF Line | Count | Source | 501 | 43.9M | { | 502 | 43.9M | if (op != _Py_NULL) { | 503 | 42.7M | Py_INCREF(op); | 504 | 42.7M | } | 505 | 43.9M | } |
Unexecuted instantiation: boolobject.c:Py_XINCREF Unexecuted instantiation: bytes_methods.c:Py_XINCREF Unexecuted instantiation: bytearrayobject.c:Py_XINCREF Unexecuted instantiation: capsule.c:Py_XINCREF Line | Count | Source | 501 | 6.12M | { | 502 | 6.12M | if (op != _Py_NULL) { | 503 | 185k | Py_INCREF(op); | 504 | 185k | } | 505 | 6.12M | } |
Unexecuted instantiation: classobject.c:Py_XINCREF Line | Count | Source | 501 | 3.89k | { | 502 | 3.89k | if (op != _Py_NULL) { | 503 | 3.89k | Py_INCREF(op); | 504 | 3.89k | } | 505 | 3.89k | } |
Unexecuted instantiation: complexobject.c:Py_XINCREF Line | Count | Source | 501 | 96.5k | { | 502 | 96.5k | if (op != _Py_NULL) { | 503 | 91.7k | Py_INCREF(op); | 504 | 91.7k | } | 505 | 96.5k | } |
Unexecuted instantiation: enumobject.c:Py_XINCREF Line | Count | Source | 501 | 2.13k | { | 502 | 2.13k | if (op != _Py_NULL) { | 503 | 0 | Py_INCREF(op); | 504 | 0 | } | 505 | 2.13k | } |
Unexecuted instantiation: fileobject.c:Py_XINCREF Line | Count | Source | 501 | 15.4M | { | 502 | 15.4M | if (op != _Py_NULL) { | 503 | 15.4M | Py_INCREF(op); | 504 | 15.4M | } | 505 | 15.4M | } |
Line | Count | Source | 501 | 15.6k | { | 502 | 15.6k | if (op != _Py_NULL) { | 503 | 978 | Py_INCREF(op); | 504 | 978 | } | 505 | 15.6k | } |
Unexecuted instantiation: interpolationobject.c:Py_XINCREF Unexecuted instantiation: iterobject.c:Py_XINCREF lazyimportobject.c:Py_XINCREF Line | Count | Source | 501 | 224 | { | 502 | 224 | if (op != _Py_NULL) { | 503 | 224 | Py_INCREF(op); | 504 | 224 | } | 505 | 224 | } |
Unexecuted instantiation: odictobject.c:Py_XINCREF methodobject.c:Py_XINCREF Line | Count | Source | 501 | 655M | { | 502 | 655M | if (op != _Py_NULL) { | 503 | 327M | Py_INCREF(op); | 504 | 327M | } | 505 | 655M | } |
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 | 501 | 15.8k | { | 502 | 15.8k | if (op != _Py_NULL) { | 503 | 572 | Py_INCREF(op); | 504 | 572 | } | 505 | 15.8k | } |
Unexecuted instantiation: pegen_errors.c:Py_XINCREF Unexecuted instantiation: parser.c:Py_XINCREF Unexecuted instantiation: buffer.c:Py_XINCREF Unexecuted instantiation: lexer.c:Py_XINCREF Unexecuted instantiation: state.c:Py_XINCREF Unexecuted instantiation: readline_tokenizer.c:Py_XINCREF Unexecuted instantiation: string_tokenizer.c:Py_XINCREF Unexecuted instantiation: utf8_tokenizer.c:Py_XINCREF Unexecuted instantiation: getcompiler.c:Py_XINCREF Unexecuted instantiation: mystrtoul.c:Py_XINCREF Unexecuted instantiation: token.c:Py_XINCREF Unexecuted instantiation: action_helpers.c:Py_XINCREF Unexecuted instantiation: string_parser.c:Py_XINCREF |
506 | | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000 |
507 | 2.06G | # define Py_XINCREF(op) Py_XINCREF(_PyObject_CAST(op)) |
508 | | #endif |
509 | | |
510 | | static inline void Py_XDECREF(PyObject *op) |
511 | 16.5G | { |
512 | 16.5G | if (op != _Py_NULL) { |
513 | 15.3G | Py_DECREF(op); |
514 | 15.3G | } |
515 | 16.5G | } Line | Count | Source | 511 | 8.32M | { | 512 | 8.32M | if (op != _Py_NULL) { | 513 | 215k | Py_DECREF(op); | 514 | 215k | } | 515 | 8.32M | } |
Unexecuted instantiation: call.c:Py_XDECREF Line | Count | Source | 511 | 107M | { | 512 | 107M | if (op != _Py_NULL) { | 513 | 52.4M | Py_DECREF(op); | 514 | 52.4M | } | 515 | 107M | } |
genericaliasobject.c:Py_XDECREF Line | Count | Source | 511 | 539 | { | 512 | 539 | if (op != _Py_NULL) { | 513 | 322 | Py_DECREF(op); | 514 | 322 | } | 515 | 539 | } |
Line | Count | Source | 511 | 1.07M | { | 512 | 1.07M | if (op != _Py_NULL) { | 513 | 281k | Py_DECREF(op); | 514 | 281k | } | 515 | 1.07M | } |
Line | Count | Source | 511 | 1.95G | { | 512 | 1.95G | if (op != _Py_NULL) { | 513 | 1.92G | Py_DECREF(op); | 514 | 1.92G | } | 515 | 1.95G | } |
Line | Count | Source | 511 | 8.25M | { | 512 | 8.25M | if (op != _Py_NULL) { | 513 | 2.67M | Py_DECREF(op); | 514 | 2.67M | } | 515 | 8.25M | } |
Line | Count | Source | 511 | 844M | { | 512 | 844M | if (op != _Py_NULL) { | 513 | 836M | Py_DECREF(op); | 514 | 836M | } | 515 | 844M | } |
Unexecuted instantiation: memoryobject.c:Py_XDECREF moduleobject.c:Py_XDECREF Line | Count | Source | 511 | 15.8k | { | 512 | 15.8k | if (op != _Py_NULL) { | 513 | 10.1k | Py_DECREF(op); | 514 | 10.1k | } | 515 | 15.8k | } |
Line | Count | Source | 511 | 11.7M | { | 512 | 11.7M | if (op != _Py_NULL) { | 513 | 53.8k | Py_DECREF(op); | 514 | 53.8k | } | 515 | 11.7M | } |
Unexecuted instantiation: obmalloc.c:Py_XDECREF Unexecuted instantiation: picklebufobject.c:Py_XDECREF Line | Count | Source | 511 | 96 | { | 512 | 96 | if (op != _Py_NULL) { | 513 | 96 | Py_DECREF(op); | 514 | 96 | } | 515 | 96 | } |
Line | Count | Source | 511 | 306k | { | 512 | 306k | if (op != _Py_NULL) { | 513 | 459 | Py_DECREF(op); | 514 | 459 | } | 515 | 306k | } |
Unexecuted instantiation: sliceobject.c:Py_XDECREF Line | Count | Source | 511 | 8.27M | { | 512 | 8.27M | if (op != _Py_NULL) { | 513 | 8.27M | Py_DECREF(op); | 514 | 8.27M | } | 515 | 8.27M | } |
Unexecuted instantiation: templateobject.c:Py_XDECREF Line | Count | Source | 511 | 11.6G | { | 512 | 11.6G | if (op != _Py_NULL) { | 513 | 11.6G | Py_DECREF(op); | 514 | 11.6G | } | 515 | 11.6G | } |
Line | Count | Source | 511 | 23.3M | { | 512 | 23.3M | if (op != _Py_NULL) { | 513 | 2.52M | Py_DECREF(op); | 514 | 2.52M | } | 515 | 23.3M | } |
typevarobject.c:Py_XDECREF Line | Count | Source | 511 | 548 | { | 512 | 548 | if (op != _Py_NULL) { | 513 | 418 | Py_DECREF(op); | 514 | 418 | } | 515 | 548 | } |
unicode_format.c:Py_XDECREF Line | Count | Source | 511 | 69.1M | { | 512 | 69.1M | if (op != _Py_NULL) { | 513 | 39.0k | Py_DECREF(op); | 514 | 39.0k | } | 515 | 69.1M | } |
unicode_formatter.c:Py_XDECREF Line | Count | Source | 511 | 881 | { | 512 | 881 | if (op != _Py_NULL) { | 513 | 512 | Py_DECREF(op); | 514 | 512 | } | 515 | 881 | } |
Unexecuted instantiation: unicode_writer.c:Py_XDECREF Unexecuted instantiation: unicodectype.c:Py_XDECREF unicodeobject.c:Py_XDECREF Line | Count | Source | 511 | 123M | { | 512 | 123M | if (op != _Py_NULL) { | 513 | 82.1M | Py_DECREF(op); | 514 | 82.1M | } | 515 | 123M | } |
Line | Count | Source | 511 | 1.29k | { | 512 | 1.29k | if (op != _Py_NULL) { | 513 | 196 | Py_DECREF(op); | 514 | 196 | } | 515 | 1.29k | } |
weakrefobject.c:Py_XDECREF Line | Count | Source | 511 | 281k | { | 512 | 281k | if (op != _Py_NULL) { | 513 | 5.24k | Py_DECREF(op); | 514 | 5.24k | } | 515 | 281k | } |
Line | Count | Source | 511 | 8.81M | { | 512 | 8.81M | if (op != _Py_NULL) { | 513 | 7.62M | Py_DECREF(op); | 514 | 7.62M | } | 515 | 8.81M | } |
Line | Count | Source | 511 | 19.5M | { | 512 | 19.5M | if (op != _Py_NULL) { | 513 | 725k | Py_DECREF(op); | 514 | 725k | } | 515 | 19.5M | } |
Line | Count | Source | 511 | 349k | { | 512 | 349k | if (op != _Py_NULL) { | 513 | 7.23k | Py_DECREF(op); | 514 | 7.23k | } | 515 | 349k | } |
Line | Count | Source | 511 | 174k | { | 512 | 174k | if (op != _Py_NULL) { | 513 | 116k | Py_DECREF(op); | 514 | 116k | } | 515 | 174k | } |
Unexecuted instantiation: codegen.c:Py_XDECREF Line | Count | Source | 511 | 17.8k | { | 512 | 17.8k | if (op != _Py_NULL) { | 513 | 6.93k | Py_DECREF(op); | 514 | 6.93k | } | 515 | 17.8k | } |
Unexecuted instantiation: context.c:Py_XDECREF Line | Count | Source | 511 | 255M | { | 512 | 255M | if (op != _Py_NULL) { | 513 | 31.8M | Py_DECREF(op); | 514 | 31.8M | } | 515 | 255M | } |
Unexecuted instantiation: flowgraph.c:Py_XDECREF Unexecuted instantiation: frame.c:Py_XDECREF Unexecuted instantiation: future.c:Py_XDECREF Line | Count | Source | 511 | 180k | { | 512 | 180k | if (op != _Py_NULL) { | 513 | 0 | Py_DECREF(op); | 514 | 0 | } | 515 | 180k | } |
Unexecuted instantiation: gc_gil.c:Py_XDECREF Unexecuted instantiation: getargs.c:Py_XDECREF Unexecuted instantiation: ceval_gil.c:Py_XDECREF Unexecuted instantiation: hamt.c:Py_XDECREF Unexecuted instantiation: hashtable.c:Py_XDECREF Line | Count | Source | 511 | 7.35M | { | 512 | 7.35M | if (op != _Py_NULL) { | 513 | 7.33M | Py_DECREF(op); | 514 | 7.33M | } | 515 | 7.35M | } |
Unexecuted instantiation: importdl.c:Py_XDECREF Unexecuted instantiation: initconfig.c:Py_XDECREF Unexecuted instantiation: instrumentation.c:Py_XDECREF instruction_sequence.c:Py_XDECREF Line | Count | Source | 511 | 9.17k | { | 512 | 9.17k | if (op != _Py_NULL) { | 513 | 0 | Py_DECREF(op); | 514 | 0 | } | 515 | 9.17k | } |
Line | Count | Source | 511 | 30.5k | { | 512 | 30.5k | if (op != _Py_NULL) { | 513 | 30.5k | Py_DECREF(op); | 514 | 30.5k | } | 515 | 30.5k | } |
Unexecuted instantiation: legacy_tracing.c:Py_XDECREF Unexecuted instantiation: lock.c:Py_XDECREF Line | Count | Source | 511 | 1.18M | { | 512 | 1.18M | if (op != _Py_NULL) { | 513 | 1.18M | Py_DECREF(op); | 514 | 1.18M | } | 515 | 1.18M | } |
Line | Count | Source | 511 | 14.2k | { | 512 | 14.2k | if (op != _Py_NULL) { | 513 | 14.2k | Py_DECREF(op); | 514 | 14.2k | } | 515 | 14.2k | } |
Unexecuted instantiation: mysnprintf.c:Py_XDECREF Unexecuted instantiation: parking_lot.c:Py_XDECREF Unexecuted instantiation: preconfig.c:Py_XDECREF Unexecuted instantiation: pyarena.c:Py_XDECREF Unexecuted instantiation: pyctype.c:Py_XDECREF Unexecuted instantiation: pyhash.c:Py_XDECREF Line | Count | Source | 511 | 192 | { | 512 | 192 | if (op != _Py_NULL) { | 513 | 192 | Py_DECREF(op); | 514 | 192 | } | 515 | 192 | } |
Unexecuted instantiation: pymath.c:Py_XDECREF Unexecuted instantiation: pystate.c:Py_XDECREF Line | Count | Source | 511 | 1.22k | { | 512 | 1.22k | if (op != _Py_NULL) { | 513 | 816 | Py_DECREF(op); | 514 | 816 | } | 515 | 1.22k | } |
Unexecuted instantiation: pytime.c:Py_XDECREF Unexecuted instantiation: qsbr.c:Py_XDECREF Unexecuted instantiation: bootstrap_hash.c:Py_XDECREF Line | Count | Source | 511 | 3.77M | { | 512 | 3.77M | if (op != _Py_NULL) { | 513 | 2.05M | Py_DECREF(op); | 514 | 2.05M | } | 515 | 3.77M | } |
structmember.c:Py_XDECREF Line | Count | Source | 511 | 1.93M | { | 512 | 1.93M | if (op != _Py_NULL) { | 513 | 2.26k | Py_DECREF(op); | 514 | 2.26k | } | 515 | 1.93M | } |
Line | Count | Source | 511 | 107k | { | 512 | 107k | if (op != _Py_NULL) { | 513 | 85.0k | Py_DECREF(op); | 514 | 85.0k | } | 515 | 107k | } |
Line | Count | Source | 511 | 3.37M | { | 512 | 3.37M | if (op != _Py_NULL) { | 513 | 2.53M | Py_DECREF(op); | 514 | 2.53M | } | 515 | 3.37M | } |
Unexecuted instantiation: thread.c:Py_XDECREF Line | Count | Source | 511 | 235M | { | 512 | 235M | if (op != _Py_NULL) { | 513 | 158M | Py_DECREF(op); | 514 | 158M | } | 515 | 235M | } |
Unexecuted instantiation: tracemalloc.c:Py_XDECREF Unexecuted instantiation: getopt.c:Py_XDECREF Unexecuted instantiation: pystrcmp.c:Py_XDECREF Unexecuted instantiation: pystrtod.c:Py_XDECREF Unexecuted instantiation: pystrhex.c:Py_XDECREF Unexecuted instantiation: dtoa.c:Py_XDECREF Unexecuted instantiation: fileutils.c:Py_XDECREF Unexecuted instantiation: suggestions.c:Py_XDECREF Unexecuted instantiation: perf_trampoline.c:Py_XDECREF Unexecuted instantiation: perf_jit_trampoline.c:Py_XDECREF Unexecuted instantiation: remote_debugging.c:Py_XDECREF Unexecuted instantiation: dynload_shlib.c:Py_XDECREF Unexecuted instantiation: config.c:Py_XDECREF Unexecuted instantiation: gcmodule.c:Py_XDECREF Unexecuted instantiation: _asynciomodule.c:Py_XDECREF Unexecuted instantiation: atexitmodule.c:Py_XDECREF Unexecuted instantiation: faulthandler.c:Py_XDECREF Line | Count | Source | 511 | 1.53M | { | 512 | 1.53M | if (op != _Py_NULL) { | 513 | 1.28M | Py_DECREF(op); | 514 | 1.28M | } | 515 | 1.53M | } |
signalmodule.c:Py_XDECREF Line | Count | Source | 511 | 2.04k | { | 512 | 2.04k | if (op != _Py_NULL) { | 513 | 0 | Py_DECREF(op); | 514 | 0 | } | 515 | 2.04k | } |
Unexecuted instantiation: _tracemalloc.c:Py_XDECREF Unexecuted instantiation: _suggestions.c:Py_XDECREF _datetimemodule.c:Py_XDECREF Line | Count | Source | 511 | 712 | { | 512 | 712 | if (op != _Py_NULL) { | 513 | 274 | Py_DECREF(op); | 514 | 274 | } | 515 | 712 | } |
Unexecuted instantiation: _codecsmodule.c:Py_XDECREF _collectionsmodule.c:Py_XDECREF Line | Count | Source | 511 | 164 | { | 512 | 164 | if (op != _Py_NULL) { | 513 | 0 | Py_DECREF(op); | 514 | 0 | } | 515 | 164 | } |
Unexecuted instantiation: errnomodule.c:Py_XDECREF Line | Count | Source | 511 | 12 | { | 512 | 12 | if (op != _Py_NULL) { | 513 | 6 | Py_DECREF(op); | 514 | 6 | } | 515 | 12 | } |
Unexecuted instantiation: iobase.c:Py_XDECREF Unexecuted instantiation: fileio.c:Py_XDECREF Line | Count | Source | 511 | 40.0k | { | 512 | 40.0k | if (op != _Py_NULL) { | 513 | 40.0k | Py_DECREF(op); | 514 | 40.0k | } | 515 | 40.0k | } |
Line | Count | Source | 511 | 60.9k | { | 512 | 60.9k | if (op != _Py_NULL) { | 513 | 4.02k | Py_DECREF(op); | 514 | 4.02k | } | 515 | 60.9k | } |
Line | Count | Source | 511 | 32.5k | { | 512 | 32.5k | if (op != _Py_NULL) { | 513 | 118 | Py_DECREF(op); | 514 | 118 | } | 515 | 32.5k | } |
Unexecuted instantiation: stringio.c:Py_XDECREF itertoolsmodule.c:Py_XDECREF Line | Count | Source | 511 | 33.6k | { | 512 | 33.6k | if (op != _Py_NULL) { | 513 | 5.53k | Py_DECREF(op); | 514 | 5.53k | } | 515 | 33.6k | } |
Line | Count | Source | 511 | 76.2M | { | 512 | 76.2M | if (op != _Py_NULL) { | 513 | 76.2M | Py_DECREF(op); | 514 | 76.2M | } | 515 | 76.2M | } |
Unexecuted instantiation: _sysconfig.c:Py_XDECREF Unexecuted instantiation: _threadmodule.c:Py_XDECREF Unexecuted instantiation: timemodule.c:Py_XDECREF Unexecuted instantiation: _typesmodule.c:Py_XDECREF Unexecuted instantiation: _typingmodule.c:Py_XDECREF Unexecuted instantiation: _weakref.c:Py_XDECREF Line | Count | Source | 511 | 35.4k | { | 512 | 35.4k | if (op != _Py_NULL) { | 513 | 33.2k | Py_DECREF(op); | 514 | 33.2k | } | 515 | 35.4k | } |
_functoolsmodule.c:Py_XDECREF Line | Count | Source | 511 | 415 | { | 512 | 415 | if (op != _Py_NULL) { | 513 | 0 | Py_DECREF(op); | 514 | 0 | } | 515 | 415 | } |
Unexecuted instantiation: _localemodule.c:Py_XDECREF Unexecuted instantiation: _opcode.c:Py_XDECREF Unexecuted instantiation: _operator.c:Py_XDECREF Unexecuted instantiation: _stat.c:Py_XDECREF Unexecuted instantiation: symtablemodule.c:Py_XDECREF Unexecuted instantiation: pwdmodule.c:Py_XDECREF Unexecuted instantiation: getpath.c:Py_XDECREF Unexecuted instantiation: frozen.c:Py_XDECREF Unexecuted instantiation: getbuildinfo.c:Py_XDECREF Unexecuted instantiation: peg_api.c:Py_XDECREF Unexecuted instantiation: file_tokenizer.c:Py_XDECREF Line | Count | Source | 511 | 2.66k | { | 512 | 2.66k | if (op != _Py_NULL) { | 513 | 2.66k | Py_DECREF(op); | 514 | 2.66k | } | 515 | 2.66k | } |
Unexecuted instantiation: myreadline.c:Py_XDECREF Line | Count | Source | 511 | 395k | { | 512 | 395k | if (op != _Py_NULL) { | 513 | 256k | Py_DECREF(op); | 514 | 256k | } | 515 | 395k | } |
Unexecuted instantiation: boolobject.c:Py_XDECREF Unexecuted instantiation: bytes_methods.c:Py_XDECREF bytearrayobject.c:Py_XDECREF Line | Count | Source | 511 | 4.31M | { | 512 | 4.31M | if (op != _Py_NULL) { | 513 | 4.31M | Py_DECREF(op); | 514 | 4.31M | } | 515 | 4.31M | } |
Line | Count | Source | 511 | 9 | { | 512 | 9 | if (op != _Py_NULL) { | 513 | 9 | Py_DECREF(op); | 514 | 9 | } | 515 | 9 | } |
Line | Count | Source | 511 | 6.11M | { | 512 | 6.11M | if (op != _Py_NULL) { | 513 | 520k | Py_DECREF(op); | 514 | 520k | } | 515 | 6.11M | } |
Line | Count | Source | 511 | 47.1M | { | 512 | 47.1M | if (op != _Py_NULL) { | 513 | 47.1M | Py_DECREF(op); | 514 | 47.1M | } | 515 | 47.1M | } |
Line | Count | Source | 511 | 605k | { | 512 | 605k | if (op != _Py_NULL) { | 513 | 481k | Py_DECREF(op); | 514 | 481k | } | 515 | 605k | } |
Unexecuted instantiation: complexobject.c:Py_XDECREF Line | Count | Source | 511 | 30.4M | { | 512 | 30.4M | if (op != _Py_NULL) { | 513 | 21.4M | Py_DECREF(op); | 514 | 21.4M | } | 515 | 30.4M | } |
Line | Count | Source | 511 | 18.4M | { | 512 | 18.4M | if (op != _Py_NULL) { | 513 | 12.3M | Py_DECREF(op); | 514 | 12.3M | } | 515 | 18.4M | } |
Line | Count | Source | 511 | 1.06k | { | 512 | 1.06k | if (op != _Py_NULL) { | 513 | 0 | Py_DECREF(op); | 514 | 0 | } | 515 | 1.06k | } |
Unexecuted instantiation: fileobject.c:Py_XDECREF Unexecuted instantiation: frameobject.c:Py_XDECREF Line | Count | Source | 511 | 9.55k | { | 512 | 9.55k | if (op != _Py_NULL) { | 513 | 3.78k | Py_DECREF(op); | 514 | 3.78k | } | 515 | 9.55k | } |
Unexecuted instantiation: interpolationobject.c:Py_XDECREF Line | Count | Source | 511 | 3.55M | { | 512 | 3.55M | if (op != _Py_NULL) { | 513 | 299k | Py_DECREF(op); | 514 | 299k | } | 515 | 3.55M | } |
Unexecuted instantiation: lazyimportobject.c:Py_XDECREF Line | Count | Source | 511 | 8.05k | { | 512 | 8.05k | if (op != _Py_NULL) { | 513 | 3.58k | Py_DECREF(op); | 514 | 3.58k | } | 515 | 8.05k | } |
methodobject.c:Py_XDECREF Line | Count | Source | 511 | 983M | { | 512 | 983M | if (op != _Py_NULL) { | 513 | 335M | Py_DECREF(op); | 514 | 335M | } | 515 | 983M | } |
Unexecuted instantiation: namespaceobject.c:Py_XDECREF Unexecuted instantiation: _contextvars.c:Py_XDECREF Line | Count | Source | 511 | 624 | { | 512 | 624 | if (op != _Py_NULL) { | 513 | 416 | Py_DECREF(op); | 514 | 416 | } | 515 | 624 | } |
Python-tokenize.c:Py_XDECREF Line | Count | Source | 511 | 170 | { | 512 | 170 | if (op != _Py_NULL) { | 513 | 160 | Py_DECREF(op); | 514 | 160 | } | 515 | 170 | } |
Unexecuted instantiation: asdl.c:Py_XDECREF Line | Count | Source | 511 | 32.1k | { | 512 | 32.1k | if (op != _Py_NULL) { | 513 | 32.1k | Py_DECREF(op); | 514 | 32.1k | } | 515 | 32.1k | } |
Unexecuted instantiation: ast.c:Py_XDECREF Unexecuted instantiation: ast_preprocess.c:Py_XDECREF Unexecuted instantiation: ast_unparse.c:Py_XDECREF Unexecuted instantiation: critical_section.c:Py_XDECREF Unexecuted instantiation: crossinterp.c:Py_XDECREF Unexecuted instantiation: getcopyright.c:Py_XDECREF Unexecuted instantiation: getplatform.c:Py_XDECREF Unexecuted instantiation: getversion.c:Py_XDECREF Unexecuted instantiation: optimizer.c:Py_XDECREF Unexecuted instantiation: pathconfig.c:Py_XDECREF Line | Count | Source | 511 | 26.0k | { | 512 | 26.0k | if (op != _Py_NULL) { | 513 | 1.25k | Py_DECREF(op); | 514 | 1.25k | } | 515 | 26.0k | } |
pegen_errors.c:Py_XDECREF Line | Count | Source | 511 | 8.34k | { | 512 | 8.34k | if (op != _Py_NULL) { | 513 | 7.07k | Py_DECREF(op); | 514 | 7.07k | } | 515 | 8.34k | } |
Unexecuted instantiation: parser.c:Py_XDECREF Unexecuted instantiation: buffer.c:Py_XDECREF Unexecuted instantiation: lexer.c:Py_XDECREF Line | Count | Source | 511 | 96.5k | { | 512 | 96.5k | if (op != _Py_NULL) { | 513 | 18.4k | Py_DECREF(op); | 514 | 18.4k | } | 515 | 96.5k | } |
Unexecuted instantiation: readline_tokenizer.c:Py_XDECREF Unexecuted instantiation: string_tokenizer.c:Py_XDECREF Unexecuted instantiation: utf8_tokenizer.c:Py_XDECREF Unexecuted instantiation: getcompiler.c:Py_XDECREF Unexecuted instantiation: mystrtoul.c:Py_XDECREF Unexecuted instantiation: token.c:Py_XDECREF Unexecuted instantiation: action_helpers.c:Py_XDECREF string_parser.c:Py_XDECREF Line | Count | Source | 511 | 26.6k | { | 512 | 26.6k | if (op != _Py_NULL) { | 513 | 26.6k | Py_DECREF(op); | 514 | 26.6k | } | 515 | 26.6k | } |
|
516 | | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000 |
517 | 16.5G | # define Py_XDECREF(op) Py_XDECREF(_PyObject_CAST(op)) |
518 | | #endif |
519 | | |
520 | | // Create a new strong reference to an object: |
521 | | // increment the reference count of the object and return the object. |
522 | | PyAPI_FUNC(PyObject*) Py_NewRef(PyObject *obj); |
523 | | |
524 | | // Similar to Py_NewRef(), but the object can be NULL. |
525 | | PyAPI_FUNC(PyObject*) Py_XNewRef(PyObject *obj); |
526 | | |
527 | | static inline PyObject* _Py_NewRef(PyObject *obj) |
528 | 18.4G | { |
529 | 18.4G | Py_INCREF(obj); |
530 | 18.4G | return obj; |
531 | 18.4G | } Line | Count | Source | 528 | 592k | { | 529 | 592k | Py_INCREF(obj); | 530 | 592k | return obj; | 531 | 592k | } |
Line | Count | Source | 528 | 15.8M | { | 529 | 15.8M | Py_INCREF(obj); | 530 | 15.8M | return obj; | 531 | 15.8M | } |
Line | Count | Source | 528 | 136M | { | 529 | 136M | Py_INCREF(obj); | 530 | 136M | return obj; | 531 | 136M | } |
genericaliasobject.c:_Py_NewRef Line | Count | Source | 528 | 1.35k | { | 529 | 1.35k | Py_INCREF(obj); | 530 | 1.35k | return obj; | 531 | 1.35k | } |
Unexecuted instantiation: floatobject.c:_Py_NewRef Line | Count | Source | 528 | 1.58G | { | 529 | 1.58G | Py_INCREF(obj); | 530 | 1.58G | return obj; | 531 | 1.58G | } |
Line | Count | Source | 528 | 7.59M | { | 529 | 7.59M | Py_INCREF(obj); | 530 | 7.59M | return obj; | 531 | 7.59M | } |
Line | Count | Source | 528 | 1.79G | { | 529 | 1.79G | Py_INCREF(obj); | 530 | 1.79G | return obj; | 531 | 1.79G | } |
memoryobject.c:_Py_NewRef Line | Count | Source | 528 | 2.87M | { | 529 | 2.87M | Py_INCREF(obj); | 530 | 2.87M | return obj; | 531 | 2.87M | } |
moduleobject.c:_Py_NewRef Line | Count | Source | 528 | 5.43k | { | 529 | 5.43k | Py_INCREF(obj); | 530 | 5.43k | return obj; | 531 | 5.43k | } |
Line | Count | Source | 528 | 144M | { | 529 | 144M | Py_INCREF(obj); | 530 | 144M | return obj; | 531 | 144M | } |
Unexecuted instantiation: obmalloc.c:_Py_NewRef Unexecuted instantiation: picklebufobject.c:_Py_NewRef Line | Count | Source | 528 | 96 | { | 529 | 96 | Py_INCREF(obj); | 530 | 96 | return obj; | 531 | 96 | } |
Line | Count | Source | 528 | 7.96M | { | 529 | 7.96M | Py_INCREF(obj); | 530 | 7.96M | return obj; | 531 | 7.96M | } |
Line | Count | Source | 528 | 92.0M | { | 529 | 92.0M | Py_INCREF(obj); | 530 | 92.0M | return obj; | 531 | 92.0M | } |
Line | Count | Source | 528 | 1.05k | { | 529 | 1.05k | Py_INCREF(obj); | 530 | 1.05k | return obj; | 531 | 1.05k | } |
templateobject.c:_Py_NewRef Line | Count | Source | 528 | 8 | { | 529 | 8 | Py_INCREF(obj); | 530 | 8 | return obj; | 531 | 8 | } |
Line | Count | Source | 528 | 11.3G | { | 529 | 11.3G | Py_INCREF(obj); | 530 | 11.3G | return obj; | 531 | 11.3G | } |
Line | Count | Source | 528 | 143M | { | 529 | 143M | Py_INCREF(obj); | 530 | 143M | return obj; | 531 | 143M | } |
typevarobject.c:_Py_NewRef Line | Count | Source | 528 | 1.04k | { | 529 | 1.04k | Py_INCREF(obj); | 530 | 1.04k | return obj; | 531 | 1.04k | } |
unicode_format.c:_Py_NewRef Line | Count | Source | 528 | 58.3M | { | 529 | 58.3M | Py_INCREF(obj); | 530 | 58.3M | return obj; | 531 | 58.3M | } |
Unexecuted instantiation: unicode_formatter.c:_Py_NewRef unicode_writer.c:_Py_NewRef Line | Count | Source | 528 | 5.56k | { | 529 | 5.56k | Py_INCREF(obj); | 530 | 5.56k | return obj; | 531 | 5.56k | } |
Unexecuted instantiation: unicodectype.c:_Py_NewRef unicodeobject.c:_Py_NewRef Line | Count | Source | 528 | 203M | { | 529 | 203M | Py_INCREF(obj); | 530 | 203M | return obj; | 531 | 203M | } |
Line | Count | Source | 528 | 468 | { | 529 | 468 | Py_INCREF(obj); | 530 | 468 | return obj; | 531 | 468 | } |
Unexecuted instantiation: weakrefobject.c:_Py_NewRef Line | Count | Source | 528 | 3.18M | { | 529 | 3.18M | Py_INCREF(obj); | 530 | 3.18M | return obj; | 531 | 3.18M | } |
Line | Count | Source | 528 | 40.7M | { | 529 | 40.7M | Py_INCREF(obj); | 530 | 40.7M | return obj; | 531 | 40.7M | } |
Line | Count | Source | 528 | 1.56G | { | 529 | 1.56G | Py_INCREF(obj); | 530 | 1.56G | return obj; | 531 | 1.56G | } |
Line | Count | Source | 528 | 4.18M | { | 529 | 4.18M | Py_INCREF(obj); | 530 | 4.18M | return obj; | 531 | 4.18M | } |
Line | Count | Source | 528 | 1.89k | { | 529 | 1.89k | Py_INCREF(obj); | 530 | 1.89k | return obj; | 531 | 1.89k | } |
Line | Count | Source | 528 | 64.3k | { | 529 | 64.3k | Py_INCREF(obj); | 530 | 64.3k | return obj; | 531 | 64.3k | } |
Line | Count | Source | 528 | 54 | { | 529 | 54 | Py_INCREF(obj); | 530 | 54 | return obj; | 531 | 54 | } |
Line | Count | Source | 528 | 40.1M | { | 529 | 40.1M | Py_INCREF(obj); | 530 | 40.1M | return obj; | 531 | 40.1M | } |
Line | Count | Source | 528 | 49.7k | { | 529 | 49.7k | Py_INCREF(obj); | 530 | 49.7k | return obj; | 531 | 49.7k | } |
Line | Count | Source | 528 | 33.8M | { | 529 | 33.8M | Py_INCREF(obj); | 530 | 33.8M | return obj; | 531 | 33.8M | } |
Unexecuted instantiation: future.c:_Py_NewRef Unexecuted instantiation: gc.c:_Py_NewRef Unexecuted instantiation: gc_gil.c:_Py_NewRef Line | Count | Source | 528 | 3.14M | { | 529 | 3.14M | Py_INCREF(obj); | 530 | 3.14M | return obj; | 531 | 3.14M | } |
Unexecuted instantiation: ceval_gil.c:_Py_NewRef Unexecuted instantiation: hamt.c:_Py_NewRef Unexecuted instantiation: hashtable.c:_Py_NewRef Line | Count | Source | 528 | 6.25M | { | 529 | 6.25M | Py_INCREF(obj); | 530 | 6.25M | return obj; | 531 | 6.25M | } |
Line | Count | Source | 528 | 1.01k | { | 529 | 1.01k | Py_INCREF(obj); | 530 | 1.01k | return obj; | 531 | 1.01k | } |
Line | Count | Source | 528 | 544 | { | 529 | 544 | Py_INCREF(obj); | 530 | 544 | return obj; | 531 | 544 | } |
Unexecuted instantiation: instrumentation.c:_Py_NewRef Unexecuted instantiation: instruction_sequence.c:_Py_NewRef Line | Count | Source | 528 | 20.8k | { | 529 | 20.8k | Py_INCREF(obj); | 530 | 20.8k | return obj; | 531 | 20.8k | } |
Unexecuted instantiation: legacy_tracing.c:_Py_NewRef Unexecuted instantiation: lock.c:_Py_NewRef Line | Count | Source | 528 | 1.30M | { | 529 | 1.30M | Py_INCREF(obj); | 530 | 1.30M | return obj; | 531 | 1.30M | } |
Line | Count | Source | 528 | 8 | { | 529 | 8 | Py_INCREF(obj); | 530 | 8 | return obj; | 531 | 8 | } |
Unexecuted instantiation: mysnprintf.c:_Py_NewRef Unexecuted instantiation: parking_lot.c:_Py_NewRef Unexecuted instantiation: preconfig.c:_Py_NewRef Unexecuted instantiation: pyarena.c:_Py_NewRef Unexecuted instantiation: pyctype.c:_Py_NewRef Unexecuted instantiation: pyhash.c:_Py_NewRef Line | Count | Source | 528 | 32 | { | 529 | 32 | Py_INCREF(obj); | 530 | 32 | return obj; | 531 | 32 | } |
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 | 528 | 137k | { | 529 | 137k | Py_INCREF(obj); | 530 | 137k | return obj; | 531 | 137k | } |
Line | Count | Source | 528 | 1.65k | { | 529 | 1.65k | Py_INCREF(obj); | 530 | 1.65k | return obj; | 531 | 1.65k | } |
Unexecuted instantiation: thread.c:_Py_NewRef Unexecuted instantiation: traceback.c:_Py_NewRef Unexecuted instantiation: tracemalloc.c:_Py_NewRef Unexecuted instantiation: getopt.c:_Py_NewRef Unexecuted instantiation: pystrcmp.c:_Py_NewRef Unexecuted instantiation: pystrtod.c:_Py_NewRef Unexecuted instantiation: pystrhex.c:_Py_NewRef Unexecuted instantiation: dtoa.c:_Py_NewRef Unexecuted instantiation: fileutils.c:_Py_NewRef Unexecuted instantiation: suggestions.c:_Py_NewRef Unexecuted instantiation: perf_trampoline.c:_Py_NewRef Unexecuted instantiation: perf_jit_trampoline.c:_Py_NewRef Unexecuted instantiation: remote_debugging.c:_Py_NewRef Unexecuted instantiation: dynload_shlib.c:_Py_NewRef Unexecuted instantiation: config.c:_Py_NewRef Unexecuted instantiation: gcmodule.c:_Py_NewRef Unexecuted instantiation: _asynciomodule.c:_Py_NewRef atexitmodule.c:_Py_NewRef Line | Count | Source | 528 | 4 | { | 529 | 4 | Py_INCREF(obj); | 530 | 4 | return obj; | 531 | 4 | } |
Unexecuted instantiation: faulthandler.c:_Py_NewRef Line | Count | Source | 528 | 1.98M | { | 529 | 1.98M | Py_INCREF(obj); | 530 | 1.98M | return obj; | 531 | 1.98M | } |
signalmodule.c:_Py_NewRef Line | Count | Source | 528 | 2.04k | { | 529 | 2.04k | Py_INCREF(obj); | 530 | 2.04k | return obj; | 531 | 2.04k | } |
Unexecuted instantiation: _tracemalloc.c:_Py_NewRef Unexecuted instantiation: _suggestions.c:_Py_NewRef _datetimemodule.c:_Py_NewRef Line | Count | Source | 528 | 283 | { | 529 | 283 | Py_INCREF(obj); | 530 | 283 | return obj; | 531 | 283 | } |
Unexecuted instantiation: _codecsmodule.c:_Py_NewRef _collectionsmodule.c:_Py_NewRef Line | Count | Source | 528 | 17.6M | { | 529 | 17.6M | Py_INCREF(obj); | 530 | 17.6M | return obj; | 531 | 17.6M | } |
Unexecuted instantiation: errnomodule.c:_Py_NewRef Line | Count | Source | 528 | 272 | { | 529 | 272 | Py_INCREF(obj); | 530 | 272 | return obj; | 531 | 272 | } |
Line | Count | Source | 528 | 120k | { | 529 | 120k | Py_INCREF(obj); | 530 | 120k | return obj; | 531 | 120k | } |
Unexecuted instantiation: fileio.c:_Py_NewRef Line | Count | Source | 528 | 62.7k | { | 529 | 62.7k | Py_INCREF(obj); | 530 | 62.7k | return obj; | 531 | 62.7k | } |
Line | Count | Source | 528 | 12.1k | { | 529 | 12.1k | Py_INCREF(obj); | 530 | 12.1k | return obj; | 531 | 12.1k | } |
Line | Count | Source | 528 | 340k | { | 529 | 340k | Py_INCREF(obj); | 530 | 340k | return obj; | 531 | 340k | } |
Line | Count | Source | 528 | 22.1k | { | 529 | 22.1k | Py_INCREF(obj); | 530 | 22.1k | return obj; | 531 | 22.1k | } |
itertoolsmodule.c:_Py_NewRef Line | Count | Source | 528 | 43.5k | { | 529 | 43.5k | Py_INCREF(obj); | 530 | 43.5k | return obj; | 531 | 43.5k | } |
Line | Count | Source | 528 | 145M | { | 529 | 145M | Py_INCREF(obj); | 530 | 145M | return obj; | 531 | 145M | } |
Unexecuted instantiation: _sysconfig.c:_Py_NewRef _threadmodule.c:_Py_NewRef Line | Count | Source | 528 | 38 | { | 529 | 38 | Py_INCREF(obj); | 530 | 38 | return obj; | 531 | 38 | } |
Unexecuted instantiation: timemodule.c:_Py_NewRef Unexecuted instantiation: _typesmodule.c:_Py_NewRef Unexecuted instantiation: _typingmodule.c:_Py_NewRef Unexecuted instantiation: _weakref.c:_Py_NewRef Line | Count | Source | 528 | 14.8k | { | 529 | 14.8k | Py_INCREF(obj); | 530 | 14.8k | return obj; | 531 | 14.8k | } |
_functoolsmodule.c:_Py_NewRef Line | Count | Source | 528 | 444k | { | 529 | 444k | Py_INCREF(obj); | 530 | 444k | return obj; | 531 | 444k | } |
Unexecuted instantiation: _localemodule.c:_Py_NewRef Unexecuted instantiation: _opcode.c:_Py_NewRef Line | Count | Source | 528 | 1.28M | { | 529 | 1.28M | Py_INCREF(obj); | 530 | 1.28M | return obj; | 531 | 1.28M | } |
Unexecuted instantiation: _stat.c:_Py_NewRef Unexecuted instantiation: symtablemodule.c:_Py_NewRef Unexecuted instantiation: pwdmodule.c:_Py_NewRef Line | Count | Source | 528 | 256 | { | 529 | 256 | Py_INCREF(obj); | 530 | 256 | return obj; | 531 | 256 | } |
Unexecuted instantiation: frozen.c:_Py_NewRef Unexecuted instantiation: getbuildinfo.c:_Py_NewRef Unexecuted instantiation: peg_api.c:_Py_NewRef Unexecuted instantiation: file_tokenizer.c:_Py_NewRef Unexecuted instantiation: helpers.c:_Py_NewRef Unexecuted instantiation: myreadline.c:_Py_NewRef Line | Count | Source | 528 | 750M | { | 529 | 750M | Py_INCREF(obj); | 530 | 750M | return obj; | 531 | 750M | } |
Unexecuted instantiation: boolobject.c:_Py_NewRef Unexecuted instantiation: bytes_methods.c:_Py_NewRef bytearrayobject.c:_Py_NewRef Line | Count | Source | 528 | 466k | { | 529 | 466k | Py_INCREF(obj); | 530 | 466k | return obj; | 531 | 466k | } |
Unexecuted instantiation: capsule.c:_Py_NewRef Unexecuted instantiation: cellobject.c:_Py_NewRef Line | Count | Source | 528 | 94.3M | { | 529 | 94.3M | Py_INCREF(obj); | 530 | 94.3M | return obj; | 531 | 94.3M | } |
Line | Count | Source | 528 | 1.19M | { | 529 | 1.19M | Py_INCREF(obj); | 530 | 1.19M | return obj; | 531 | 1.19M | } |
Unexecuted instantiation: complexobject.c:_Py_NewRef Line | Count | Source | 528 | 21.5M | { | 529 | 21.5M | Py_INCREF(obj); | 530 | 21.5M | return obj; | 531 | 21.5M | } |
Line | Count | Source | 528 | 82 | { | 529 | 82 | Py_INCREF(obj); | 530 | 82 | return obj; | 531 | 82 | } |
Line | Count | Source | 528 | 39.3M | { | 529 | 39.3M | Py_INCREF(obj); | 530 | 39.3M | return obj; | 531 | 39.3M | } |
Unexecuted instantiation: fileobject.c:_Py_NewRef Line | Count | Source | 528 | 16.9M | { | 529 | 16.9M | Py_INCREF(obj); | 530 | 16.9M | return obj; | 531 | 16.9M | } |
Line | Count | Source | 528 | 14.0M | { | 529 | 14.0M | Py_INCREF(obj); | 530 | 14.0M | return obj; | 531 | 14.0M | } |
Unexecuted instantiation: interpolationobject.c:_Py_NewRef Line | Count | Source | 528 | 3.25M | { | 529 | 3.25M | Py_INCREF(obj); | 530 | 3.25M | return obj; | 531 | 3.25M | } |
lazyimportobject.c:_Py_NewRef Line | Count | Source | 528 | 224 | { | 529 | 224 | Py_INCREF(obj); | 530 | 224 | return obj; | 531 | 224 | } |
Line | Count | Source | 528 | 7.48k | { | 529 | 7.48k | Py_INCREF(obj); | 530 | 7.48k | return obj; | 531 | 7.48k | } |
methodobject.c:_Py_NewRef Line | Count | Source | 528 | 7.34M | { | 529 | 7.34M | Py_INCREF(obj); | 530 | 7.34M | return obj; | 531 | 7.34M | } |
Unexecuted instantiation: namespaceobject.c:_Py_NewRef Unexecuted instantiation: _contextvars.c:_Py_NewRef Line | Count | Source | 528 | 339k | { | 529 | 339k | Py_INCREF(obj); | 530 | 339k | return obj; | 531 | 339k | } |
Unexecuted instantiation: Python-tokenize.c:_Py_NewRef Unexecuted instantiation: asdl.c:_Py_NewRef Line | Count | Source | 528 | 25.8k | { | 529 | 25.8k | Py_INCREF(obj); | 530 | 25.8k | return obj; | 531 | 25.8k | } |
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 | 528 | 15.8k | { | 529 | 15.8k | Py_INCREF(obj); | 530 | 15.8k | return obj; | 531 | 15.8k | } |
Unexecuted instantiation: pegen_errors.c:_Py_NewRef Unexecuted instantiation: parser.c:_Py_NewRef Unexecuted instantiation: buffer.c:_Py_NewRef Unexecuted instantiation: lexer.c:_Py_NewRef Unexecuted instantiation: state.c:_Py_NewRef Unexecuted instantiation: readline_tokenizer.c:_Py_NewRef Unexecuted instantiation: string_tokenizer.c:_Py_NewRef Unexecuted instantiation: utf8_tokenizer.c:_Py_NewRef Unexecuted instantiation: getcompiler.c:_Py_NewRef Unexecuted instantiation: mystrtoul.c:_Py_NewRef Unexecuted instantiation: token.c:_Py_NewRef Unexecuted instantiation: action_helpers.c:_Py_NewRef Unexecuted instantiation: string_parser.c:_Py_NewRef |
532 | | |
533 | | static inline PyObject* _Py_XNewRef(PyObject *obj) |
534 | 1.78G | { |
535 | 1.78G | Py_XINCREF(obj); |
536 | 1.78G | return obj; |
537 | 1.78G | } Unexecuted instantiation: bytesobject.c:_Py_XNewRef Unexecuted instantiation: call.c:_Py_XNewRef Line | Count | Source | 534 | 107M | { | 535 | 107M | Py_XINCREF(obj); | 536 | 107M | return obj; | 537 | 107M | } |
Unexecuted instantiation: genericaliasobject.c:_Py_XNewRef Unexecuted instantiation: floatobject.c:_Py_XNewRef Line | Count | Source | 534 | 19.0M | { | 535 | 19.0M | Py_XINCREF(obj); | 536 | 19.0M | return obj; | 537 | 19.0M | } |
Unexecuted instantiation: longobject.c:_Py_XNewRef Line | Count | Source | 534 | 726M | { | 535 | 726M | Py_XINCREF(obj); | 536 | 726M | return obj; | 537 | 726M | } |
Unexecuted instantiation: memoryobject.c:_Py_XNewRef Unexecuted instantiation: moduleobject.c:_Py_XNewRef Unexecuted instantiation: object.c:_Py_XNewRef Unexecuted instantiation: obmalloc.c:_Py_XNewRef Unexecuted instantiation: picklebufobject.c:_Py_XNewRef Unexecuted instantiation: rangeobject.c:_Py_XNewRef Unexecuted instantiation: setobject.c:_Py_XNewRef Unexecuted instantiation: sliceobject.c:_Py_XNewRef Unexecuted instantiation: structseq.c:_Py_XNewRef Unexecuted instantiation: templateobject.c:_Py_XNewRef Unexecuted instantiation: tupleobject.c:_Py_XNewRef Line | Count | Source | 534 | 264k | { | 535 | 264k | Py_XINCREF(obj); | 536 | 264k | return obj; | 537 | 264k | } |
typevarobject.c:_Py_XNewRef Line | Count | Source | 534 | 688 | { | 535 | 688 | Py_XINCREF(obj); | 536 | 688 | return obj; | 537 | 688 | } |
Unexecuted instantiation: unicode_format.c:_Py_XNewRef Unexecuted instantiation: unicode_formatter.c:_Py_XNewRef Unexecuted instantiation: unicode_writer.c:_Py_XNewRef Unexecuted instantiation: unicodectype.c:_Py_XNewRef Unexecuted instantiation: unicodeobject.c:_Py_XNewRef Unexecuted instantiation: unionobject.c:_Py_XNewRef weakrefobject.c:_Py_XNewRef Line | Count | Source | 534 | 286k | { | 535 | 286k | Py_XINCREF(obj); | 536 | 286k | return obj; | 537 | 286k | } |
Unexecuted instantiation: _warnings.c:_Py_XNewRef bltinmodule.c:_Py_XNewRef Line | Count | Source | 534 | 972 | { | 535 | 972 | Py_XINCREF(obj); | 536 | 972 | return obj; | 537 | 972 | } |
Line | Count | Source | 534 | 84.4M | { | 535 | 84.4M | Py_XINCREF(obj); | 536 | 84.4M | return obj; | 537 | 84.4M | } |
Unexecuted instantiation: codecs.c:_Py_XNewRef Unexecuted instantiation: codegen.c:_Py_XNewRef Line | Count | Source | 534 | 7.46k | { | 535 | 7.46k | Py_XINCREF(obj); | 536 | 7.46k | return obj; | 537 | 7.46k | } |
Line | Count | Source | 534 | 54 | { | 535 | 54 | Py_XINCREF(obj); | 536 | 54 | return obj; | 537 | 54 | } |
Unexecuted instantiation: errors.c:_Py_XNewRef Unexecuted instantiation: flowgraph.c:_Py_XNewRef Unexecuted instantiation: frame.c:_Py_XNewRef Unexecuted instantiation: future.c:_Py_XNewRef Unexecuted instantiation: gc.c:_Py_XNewRef Unexecuted instantiation: gc_gil.c:_Py_XNewRef Unexecuted instantiation: getargs.c:_Py_XNewRef Unexecuted instantiation: ceval_gil.c:_Py_XNewRef Unexecuted instantiation: hamt.c:_Py_XNewRef Unexecuted instantiation: hashtable.c:_Py_XNewRef Line | Count | Source | 534 | 18.4k | { | 535 | 18.4k | Py_XINCREF(obj); | 536 | 18.4k | return obj; | 537 | 18.4k | } |
Unexecuted instantiation: importdl.c:_Py_XNewRef Unexecuted instantiation: initconfig.c:_Py_XNewRef Unexecuted instantiation: instrumentation.c:_Py_XNewRef Unexecuted instantiation: instruction_sequence.c:_Py_XNewRef Unexecuted instantiation: intrinsics.c:_Py_XNewRef Unexecuted instantiation: legacy_tracing.c:_Py_XNewRef Unexecuted instantiation: lock.c:_Py_XNewRef Unexecuted instantiation: marshal.c:_Py_XNewRef Unexecuted instantiation: modsupport.c:_Py_XNewRef Unexecuted instantiation: mysnprintf.c:_Py_XNewRef Unexecuted instantiation: parking_lot.c:_Py_XNewRef Unexecuted instantiation: preconfig.c:_Py_XNewRef Unexecuted instantiation: pyarena.c:_Py_XNewRef Unexecuted instantiation: pyctype.c:_Py_XNewRef Unexecuted instantiation: pyhash.c:_Py_XNewRef Unexecuted instantiation: pylifecycle.c:_Py_XNewRef Unexecuted instantiation: pymath.c:_Py_XNewRef Line | Count | Source | 534 | 1.46M | { | 535 | 1.46M | Py_XINCREF(obj); | 536 | 1.46M | return obj; | 537 | 1.46M | } |
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 | 534 | 1.93M | { | 535 | 1.93M | Py_XINCREF(obj); | 536 | 1.93M | return obj; | 537 | 1.93M | } |
Unexecuted instantiation: symtable.c:_Py_XNewRef Line | Count | Source | 534 | 76 | { | 535 | 76 | Py_XINCREF(obj); | 536 | 76 | return obj; | 537 | 76 | } |
Unexecuted instantiation: thread.c:_Py_XNewRef Line | Count | Source | 534 | 117M | { | 535 | 117M | Py_XINCREF(obj); | 536 | 117M | return obj; | 537 | 117M | } |
Unexecuted instantiation: tracemalloc.c:_Py_XNewRef Unexecuted instantiation: getopt.c:_Py_XNewRef Unexecuted instantiation: pystrcmp.c:_Py_XNewRef Unexecuted instantiation: pystrtod.c:_Py_XNewRef Unexecuted instantiation: pystrhex.c:_Py_XNewRef Unexecuted instantiation: dtoa.c:_Py_XNewRef Unexecuted instantiation: fileutils.c:_Py_XNewRef Unexecuted instantiation: suggestions.c:_Py_XNewRef Unexecuted instantiation: perf_trampoline.c:_Py_XNewRef Unexecuted instantiation: perf_jit_trampoline.c:_Py_XNewRef Unexecuted instantiation: remote_debugging.c:_Py_XNewRef Unexecuted instantiation: dynload_shlib.c:_Py_XNewRef Unexecuted instantiation: config.c:_Py_XNewRef Unexecuted instantiation: gcmodule.c:_Py_XNewRef Unexecuted instantiation: _asynciomodule.c:_Py_XNewRef Unexecuted instantiation: atexitmodule.c:_Py_XNewRef Unexecuted instantiation: faulthandler.c:_Py_XNewRef posixmodule.c:_Py_XNewRef Line | Count | Source | 534 | 180k | { | 535 | 180k | Py_XINCREF(obj); | 536 | 180k | return obj; | 537 | 180k | } |
Unexecuted instantiation: signalmodule.c:_Py_XNewRef Unexecuted instantiation: _tracemalloc.c:_Py_XNewRef Unexecuted instantiation: _suggestions.c:_Py_XNewRef _datetimemodule.c:_Py_XNewRef Line | Count | Source | 534 | 64 | { | 535 | 64 | Py_XINCREF(obj); | 536 | 64 | return obj; | 537 | 64 | } |
Unexecuted instantiation: _codecsmodule.c:_Py_XNewRef _collectionsmodule.c:_Py_XNewRef Line | Count | Source | 534 | 164 | { | 535 | 164 | Py_XINCREF(obj); | 536 | 164 | return obj; | 537 | 164 | } |
Unexecuted instantiation: errnomodule.c:_Py_XNewRef Unexecuted instantiation: _iomodule.c:_Py_XNewRef Unexecuted instantiation: iobase.c:_Py_XNewRef Unexecuted instantiation: fileio.c:_Py_XNewRef Unexecuted instantiation: bytesio.c:_Py_XNewRef Unexecuted instantiation: bufferedio.c:_Py_XNewRef Unexecuted instantiation: textio.c:_Py_XNewRef Unexecuted instantiation: stringio.c:_Py_XNewRef Unexecuted instantiation: itertoolsmodule.c:_Py_XNewRef Unexecuted instantiation: sre.c:_Py_XNewRef Unexecuted instantiation: _sysconfig.c:_Py_XNewRef _threadmodule.c:_Py_XNewRef Line | Count | Source | 534 | 76 | { | 535 | 76 | Py_XINCREF(obj); | 536 | 76 | return obj; | 537 | 76 | } |
Unexecuted instantiation: timemodule.c:_Py_XNewRef Unexecuted instantiation: _typesmodule.c:_Py_XNewRef Unexecuted instantiation: _typingmodule.c:_Py_XNewRef Unexecuted instantiation: _weakref.c:_Py_XNewRef Line | Count | Source | 534 | 1.45k | { | 535 | 1.45k | Py_XINCREF(obj); | 536 | 1.45k | return obj; | 537 | 1.45k | } |
_functoolsmodule.c:_Py_XNewRef Line | Count | Source | 534 | 16 | { | 535 | 16 | Py_XINCREF(obj); | 536 | 16 | return obj; | 537 | 16 | } |
Unexecuted instantiation: _localemodule.c:_Py_XNewRef Unexecuted instantiation: _opcode.c:_Py_XNewRef Unexecuted instantiation: _operator.c:_Py_XNewRef Unexecuted instantiation: _stat.c:_Py_XNewRef Unexecuted instantiation: symtablemodule.c:_Py_XNewRef Unexecuted instantiation: pwdmodule.c:_Py_XNewRef Line | Count | Source | 534 | 96 | { | 535 | 96 | Py_XINCREF(obj); | 536 | 96 | return obj; | 537 | 96 | } |
Unexecuted instantiation: frozen.c:_Py_XNewRef Unexecuted instantiation: getbuildinfo.c:_Py_XNewRef Unexecuted instantiation: peg_api.c:_Py_XNewRef Unexecuted instantiation: file_tokenizer.c:_Py_XNewRef Unexecuted instantiation: helpers.c:_Py_XNewRef Unexecuted instantiation: myreadline.c:_Py_XNewRef Line | Count | Source | 534 | 43.9M | { | 535 | 43.9M | Py_XINCREF(obj); | 536 | 43.9M | return obj; | 537 | 43.9M | } |
Unexecuted instantiation: boolobject.c:_Py_XNewRef Unexecuted instantiation: bytes_methods.c:_Py_XNewRef Unexecuted instantiation: bytearrayobject.c:_Py_XNewRef Unexecuted instantiation: capsule.c:_Py_XNewRef Line | Count | Source | 534 | 6.12M | { | 535 | 6.12M | Py_XINCREF(obj); | 536 | 6.12M | return obj; | 537 | 6.12M | } |
Unexecuted instantiation: classobject.c:_Py_XNewRef Line | Count | Source | 534 | 3.89k | { | 535 | 3.89k | Py_XINCREF(obj); | 536 | 3.89k | return obj; | 537 | 3.89k | } |
Unexecuted instantiation: complexobject.c:_Py_XNewRef descrobject.c:_Py_XNewRef Line | Count | Source | 534 | 96.5k | { | 535 | 96.5k | Py_XINCREF(obj); | 536 | 96.5k | return obj; | 537 | 96.5k | } |
Unexecuted instantiation: enumobject.c:_Py_XNewRef Unexecuted instantiation: genobject.c:_Py_XNewRef Unexecuted instantiation: fileobject.c:_Py_XNewRef frameobject.c:_Py_XNewRef Line | Count | Source | 534 | 15.4M | { | 535 | 15.4M | Py_XINCREF(obj); | 536 | 15.4M | return obj; | 537 | 15.4M | } |
Line | Count | Source | 534 | 15.6k | { | 535 | 15.6k | Py_XINCREF(obj); | 536 | 15.6k | return obj; | 537 | 15.6k | } |
Unexecuted instantiation: interpolationobject.c:_Py_XNewRef Unexecuted instantiation: iterobject.c:_Py_XNewRef lazyimportobject.c:_Py_XNewRef Line | Count | Source | 534 | 224 | { | 535 | 224 | Py_XINCREF(obj); | 536 | 224 | return obj; | 537 | 224 | } |
Unexecuted instantiation: odictobject.c:_Py_XNewRef methodobject.c:_Py_XNewRef Line | Count | Source | 534 | 655M | { | 535 | 655M | Py_XINCREF(obj); | 536 | 655M | return obj; | 537 | 655M | } |
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 | 534 | 15.8k | { | 535 | 15.8k | Py_XINCREF(obj); | 536 | 15.8k | return obj; | 537 | 15.8k | } |
Unexecuted instantiation: pegen_errors.c:_Py_XNewRef Unexecuted instantiation: parser.c:_Py_XNewRef Unexecuted instantiation: buffer.c:_Py_XNewRef Unexecuted instantiation: lexer.c:_Py_XNewRef Unexecuted instantiation: state.c:_Py_XNewRef Unexecuted instantiation: readline_tokenizer.c:_Py_XNewRef Unexecuted instantiation: string_tokenizer.c:_Py_XNewRef Unexecuted instantiation: utf8_tokenizer.c:_Py_XNewRef Unexecuted instantiation: getcompiler.c:_Py_XNewRef Unexecuted instantiation: mystrtoul.c:_Py_XNewRef Unexecuted instantiation: token.c:_Py_XNewRef Unexecuted instantiation: action_helpers.c:_Py_XNewRef Unexecuted instantiation: string_parser.c:_Py_XNewRef |
538 | | |
539 | | // Py_NewRef() and Py_XNewRef() are exported as functions for the stable ABI. |
540 | | // Names overridden with macros by static inline functions for best |
541 | | // performances. |
542 | | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000 |
543 | 18.2G | # define Py_NewRef(obj) _Py_NewRef(_PyObject_CAST(obj)) |
544 | 1.74G | # define Py_XNewRef(obj) _Py_XNewRef(_PyObject_CAST(obj)) |
545 | | #else |
546 | | # define Py_NewRef(obj) _Py_NewRef(obj) |
547 | | # define Py_XNewRef(obj) _Py_XNewRef(obj) |
548 | | #endif |
549 | | |
550 | | |
551 | | #ifdef __cplusplus |
552 | | } |
553 | | #endif |
554 | | #endif // !_Py_REFCOUNT_H |