/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 | 8.14G | #define _Py_IMMORTAL_INITIAL_REFCNT (3ULL << 30) |
47 | 0 | #define _Py_IMMORTAL_MINIMUM_REFCNT (1ULL << 31) |
48 | 235M | #define _Py_STATIC_FLAG_BITS ((Py_ssize_t)(_Py_STATICALLY_ALLOCATED_FLAG | _Py_IMMORTAL_FLAGS)) |
49 | 235M | #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 | 947M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { |
103 | 947M | #if !defined(Py_GIL_DISABLED) |
104 | 947M | 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 | 947M | } Line | Count | Source | 102 | 466k | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 466k | #if !defined(Py_GIL_DISABLED) | 104 | 466k | 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 | 466k | } |
Unexecuted instantiation: call.c:_Py_REFCNT Unexecuted instantiation: exceptions.c:_Py_REFCNT Unexecuted instantiation: genericaliasobject.c:_Py_REFCNT Unexecuted instantiation: floatobject.c:_Py_REFCNT Unexecuted instantiation: listobject.c:_Py_REFCNT Line | Count | Source | 102 | 17 | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 17 | #if !defined(Py_GIL_DISABLED) | 104 | 17 | 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 | 17 | } |
Line | Count | Source | 102 | 566M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 566M | #if !defined(Py_GIL_DISABLED) | 104 | 566M | 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 | 566M | } |
Unexecuted instantiation: memoryobject.c:_Py_REFCNT Unexecuted instantiation: moduleobject.c:_Py_REFCNT Line | Count | Source | 102 | 69.6M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 69.6M | #if !defined(Py_GIL_DISABLED) | 104 | 69.6M | return ob->ob_refcnt; | 105 | | #else | 106 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 107 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 108 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 109 | | } | 110 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 111 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 112 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 113 | | #endif | 114 | 69.6M | } |
Unexecuted instantiation: obmalloc.c:_Py_REFCNT Unexecuted instantiation: picklebufobject.c:_Py_REFCNT Unexecuted instantiation: rangeobject.c:_Py_REFCNT Line | Count | Source | 102 | 1.79k | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 1.79k | #if !defined(Py_GIL_DISABLED) | 104 | 1.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 | 1.79k | } |
Unexecuted instantiation: sliceobject.c:_Py_REFCNT Unexecuted instantiation: structseq.c:_Py_REFCNT Unexecuted instantiation: templateobject.c:_Py_REFCNT Line | Count | Source | 102 | 72.1k | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 72.1k | #if !defined(Py_GIL_DISABLED) | 104 | 72.1k | 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.1k | } |
Line | Count | Source | 102 | 78 | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 78 | #if !defined(Py_GIL_DISABLED) | 104 | 78 | return ob->ob_refcnt; | 105 | | #else | 106 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 107 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 108 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 109 | | } | 110 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 111 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 112 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 113 | | #endif | 114 | 78 | } |
Unexecuted instantiation: typevarobject.c:_Py_REFCNT unicode_format.c:_Py_REFCNT Line | Count | Source | 102 | 1.53k | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 1.53k | #if !defined(Py_GIL_DISABLED) | 104 | 1.53k | 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.53k | } |
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 | 54.4M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 54.4M | #if !defined(Py_GIL_DISABLED) | 104 | 54.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 | 54.4M | } |
Unexecuted instantiation: unionobject.c:_Py_REFCNT weakrefobject.c:_Py_REFCNT Line | Count | Source | 102 | 39.9M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 39.9M | #if !defined(Py_GIL_DISABLED) | 104 | 39.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 | 39.9M | } |
Unexecuted instantiation: _warnings.c:_Py_REFCNT Line | Count | Source | 102 | 27.8M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 27.8M | #if !defined(Py_GIL_DISABLED) | 104 | 27.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 | 27.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 | 28.9M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 28.9M | #if !defined(Py_GIL_DISABLED) | 104 | 28.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 | 28.9M | } |
Unexecuted instantiation: future.c:_Py_REFCNT Line | Count | Source | 102 | 23.6M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 23.6M | #if !defined(Py_GIL_DISABLED) | 104 | 23.6M | return ob->ob_refcnt; | 105 | | #else | 106 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 107 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 108 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 109 | | } | 110 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 111 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 112 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 113 | | #endif | 114 | 23.6M | } |
Unexecuted instantiation: gc_gil.c:_Py_REFCNT Unexecuted instantiation: getargs.c:_Py_REFCNT Unexecuted instantiation: ceval_gil.c:_Py_REFCNT Unexecuted instantiation: hamt.c:_Py_REFCNT Unexecuted instantiation: hashtable.c:_Py_REFCNT Line | Count | Source | 102 | 22 | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 22 | #if !defined(Py_GIL_DISABLED) | 104 | 22 | 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 | 22 | } |
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 | 187k | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 187k | #if !defined(Py_GIL_DISABLED) | 104 | 187k | 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 | 187k | } |
Unexecuted instantiation: modsupport.c:_Py_REFCNT Unexecuted instantiation: mysnprintf.c:_Py_REFCNT Unexecuted instantiation: parking_lot.c:_Py_REFCNT Unexecuted instantiation: preconfig.c:_Py_REFCNT Unexecuted instantiation: pyarena.c:_Py_REFCNT Unexecuted instantiation: pyctype.c:_Py_REFCNT Unexecuted instantiation: pyhash.c:_Py_REFCNT Unexecuted instantiation: pylifecycle.c:_Py_REFCNT Unexecuted instantiation: pymath.c:_Py_REFCNT Unexecuted instantiation: pystate.c:_Py_REFCNT Unexecuted instantiation: pythonrun.c:_Py_REFCNT Unexecuted instantiation: pytime.c:_Py_REFCNT Unexecuted instantiation: qsbr.c:_Py_REFCNT Unexecuted instantiation: bootstrap_hash.c:_Py_REFCNT Unexecuted instantiation: specialize.c:_Py_REFCNT Unexecuted instantiation: symtable.c:_Py_REFCNT Unexecuted instantiation: sysmodule.c:_Py_REFCNT Unexecuted instantiation: thread.c:_Py_REFCNT Unexecuted instantiation: traceback.c:_Py_REFCNT Unexecuted instantiation: tracemalloc.c:_Py_REFCNT Unexecuted instantiation: getopt.c:_Py_REFCNT Unexecuted instantiation: pystrcmp.c:_Py_REFCNT Unexecuted instantiation: pystrtod.c:_Py_REFCNT Unexecuted instantiation: pystrhex.c:_Py_REFCNT Unexecuted instantiation: dtoa.c:_Py_REFCNT Unexecuted instantiation: fileutils.c:_Py_REFCNT Unexecuted instantiation: suggestions.c:_Py_REFCNT Unexecuted instantiation: perf_trampoline.c:_Py_REFCNT Unexecuted instantiation: perf_jit_trampoline.c:_Py_REFCNT Unexecuted instantiation: remote_debugging.c:_Py_REFCNT Unexecuted instantiation: dynload_shlib.c:_Py_REFCNT Unexecuted instantiation: config.c:_Py_REFCNT Unexecuted instantiation: gcmodule.c:_Py_REFCNT Unexecuted instantiation: _asynciomodule.c:_Py_REFCNT Unexecuted instantiation: atexitmodule.c:_Py_REFCNT Unexecuted instantiation: faulthandler.c:_Py_REFCNT Unexecuted instantiation: posixmodule.c:_Py_REFCNT Unexecuted instantiation: signalmodule.c:_Py_REFCNT Unexecuted instantiation: _tracemalloc.c:_Py_REFCNT Unexecuted instantiation: _suggestions.c:_Py_REFCNT Unexecuted instantiation: _datetimemodule.c:_Py_REFCNT Unexecuted instantiation: _codecsmodule.c:_Py_REFCNT Unexecuted instantiation: _collectionsmodule.c:_Py_REFCNT Unexecuted instantiation: errnomodule.c:_Py_REFCNT Unexecuted instantiation: _iomodule.c:_Py_REFCNT Line | Count | Source | 102 | 12.4k | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 12.4k | #if !defined(Py_GIL_DISABLED) | 104 | 12.4k | return ob->ob_refcnt; | 105 | | #else | 106 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 107 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 108 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 109 | | } | 110 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 111 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 112 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 113 | | #endif | 114 | 12.4k | } |
Unexecuted instantiation: fileio.c:_Py_REFCNT Unexecuted instantiation: bytesio.c:_Py_REFCNT 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 | 270 | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 270 | #if !defined(Py_GIL_DISABLED) | 104 | 270 | 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 | 270 | } |
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 | 46 | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 46 | #if !defined(Py_GIL_DISABLED) | 104 | 46 | 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 | 46 | } |
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 | 21.0k | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 21.0k | #if !defined(Py_GIL_DISABLED) | 104 | 21.0k | 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 | 21.0k | } |
Unexecuted instantiation: complexobject.c:_Py_REFCNT Unexecuted instantiation: descrobject.c:_Py_REFCNT Line | Count | Source | 102 | 106M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 106M | #if !defined(Py_GIL_DISABLED) | 104 | 106M | 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 | 106M | } |
Unexecuted instantiation: genobject.c:_Py_REFCNT Unexecuted instantiation: fileobject.c:_Py_REFCNT Unexecuted instantiation: frameobject.c:_Py_REFCNT Line | Count | Source | 102 | 29.1M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 29.1M | #if !defined(Py_GIL_DISABLED) | 104 | 29.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 | 29.1M | } |
Unexecuted instantiation: interpolationobject.c:_Py_REFCNT Unexecuted instantiation: iterobject.c:_Py_REFCNT Unexecuted instantiation: odictobject.c:_Py_REFCNT Unexecuted instantiation: methodobject.c:_Py_REFCNT Unexecuted instantiation: namespaceobject.c:_Py_REFCNT Unexecuted instantiation: _contextvars.c:_Py_REFCNT Unexecuted instantiation: Python-ast.c:_Py_REFCNT Unexecuted instantiation: Python-tokenize.c:_Py_REFCNT Unexecuted instantiation: asdl.c:_Py_REFCNT Unexecuted instantiation: assemble.c:_Py_REFCNT Unexecuted instantiation: ast.c:_Py_REFCNT Unexecuted instantiation: ast_preprocess.c:_Py_REFCNT Unexecuted instantiation: ast_unparse.c:_Py_REFCNT Unexecuted instantiation: critical_section.c:_Py_REFCNT Unexecuted instantiation: crossinterp.c:_Py_REFCNT Unexecuted instantiation: getcopyright.c:_Py_REFCNT Unexecuted instantiation: getplatform.c:_Py_REFCNT Unexecuted instantiation: getversion.c:_Py_REFCNT Unexecuted instantiation: optimizer.c:_Py_REFCNT Unexecuted instantiation: pathconfig.c:_Py_REFCNT Unexecuted instantiation: structmember.c:_Py_REFCNT Unexecuted instantiation: pegen.c:_Py_REFCNT Unexecuted instantiation: pegen_errors.c:_Py_REFCNT Unexecuted instantiation: parser.c:_Py_REFCNT Unexecuted instantiation: buffer.c:_Py_REFCNT Unexecuted instantiation: lexer.c:_Py_REFCNT Unexecuted instantiation: state.c:_Py_REFCNT Unexecuted instantiation: readline_tokenizer.c:_Py_REFCNT Unexecuted instantiation: string_tokenizer.c:_Py_REFCNT Unexecuted instantiation: utf8_tokenizer.c:_Py_REFCNT Unexecuted instantiation: getcompiler.c:_Py_REFCNT Unexecuted instantiation: mystrtoul.c:_Py_REFCNT Unexecuted instantiation: token.c:_Py_REFCNT Unexecuted instantiation: action_helpers.c:_Py_REFCNT Unexecuted instantiation: string_parser.c:_Py_REFCNT |
115 | | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000 |
116 | 627M | # 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 | 14.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 | 14.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 | 14.0G | } bytesobject.c:_Py_IsImmortal Line | Count | Source | 124 | 4.57M | { | 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.57M | 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.57M | } |
Line | Count | Source | 124 | 153M | { | 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 | 153M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 153M | } |
exceptions.c:_Py_IsImmortal Line | Count | Source | 124 | 117M | { | 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 | 117M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 117M | } |
genericaliasobject.c:_Py_IsImmortal Line | Count | Source | 124 | 168 | { | 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 | 168 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 168 | } |
floatobject.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 | } |
listobject.c:_Py_IsImmortal Line | Count | Source | 124 | 1.48G | { | 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.48G | 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.48G | } |
longobject.c:_Py_IsImmortal Line | Count | Source | 124 | 19.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 | 19.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 | 19.8M | } |
dictobject.c:_Py_IsImmortal Line | Count | Source | 124 | 1.64G | { | 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.64G | 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.64G | } |
memoryobject.c:_Py_IsImmortal Line | Count | Source | 124 | 625k | { | 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 | 625k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 625k | } |
moduleobject.c:_Py_IsImmortal Line | Count | Source | 124 | 487k | { | 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 | 487k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 487k | } |
Line | Count | Source | 124 | 481M | { | 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 | 481M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 481M | } |
Unexecuted instantiation: obmalloc.c:_Py_IsImmortal Unexecuted instantiation: picklebufobject.c:_Py_IsImmortal rangeobject.c:_Py_IsImmortal Line | Count | Source | 124 | 37.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 | 37.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 | 37.2M | } |
setobject.c:_Py_IsImmortal Line | Count | Source | 124 | 1.14M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 1.14M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 1.14M | } |
sliceobject.c:_Py_IsImmortal Line | Count | Source | 124 | 100M | { | 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 | 100M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 100M | } |
structseq.c:_Py_IsImmortal Line | Count | Source | 124 | 119k | { | 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 | 119k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 119k | } |
templateobject.c:_Py_IsImmortal Line | Count | Source | 124 | 4 | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 4 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 4 | } |
tupleobject.c:_Py_IsImmortal Line | Count | Source | 124 | 664M | { | 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 | 664M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 664M | } |
typeobject.c:_Py_IsImmortal Line | Count | Source | 124 | 827M | { | 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 | 827M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 827M | } |
Unexecuted instantiation: typevarobject.c:_Py_IsImmortal unicode_format.c:_Py_IsImmortal Line | Count | Source | 124 | 39.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 | 39.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 | 39.3M | } |
unicode_formatter.c:_Py_IsImmortal Line | Count | Source | 124 | 256 | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 256 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 256 | } |
unicode_writer.c:_Py_IsImmortal Line | Count | Source | 124 | 14.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 | 14.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 | 14.4M | } |
Unexecuted instantiation: unicodectype.c:_Py_IsImmortal unicodeobject.c:_Py_IsImmortal Line | Count | Source | 124 | 181M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 181M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 181M | } |
unionobject.c:_Py_IsImmortal Line | Count | Source | 124 | 1.38k | { | 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.38k | 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.38k | } |
weakrefobject.c:_Py_IsImmortal Line | Count | Source | 124 | 16.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 | 16.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 | 16.4k | } |
_warnings.c:_Py_IsImmortal Line | Count | Source | 124 | 230k | { | 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 | 230k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 230k | } |
bltinmodule.c:_Py_IsImmortal Line | Count | Source | 124 | 141M | { | 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 | 141M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 141M | } |
Line | Count | Source | 124 | 5.89G | { | 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.89G | 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.89G | } |
Line | Count | Source | 124 | 6.12M | { | 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.12M | 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.12M | } |
Line | Count | Source | 124 | 180k | { | 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 | 180k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 180k | } |
Line | Count | Source | 124 | 693k | { | 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 | 693k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 693k | } |
Line | Count | Source | 124 | 44 | { | 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 | 44 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 44 | } |
Line | Count | Source | 124 | 72.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 | 72.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 | 72.0M | } |
flowgraph.c:_Py_IsImmortal Line | Count | Source | 124 | 80.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 | 80.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 | 80.2k | } |
Line | Count | Source | 124 | 44.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 | 44.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 | 44.2M | } |
Unexecuted instantiation: future.c:_Py_IsImmortal Line | Count | Source | 124 | 182M | { | 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 | 182M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 182M | } |
Unexecuted instantiation: gc_gil.c:_Py_IsImmortal Line | Count | Source | 124 | 1.83M | { | 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.83M | 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.83M | } |
Unexecuted instantiation: ceval_gil.c:_Py_IsImmortal Unexecuted instantiation: hamt.c:_Py_IsImmortal Unexecuted instantiation: hashtable.c:_Py_IsImmortal Line | Count | Source | 124 | 1.77M | { | 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.77M | 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.77M | } |
importdl.c:_Py_IsImmortal Line | Count | Source | 124 | 1.59k | { | 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.59k | 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.59k | } |
initconfig.c:_Py_IsImmortal Line | Count | Source | 124 | 3.03k | { | 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.03k | 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.03k | } |
instrumentation.c:_Py_IsImmortal Line | Count | Source | 124 | 528 | { | 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 | 528 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 528 | } |
instruction_sequence.c:_Py_IsImmortal Line | Count | Source | 124 | 1 | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 1 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 1 | } |
intrinsics.c:_Py_IsImmortal Line | Count | Source | 124 | 39.9k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 39.9k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 39.9k | } |
Unexecuted instantiation: legacy_tracing.c:_Py_IsImmortal Unexecuted instantiation: lock.c:_Py_IsImmortal Line | Count | Source | 124 | 423k | { | 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 | 423k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 423k | } |
modsupport.c:_Py_IsImmortal Line | Count | Source | 124 | 25.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 | 25.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 | 25.1k | } |
Unexecuted instantiation: mysnprintf.c:_Py_IsImmortal Unexecuted instantiation: parking_lot.c:_Py_IsImmortal Unexecuted instantiation: preconfig.c:_Py_IsImmortal Line | Count | Source | 124 | 4.38M | { | 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.38M | 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.38M | } |
Unexecuted instantiation: pyctype.c:_Py_IsImmortal Unexecuted instantiation: pyhash.c:_Py_IsImmortal pylifecycle.c:_Py_IsImmortal Line | Count | Source | 124 | 792 | { | 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 | 792 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 792 | } |
Unexecuted instantiation: pymath.c:_Py_IsImmortal Unexecuted instantiation: pystate.c:_Py_IsImmortal pythonrun.c:_Py_IsImmortal Line | Count | Source | 124 | 241 | { | 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 | 241 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 241 | } |
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 | 553k | { | 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 | 553k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 553k | } |
symtable.c:_Py_IsImmortal Line | Count | Source | 124 | 935k | { | 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 | 935k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 935k | } |
sysmodule.c:_Py_IsImmortal Line | Count | Source | 124 | 6.12k | { | 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.12k | 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.12k | } |
Unexecuted instantiation: thread.c:_Py_IsImmortal traceback.c:_Py_IsImmortal Line | Count | Source | 124 | 66.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 | 66.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 | 66.3M | } |
Unexecuted instantiation: tracemalloc.c:_Py_IsImmortal Unexecuted instantiation: getopt.c:_Py_IsImmortal Unexecuted instantiation: pystrcmp.c:_Py_IsImmortal Unexecuted instantiation: pystrtod.c:_Py_IsImmortal Unexecuted instantiation: pystrhex.c:_Py_IsImmortal Unexecuted instantiation: dtoa.c:_Py_IsImmortal fileutils.c:_Py_IsImmortal Line | Count | Source | 124 | 10.3k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 10.3k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 10.3k | } |
Unexecuted instantiation: suggestions.c:_Py_IsImmortal Unexecuted instantiation: perf_trampoline.c:_Py_IsImmortal Unexecuted instantiation: perf_jit_trampoline.c:_Py_IsImmortal Unexecuted instantiation: remote_debugging.c:_Py_IsImmortal Unexecuted instantiation: dynload_shlib.c:_Py_IsImmortal Unexecuted instantiation: config.c:_Py_IsImmortal Unexecuted instantiation: gcmodule.c:_Py_IsImmortal Unexecuted instantiation: _asynciomodule.c:_Py_IsImmortal Unexecuted instantiation: atexitmodule.c:_Py_IsImmortal Unexecuted instantiation: faulthandler.c:_Py_IsImmortal posixmodule.c:_Py_IsImmortal Line | Count | Source | 124 | 30.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 | 30.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 | 30.1k | } |
signalmodule.c:_Py_IsImmortal Line | Count | Source | 124 | 44 | { | 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 | 44 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 44 | } |
Unexecuted instantiation: _tracemalloc.c:_Py_IsImmortal Unexecuted instantiation: _suggestions.c:_Py_IsImmortal _datetimemodule.c:_Py_IsImmortal Line | Count | Source | 124 | 360 | { | 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 | 360 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 360 | } |
Unexecuted instantiation: _codecsmodule.c:_Py_IsImmortal _collectionsmodule.c:_Py_IsImmortal Line | Count | Source | 124 | 129k | { | 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 | 129k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 129k | } |
Unexecuted instantiation: errnomodule.c:_Py_IsImmortal _iomodule.c:_Py_IsImmortal Line | Count | Source | 124 | 7.71k | { | 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 | 7.71k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 7.71k | } |
Line | Count | Source | 124 | 125k | { | 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 | 125k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 125k | } |
Line | Count | Source | 124 | 4.14k | { | 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.14k | 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.14k | } |
Line | Count | Source | 124 | 29.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 | 29.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 | 29.4k | } |
bufferedio.c:_Py_IsImmortal Line | Count | Source | 124 | 7.47k | { | 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 | 7.47k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 7.47k | } |
Line | Count | Source | 124 | 49.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 | 49.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 | 49.3k | } |
stringio.c:_Py_IsImmortal Line | Count | Source | 124 | 304k | { | 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 | 304k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 304k | } |
itertoolsmodule.c:_Py_IsImmortal Line | Count | Source | 124 | 930 | { | 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 | 930 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 930 | } |
Line | Count | Source | 124 | 414M | { | 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 | 414M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 414M | } |
Unexecuted instantiation: _sysconfig.c:_Py_IsImmortal _threadmodule.c:_Py_IsImmortal Line | Count | Source | 124 | 6.89k | { | 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.89k | 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.89k | } |
Unexecuted instantiation: timemodule.c:_Py_IsImmortal Unexecuted instantiation: _typesmodule.c:_Py_IsImmortal Unexecuted instantiation: _typingmodule.c:_Py_IsImmortal Unexecuted instantiation: _weakref.c:_Py_IsImmortal Line | Count | Source | 124 | 41.9k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 41.9k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 41.9k | } |
_functoolsmodule.c:_Py_IsImmortal Line | Count | Source | 124 | 298 | { | 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 | 298 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 298 | } |
Unexecuted instantiation: _localemodule.c:_Py_IsImmortal Unexecuted instantiation: _opcode.c:_Py_IsImmortal _operator.c:_Py_IsImmortal Line | Count | Source | 124 | 610k | { | 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 | 610k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 610k | } |
Unexecuted instantiation: _stat.c:_Py_IsImmortal Unexecuted instantiation: symtablemodule.c:_Py_IsImmortal Unexecuted instantiation: pwdmodule.c:_Py_IsImmortal Line | Count | Source | 124 | 726 | { | 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 | 726 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 726 | } |
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 | 22.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 | 22.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 | 22.8k | } |
Unexecuted instantiation: myreadline.c:_Py_IsImmortal abstract.c:_Py_IsImmortal Line | Count | Source | 124 | 396M | { | 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 | 396M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 396M | } |
Unexecuted instantiation: boolobject.c:_Py_IsImmortal Unexecuted instantiation: bytes_methods.c:_Py_IsImmortal bytearrayobject.c:_Py_IsImmortal Line | Count | Source | 124 | 22 | { | 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 | 22 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 22 | } |
Line | Count | Source | 124 | 10 | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 10 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 10 | } |
cellobject.c:_Py_IsImmortal Line | Count | Source | 124 | 404k | { | 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 | 404k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 404k | } |
classobject.c:_Py_IsImmortal Line | Count | Source | 124 | 39.6M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 39.6M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 39.6M | } |
codeobject.c:_Py_IsImmortal Line | Count | Source | 124 | 153k | { | 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 | 153k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 153k | } |
Unexecuted instantiation: complexobject.c:_Py_IsImmortal descrobject.c:_Py_IsImmortal Line | Count | Source | 124 | 83.7M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 83.7M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 83.7M | } |
enumobject.c:_Py_IsImmortal Line | Count | Source | 124 | 273M | { | 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 | 273M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 273M | } |
genobject.c:_Py_IsImmortal Line | Count | Source | 124 | 151M | { | 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 | 151M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 151M | } |
fileobject.c:_Py_IsImmortal Line | Count | Source | 124 | 13.6k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 13.6k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 13.6k | } |
frameobject.c:_Py_IsImmortal Line | Count | Source | 124 | 15.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 | 15.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 | 15.3M | } |
funcobject.c:_Py_IsImmortal Line | Count | Source | 124 | 160M | { | 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 | 160M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 160M | } |
interpolationobject.c:_Py_IsImmortal Line | Count | Source | 124 | 22 | { | 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 | 22 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 22 | } |
iterobject.c:_Py_IsImmortal Line | Count | Source | 124 | 1.62M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 1.62M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 1.62M | } |
odictobject.c:_Py_IsImmortal Line | Count | Source | 124 | 736 | { | 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 | 736 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 736 | } |
methodobject.c:_Py_IsImmortal Line | Count | Source | 124 | 300M | { | 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 | 300M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 300M | } |
namespaceobject.c:_Py_IsImmortal Line | Count | Source | 124 | 22 | { | 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 | 22 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 22 | } |
Unexecuted instantiation: _contextvars.c:_Py_IsImmortal Python-ast.c:_Py_IsImmortal Line | Count | Source | 124 | 2.97M | { | 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.97M | 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.97M | } |
Unexecuted instantiation: Python-tokenize.c:_Py_IsImmortal Unexecuted instantiation: asdl.c:_Py_IsImmortal assemble.c:_Py_IsImmortal Line | Count | Source | 124 | 55.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 | 55.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 | 55.3k | } |
Unexecuted instantiation: ast.c:_Py_IsImmortal ast_preprocess.c:_Py_IsImmortal Line | Count | Source | 124 | 3 | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 3 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 3 | } |
ast_unparse.c:_Py_IsImmortal Line | Count | Source | 124 | 8 | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 8 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 8 | } |
Unexecuted instantiation: critical_section.c:_Py_IsImmortal Unexecuted instantiation: crossinterp.c:_Py_IsImmortal Unexecuted instantiation: getcopyright.c:_Py_IsImmortal Unexecuted instantiation: getplatform.c:_Py_IsImmortal Unexecuted instantiation: getversion.c:_Py_IsImmortal Unexecuted instantiation: optimizer.c:_Py_IsImmortal Unexecuted instantiation: pathconfig.c:_Py_IsImmortal structmember.c:_Py_IsImmortal Line | Count | Source | 124 | 1.40k | { | 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.40k | 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.40k | } |
Line | Count | Source | 124 | 131k | { | 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 | 131k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 131k | } |
pegen_errors.c:_Py_IsImmortal Line | Count | Source | 124 | 42.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 | 42.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 | 42.5k | } |
Unexecuted instantiation: parser.c:_Py_IsImmortal Unexecuted instantiation: buffer.c:_Py_IsImmortal Line | Count | Source | 124 | 13.0k | { | 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 | 13.0k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 13.0k | } |
Line | Count | Source | 124 | 21.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 | 21.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 | 21.5k | } |
Unexecuted instantiation: readline_tokenizer.c:_Py_IsImmortal Unexecuted instantiation: string_tokenizer.c:_Py_IsImmortal Unexecuted instantiation: utf8_tokenizer.c:_Py_IsImmortal Unexecuted instantiation: getcompiler.c:_Py_IsImmortal Unexecuted instantiation: mystrtoul.c:_Py_IsImmortal Unexecuted instantiation: token.c:_Py_IsImmortal Unexecuted instantiation: action_helpers.c:_Py_IsImmortal string_parser.c:_Py_IsImmortal Line | Count | Source | 124 | 39.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 | 39.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 | 39.5k | } |
|
134 | 15.2G | #define _Py_IsImmortal(op) _Py_IsImmortal(_PyObject_CAST(op)) |
135 | | |
136 | | |
137 | | static inline Py_ALWAYS_INLINE int _Py_IsStaticImmortal(PyObject *op) |
138 | 0 | { |
139 | 0 | #if defined(Py_GIL_DISABLED) || SIZEOF_VOID_P > 4 |
140 | 0 | return (op->ob_flags & _Py_STATICALLY_ALLOCATED_FLAG) != 0; |
141 | 0 | #else |
142 | 0 | return op->ob_refcnt >= _Py_STATIC_IMMORTAL_MINIMUM_REFCNT; |
143 | 0 | #endif |
144 | 0 | } Unexecuted instantiation: bytesobject.c:_Py_IsStaticImmortal Unexecuted instantiation: call.c:_Py_IsStaticImmortal Unexecuted instantiation: exceptions.c:_Py_IsStaticImmortal Unexecuted instantiation: genericaliasobject.c:_Py_IsStaticImmortal Unexecuted instantiation: floatobject.c:_Py_IsStaticImmortal Unexecuted instantiation: listobject.c:_Py_IsStaticImmortal Unexecuted instantiation: longobject.c:_Py_IsStaticImmortal Unexecuted instantiation: dictobject.c:_Py_IsStaticImmortal Unexecuted instantiation: memoryobject.c:_Py_IsStaticImmortal Unexecuted instantiation: moduleobject.c:_Py_IsStaticImmortal Unexecuted instantiation: object.c:_Py_IsStaticImmortal Unexecuted instantiation: obmalloc.c:_Py_IsStaticImmortal Unexecuted instantiation: picklebufobject.c:_Py_IsStaticImmortal Unexecuted instantiation: rangeobject.c:_Py_IsStaticImmortal Unexecuted instantiation: setobject.c:_Py_IsStaticImmortal Unexecuted instantiation: sliceobject.c:_Py_IsStaticImmortal Unexecuted instantiation: structseq.c:_Py_IsStaticImmortal Unexecuted instantiation: templateobject.c:_Py_IsStaticImmortal Unexecuted instantiation: tupleobject.c:_Py_IsStaticImmortal Unexecuted instantiation: typeobject.c:_Py_IsStaticImmortal Unexecuted instantiation: typevarobject.c:_Py_IsStaticImmortal Unexecuted instantiation: unicode_format.c:_Py_IsStaticImmortal Unexecuted instantiation: unicode_formatter.c:_Py_IsStaticImmortal Unexecuted instantiation: unicode_writer.c:_Py_IsStaticImmortal Unexecuted instantiation: unicodectype.c:_Py_IsStaticImmortal Unexecuted instantiation: unicodeobject.c:_Py_IsStaticImmortal Unexecuted instantiation: unionobject.c:_Py_IsStaticImmortal Unexecuted instantiation: weakrefobject.c:_Py_IsStaticImmortal Unexecuted instantiation: _warnings.c:_Py_IsStaticImmortal Unexecuted instantiation: bltinmodule.c:_Py_IsStaticImmortal Unexecuted instantiation: ceval.c:_Py_IsStaticImmortal Unexecuted instantiation: codecs.c:_Py_IsStaticImmortal Unexecuted instantiation: codegen.c:_Py_IsStaticImmortal Unexecuted instantiation: compile.c:_Py_IsStaticImmortal Unexecuted instantiation: context.c:_Py_IsStaticImmortal Unexecuted instantiation: errors.c:_Py_IsStaticImmortal Unexecuted instantiation: flowgraph.c:_Py_IsStaticImmortal Unexecuted instantiation: frame.c:_Py_IsStaticImmortal Unexecuted instantiation: future.c:_Py_IsStaticImmortal Unexecuted instantiation: gc.c:_Py_IsStaticImmortal Unexecuted instantiation: gc_gil.c:_Py_IsStaticImmortal Unexecuted instantiation: getargs.c:_Py_IsStaticImmortal Unexecuted instantiation: ceval_gil.c:_Py_IsStaticImmortal Unexecuted instantiation: hamt.c:_Py_IsStaticImmortal Unexecuted instantiation: hashtable.c:_Py_IsStaticImmortal Unexecuted instantiation: import.c:_Py_IsStaticImmortal Unexecuted instantiation: importdl.c:_Py_IsStaticImmortal Unexecuted instantiation: initconfig.c:_Py_IsStaticImmortal Unexecuted instantiation: instrumentation.c:_Py_IsStaticImmortal Unexecuted instantiation: instruction_sequence.c:_Py_IsStaticImmortal Unexecuted instantiation: intrinsics.c:_Py_IsStaticImmortal Unexecuted instantiation: legacy_tracing.c:_Py_IsStaticImmortal Unexecuted instantiation: lock.c:_Py_IsStaticImmortal Unexecuted instantiation: marshal.c:_Py_IsStaticImmortal Unexecuted instantiation: modsupport.c:_Py_IsStaticImmortal Unexecuted instantiation: mysnprintf.c:_Py_IsStaticImmortal Unexecuted instantiation: parking_lot.c:_Py_IsStaticImmortal Unexecuted instantiation: preconfig.c:_Py_IsStaticImmortal Unexecuted instantiation: pyarena.c:_Py_IsStaticImmortal Unexecuted instantiation: pyctype.c:_Py_IsStaticImmortal Unexecuted instantiation: pyhash.c:_Py_IsStaticImmortal Unexecuted instantiation: pylifecycle.c:_Py_IsStaticImmortal Unexecuted instantiation: pymath.c:_Py_IsStaticImmortal Unexecuted instantiation: pystate.c:_Py_IsStaticImmortal Unexecuted instantiation: pythonrun.c:_Py_IsStaticImmortal Unexecuted instantiation: pytime.c:_Py_IsStaticImmortal Unexecuted instantiation: qsbr.c:_Py_IsStaticImmortal Unexecuted instantiation: bootstrap_hash.c:_Py_IsStaticImmortal Unexecuted instantiation: specialize.c:_Py_IsStaticImmortal Unexecuted instantiation: symtable.c:_Py_IsStaticImmortal Unexecuted instantiation: sysmodule.c:_Py_IsStaticImmortal Unexecuted instantiation: thread.c:_Py_IsStaticImmortal Unexecuted instantiation: traceback.c:_Py_IsStaticImmortal Unexecuted instantiation: tracemalloc.c:_Py_IsStaticImmortal Unexecuted instantiation: getopt.c:_Py_IsStaticImmortal Unexecuted instantiation: pystrcmp.c:_Py_IsStaticImmortal Unexecuted instantiation: pystrtod.c:_Py_IsStaticImmortal Unexecuted instantiation: pystrhex.c:_Py_IsStaticImmortal Unexecuted instantiation: dtoa.c:_Py_IsStaticImmortal Unexecuted instantiation: fileutils.c:_Py_IsStaticImmortal Unexecuted instantiation: suggestions.c:_Py_IsStaticImmortal Unexecuted instantiation: perf_trampoline.c:_Py_IsStaticImmortal Unexecuted instantiation: perf_jit_trampoline.c:_Py_IsStaticImmortal Unexecuted instantiation: remote_debugging.c:_Py_IsStaticImmortal Unexecuted instantiation: dynload_shlib.c:_Py_IsStaticImmortal Unexecuted instantiation: config.c:_Py_IsStaticImmortal Unexecuted instantiation: gcmodule.c:_Py_IsStaticImmortal Unexecuted instantiation: _asynciomodule.c:_Py_IsStaticImmortal Unexecuted instantiation: atexitmodule.c:_Py_IsStaticImmortal Unexecuted instantiation: faulthandler.c:_Py_IsStaticImmortal Unexecuted instantiation: posixmodule.c:_Py_IsStaticImmortal Unexecuted instantiation: signalmodule.c:_Py_IsStaticImmortal Unexecuted instantiation: _tracemalloc.c:_Py_IsStaticImmortal Unexecuted instantiation: _suggestions.c:_Py_IsStaticImmortal Unexecuted instantiation: _datetimemodule.c:_Py_IsStaticImmortal Unexecuted instantiation: _codecsmodule.c:_Py_IsStaticImmortal Unexecuted instantiation: _collectionsmodule.c:_Py_IsStaticImmortal Unexecuted instantiation: errnomodule.c:_Py_IsStaticImmortal Unexecuted instantiation: _iomodule.c:_Py_IsStaticImmortal Unexecuted instantiation: iobase.c:_Py_IsStaticImmortal Unexecuted instantiation: fileio.c:_Py_IsStaticImmortal Unexecuted instantiation: bytesio.c:_Py_IsStaticImmortal Unexecuted instantiation: bufferedio.c:_Py_IsStaticImmortal Unexecuted instantiation: textio.c:_Py_IsStaticImmortal Unexecuted instantiation: stringio.c:_Py_IsStaticImmortal Unexecuted instantiation: itertoolsmodule.c:_Py_IsStaticImmortal Unexecuted instantiation: sre.c:_Py_IsStaticImmortal Unexecuted instantiation: _sysconfig.c:_Py_IsStaticImmortal Unexecuted instantiation: _threadmodule.c:_Py_IsStaticImmortal Unexecuted instantiation: timemodule.c:_Py_IsStaticImmortal Unexecuted instantiation: _typesmodule.c:_Py_IsStaticImmortal Unexecuted instantiation: _typingmodule.c:_Py_IsStaticImmortal Unexecuted instantiation: _weakref.c:_Py_IsStaticImmortal Unexecuted instantiation: _abc.c:_Py_IsStaticImmortal Unexecuted instantiation: _functoolsmodule.c:_Py_IsStaticImmortal Unexecuted instantiation: _localemodule.c:_Py_IsStaticImmortal Unexecuted instantiation: _opcode.c:_Py_IsStaticImmortal Unexecuted instantiation: _operator.c:_Py_IsStaticImmortal Unexecuted instantiation: _stat.c:_Py_IsStaticImmortal Unexecuted instantiation: symtablemodule.c:_Py_IsStaticImmortal Unexecuted instantiation: pwdmodule.c:_Py_IsStaticImmortal Unexecuted instantiation: getpath.c:_Py_IsStaticImmortal Unexecuted instantiation: frozen.c:_Py_IsStaticImmortal Unexecuted instantiation: getbuildinfo.c:_Py_IsStaticImmortal Unexecuted instantiation: peg_api.c:_Py_IsStaticImmortal Unexecuted instantiation: file_tokenizer.c:_Py_IsStaticImmortal Unexecuted instantiation: helpers.c:_Py_IsStaticImmortal Unexecuted instantiation: myreadline.c:_Py_IsStaticImmortal Unexecuted instantiation: abstract.c:_Py_IsStaticImmortal Unexecuted instantiation: boolobject.c:_Py_IsStaticImmortal Unexecuted instantiation: bytes_methods.c:_Py_IsStaticImmortal Unexecuted instantiation: bytearrayobject.c:_Py_IsStaticImmortal Unexecuted instantiation: capsule.c:_Py_IsStaticImmortal Unexecuted instantiation: cellobject.c:_Py_IsStaticImmortal Unexecuted instantiation: classobject.c:_Py_IsStaticImmortal Unexecuted instantiation: codeobject.c:_Py_IsStaticImmortal Unexecuted instantiation: complexobject.c:_Py_IsStaticImmortal Unexecuted instantiation: descrobject.c:_Py_IsStaticImmortal Unexecuted instantiation: enumobject.c:_Py_IsStaticImmortal Unexecuted instantiation: genobject.c:_Py_IsStaticImmortal Unexecuted instantiation: fileobject.c:_Py_IsStaticImmortal Unexecuted instantiation: frameobject.c:_Py_IsStaticImmortal Unexecuted instantiation: funcobject.c:_Py_IsStaticImmortal Unexecuted instantiation: interpolationobject.c:_Py_IsStaticImmortal Unexecuted instantiation: iterobject.c:_Py_IsStaticImmortal Unexecuted instantiation: odictobject.c:_Py_IsStaticImmortal Unexecuted instantiation: methodobject.c:_Py_IsStaticImmortal Unexecuted instantiation: namespaceobject.c:_Py_IsStaticImmortal Unexecuted instantiation: _contextvars.c:_Py_IsStaticImmortal Unexecuted instantiation: Python-ast.c:_Py_IsStaticImmortal Unexecuted instantiation: Python-tokenize.c:_Py_IsStaticImmortal Unexecuted instantiation: asdl.c:_Py_IsStaticImmortal Unexecuted instantiation: assemble.c:_Py_IsStaticImmortal Unexecuted instantiation: ast.c:_Py_IsStaticImmortal Unexecuted instantiation: ast_preprocess.c:_Py_IsStaticImmortal Unexecuted instantiation: ast_unparse.c:_Py_IsStaticImmortal Unexecuted instantiation: critical_section.c:_Py_IsStaticImmortal Unexecuted instantiation: crossinterp.c:_Py_IsStaticImmortal Unexecuted instantiation: getcopyright.c:_Py_IsStaticImmortal Unexecuted instantiation: getplatform.c:_Py_IsStaticImmortal Unexecuted instantiation: getversion.c:_Py_IsStaticImmortal Unexecuted instantiation: optimizer.c:_Py_IsStaticImmortal Unexecuted instantiation: pathconfig.c:_Py_IsStaticImmortal Unexecuted instantiation: structmember.c:_Py_IsStaticImmortal Unexecuted instantiation: pegen.c:_Py_IsStaticImmortal Unexecuted instantiation: pegen_errors.c:_Py_IsStaticImmortal Unexecuted instantiation: parser.c:_Py_IsStaticImmortal Unexecuted instantiation: buffer.c:_Py_IsStaticImmortal Unexecuted instantiation: lexer.c:_Py_IsStaticImmortal Unexecuted instantiation: state.c:_Py_IsStaticImmortal Unexecuted instantiation: readline_tokenizer.c:_Py_IsStaticImmortal Unexecuted instantiation: string_tokenizer.c:_Py_IsStaticImmortal Unexecuted instantiation: utf8_tokenizer.c:_Py_IsStaticImmortal Unexecuted instantiation: getcompiler.c:_Py_IsStaticImmortal Unexecuted instantiation: mystrtoul.c:_Py_IsStaticImmortal Unexecuted instantiation: token.c:_Py_IsStaticImmortal Unexecuted instantiation: action_helpers.c:_Py_IsStaticImmortal Unexecuted instantiation: string_parser.c:_Py_IsStaticImmortal |
145 | | #define _Py_IsStaticImmortal(op) _Py_IsStaticImmortal(_PyObject_CAST(op)) |
146 | | #endif // !defined(_Py_OPAQUE_PYOBJECT) |
147 | | |
148 | | // Py_SET_REFCNT() implementation for stable ABI |
149 | | PyAPI_FUNC(void) _Py_SetRefcnt(PyObject *ob, Py_ssize_t refcnt); |
150 | | |
151 | 640M | static inline void Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) { |
152 | 640M | 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 | 640M | if (_Py_IsImmortal(ob)) { |
163 | 610 | return; |
164 | 610 | } |
165 | 640M | #ifndef Py_GIL_DISABLED |
166 | 640M | #if SIZEOF_VOID_P > 4 |
167 | 640M | 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 | 640M | #endif // Py_LIMITED_API+0 < 0x030d0000 |
195 | 640M | } 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 | 563M | static inline void Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) { | 152 | 563M | 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 | 563M | if (_Py_IsImmortal(ob)) { | 163 | 0 | return; | 164 | 0 | } | 165 | 563M | #ifndef Py_GIL_DISABLED | 166 | 563M | #if SIZEOF_VOID_P > 4 | 167 | 563M | 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 | 563M | #endif // Py_LIMITED_API+0 < 0x030d0000 | 195 | 563M | } |
Unexecuted instantiation: memoryobject.c:Py_SET_REFCNT moduleobject.c:Py_SET_REFCNT Line | Count | Source | 151 | 610 | static inline void Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) { | 152 | 610 | 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 | 610 | if (_Py_IsImmortal(ob)) { | 163 | 610 | return; | 164 | 610 | } | 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 | 46.4M | static inline void Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) { | 152 | 46.4M | 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 | 46.4M | if (_Py_IsImmortal(ob)) { | 163 | 0 | return; | 164 | 0 | } | 165 | 46.4M | #ifndef Py_GIL_DISABLED | 166 | 46.4M | #if SIZEOF_VOID_P > 4 | 167 | 46.4M | 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 | 46.4M | #endif // Py_LIMITED_API+0 < 0x030d0000 | 195 | 46.4M | } |
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.30M | static inline void Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) { | 152 | 1.30M | 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.30M | if (_Py_IsImmortal(ob)) { | 163 | 0 | return; | 164 | 0 | } | 165 | 1.30M | #ifndef Py_GIL_DISABLED | 166 | 1.30M | #if SIZEOF_VOID_P > 4 | 167 | 1.30M | 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.30M | #endif // Py_LIMITED_API+0 < 0x030d0000 | 195 | 1.30M | } |
Unexecuted instantiation: unionobject.c:Py_SET_REFCNT Unexecuted instantiation: weakrefobject.c:Py_SET_REFCNT Unexecuted instantiation: _warnings.c:Py_SET_REFCNT Unexecuted instantiation: bltinmodule.c:Py_SET_REFCNT Unexecuted instantiation: ceval.c:Py_SET_REFCNT Unexecuted instantiation: codecs.c:Py_SET_REFCNT Unexecuted instantiation: codegen.c:Py_SET_REFCNT Unexecuted instantiation: compile.c:Py_SET_REFCNT Unexecuted instantiation: context.c:Py_SET_REFCNT Unexecuted instantiation: errors.c:Py_SET_REFCNT Unexecuted instantiation: flowgraph.c:Py_SET_REFCNT Unexecuted instantiation: frame.c:Py_SET_REFCNT Unexecuted instantiation: future.c:Py_SET_REFCNT Unexecuted instantiation: gc.c:Py_SET_REFCNT Unexecuted instantiation: gc_gil.c:Py_SET_REFCNT Unexecuted instantiation: getargs.c:Py_SET_REFCNT Unexecuted instantiation: ceval_gil.c:Py_SET_REFCNT Unexecuted instantiation: hamt.c:Py_SET_REFCNT Unexecuted instantiation: hashtable.c:Py_SET_REFCNT Unexecuted instantiation: import.c:Py_SET_REFCNT Unexecuted instantiation: importdl.c:Py_SET_REFCNT Unexecuted instantiation: initconfig.c:Py_SET_REFCNT Unexecuted instantiation: instrumentation.c:Py_SET_REFCNT Unexecuted instantiation: instruction_sequence.c:Py_SET_REFCNT Unexecuted instantiation: intrinsics.c:Py_SET_REFCNT Unexecuted instantiation: legacy_tracing.c:Py_SET_REFCNT Unexecuted instantiation: lock.c:Py_SET_REFCNT Unexecuted instantiation: marshal.c:Py_SET_REFCNT Unexecuted instantiation: modsupport.c:Py_SET_REFCNT Unexecuted instantiation: mysnprintf.c:Py_SET_REFCNT Unexecuted instantiation: parking_lot.c:Py_SET_REFCNT Unexecuted instantiation: preconfig.c:Py_SET_REFCNT Unexecuted instantiation: pyarena.c:Py_SET_REFCNT Unexecuted instantiation: pyctype.c:Py_SET_REFCNT Unexecuted instantiation: pyhash.c:Py_SET_REFCNT Unexecuted instantiation: pylifecycle.c:Py_SET_REFCNT Unexecuted instantiation: pymath.c:Py_SET_REFCNT Unexecuted instantiation: pystate.c:Py_SET_REFCNT Unexecuted instantiation: pythonrun.c:Py_SET_REFCNT Unexecuted instantiation: pytime.c:Py_SET_REFCNT Unexecuted instantiation: qsbr.c:Py_SET_REFCNT Unexecuted instantiation: bootstrap_hash.c:Py_SET_REFCNT Unexecuted instantiation: specialize.c:Py_SET_REFCNT Unexecuted instantiation: symtable.c:Py_SET_REFCNT Unexecuted instantiation: sysmodule.c:Py_SET_REFCNT Unexecuted instantiation: thread.c:Py_SET_REFCNT Unexecuted instantiation: traceback.c:Py_SET_REFCNT Unexecuted instantiation: tracemalloc.c:Py_SET_REFCNT Unexecuted instantiation: getopt.c:Py_SET_REFCNT Unexecuted instantiation: pystrcmp.c:Py_SET_REFCNT Unexecuted instantiation: pystrtod.c:Py_SET_REFCNT Unexecuted instantiation: pystrhex.c:Py_SET_REFCNT Unexecuted instantiation: dtoa.c:Py_SET_REFCNT Unexecuted instantiation: fileutils.c:Py_SET_REFCNT Unexecuted instantiation: suggestions.c:Py_SET_REFCNT Unexecuted instantiation: perf_trampoline.c:Py_SET_REFCNT Unexecuted instantiation: perf_jit_trampoline.c:Py_SET_REFCNT Unexecuted instantiation: remote_debugging.c:Py_SET_REFCNT Unexecuted instantiation: dynload_shlib.c:Py_SET_REFCNT Unexecuted instantiation: config.c:Py_SET_REFCNT Unexecuted instantiation: gcmodule.c:Py_SET_REFCNT Unexecuted instantiation: _asynciomodule.c:Py_SET_REFCNT Unexecuted instantiation: atexitmodule.c:Py_SET_REFCNT Unexecuted instantiation: faulthandler.c:Py_SET_REFCNT Unexecuted instantiation: posixmodule.c:Py_SET_REFCNT Unexecuted instantiation: signalmodule.c:Py_SET_REFCNT Unexecuted instantiation: _tracemalloc.c:Py_SET_REFCNT Unexecuted instantiation: _suggestions.c:Py_SET_REFCNT Unexecuted instantiation: _datetimemodule.c:Py_SET_REFCNT Unexecuted instantiation: _codecsmodule.c:Py_SET_REFCNT Unexecuted instantiation: _collectionsmodule.c:Py_SET_REFCNT Unexecuted instantiation: errnomodule.c:Py_SET_REFCNT Unexecuted instantiation: _iomodule.c:Py_SET_REFCNT Unexecuted instantiation: iobase.c:Py_SET_REFCNT Unexecuted instantiation: fileio.c:Py_SET_REFCNT Unexecuted instantiation: bytesio.c:Py_SET_REFCNT Unexecuted instantiation: bufferedio.c:Py_SET_REFCNT Unexecuted instantiation: textio.c:Py_SET_REFCNT Unexecuted instantiation: stringio.c:Py_SET_REFCNT Unexecuted instantiation: itertoolsmodule.c:Py_SET_REFCNT Unexecuted instantiation: sre.c:Py_SET_REFCNT Unexecuted instantiation: _sysconfig.c:Py_SET_REFCNT Unexecuted instantiation: _threadmodule.c:Py_SET_REFCNT Unexecuted instantiation: timemodule.c:Py_SET_REFCNT Unexecuted instantiation: _typesmodule.c:Py_SET_REFCNT Unexecuted instantiation: _typingmodule.c:Py_SET_REFCNT Unexecuted instantiation: _weakref.c:Py_SET_REFCNT Unexecuted instantiation: _abc.c:Py_SET_REFCNT Unexecuted instantiation: _functoolsmodule.c:Py_SET_REFCNT Unexecuted instantiation: _localemodule.c:Py_SET_REFCNT Unexecuted instantiation: _opcode.c:Py_SET_REFCNT Unexecuted instantiation: _operator.c:Py_SET_REFCNT Unexecuted instantiation: _stat.c:Py_SET_REFCNT Unexecuted instantiation: symtablemodule.c:Py_SET_REFCNT Unexecuted instantiation: pwdmodule.c:Py_SET_REFCNT Unexecuted instantiation: getpath.c:Py_SET_REFCNT Unexecuted instantiation: frozen.c:Py_SET_REFCNT Unexecuted instantiation: getbuildinfo.c:Py_SET_REFCNT Unexecuted instantiation: peg_api.c:Py_SET_REFCNT Unexecuted instantiation: file_tokenizer.c:Py_SET_REFCNT Unexecuted instantiation: helpers.c:Py_SET_REFCNT Unexecuted instantiation: myreadline.c:Py_SET_REFCNT Unexecuted instantiation: abstract.c:Py_SET_REFCNT Unexecuted instantiation: boolobject.c:Py_SET_REFCNT Unexecuted instantiation: bytes_methods.c:Py_SET_REFCNT Unexecuted instantiation: bytearrayobject.c:Py_SET_REFCNT Unexecuted instantiation: capsule.c:Py_SET_REFCNT Unexecuted instantiation: cellobject.c:Py_SET_REFCNT Unexecuted instantiation: classobject.c:Py_SET_REFCNT codeobject.c:Py_SET_REFCNT Line | Count | Source | 151 | 21.0k | static inline void Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) { | 152 | 21.0k | 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 | 21.0k | if (_Py_IsImmortal(ob)) { | 163 | 0 | return; | 164 | 0 | } | 165 | 21.0k | #ifndef Py_GIL_DISABLED | 166 | 21.0k | #if SIZEOF_VOID_P > 4 | 167 | 21.0k | 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 | 21.0k | #endif // Py_LIMITED_API+0 < 0x030d0000 | 195 | 21.0k | } |
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 | 29.1M | static inline void Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) { | 152 | 29.1M | 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 | 29.1M | if (_Py_IsImmortal(ob)) { | 163 | 0 | return; | 164 | 0 | } | 165 | 29.1M | #ifndef Py_GIL_DISABLED | 166 | 29.1M | #if SIZEOF_VOID_P > 4 | 167 | 29.1M | 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 | 29.1M | #endif // Py_LIMITED_API+0 < 0x030d0000 | 195 | 29.1M | } |
Unexecuted instantiation: interpolationobject.c:Py_SET_REFCNT Unexecuted instantiation: iterobject.c:Py_SET_REFCNT Unexecuted instantiation: odictobject.c:Py_SET_REFCNT Unexecuted instantiation: methodobject.c:Py_SET_REFCNT Unexecuted instantiation: namespaceobject.c:Py_SET_REFCNT Unexecuted instantiation: _contextvars.c:Py_SET_REFCNT Unexecuted instantiation: Python-ast.c:Py_SET_REFCNT Unexecuted instantiation: Python-tokenize.c:Py_SET_REFCNT Unexecuted instantiation: asdl.c:Py_SET_REFCNT Unexecuted instantiation: assemble.c:Py_SET_REFCNT Unexecuted instantiation: ast.c:Py_SET_REFCNT Unexecuted instantiation: ast_preprocess.c:Py_SET_REFCNT Unexecuted instantiation: ast_unparse.c:Py_SET_REFCNT Unexecuted instantiation: critical_section.c:Py_SET_REFCNT Unexecuted instantiation: crossinterp.c:Py_SET_REFCNT Unexecuted instantiation: getcopyright.c:Py_SET_REFCNT Unexecuted instantiation: getplatform.c:Py_SET_REFCNT Unexecuted instantiation: getversion.c:Py_SET_REFCNT Unexecuted instantiation: optimizer.c:Py_SET_REFCNT Unexecuted instantiation: pathconfig.c:Py_SET_REFCNT Unexecuted instantiation: structmember.c:Py_SET_REFCNT Unexecuted instantiation: pegen.c:Py_SET_REFCNT Unexecuted instantiation: pegen_errors.c:Py_SET_REFCNT Unexecuted instantiation: parser.c:Py_SET_REFCNT Unexecuted instantiation: buffer.c:Py_SET_REFCNT Unexecuted instantiation: lexer.c:Py_SET_REFCNT Unexecuted instantiation: state.c:Py_SET_REFCNT Unexecuted instantiation: readline_tokenizer.c:Py_SET_REFCNT Unexecuted instantiation: string_tokenizer.c:Py_SET_REFCNT Unexecuted instantiation: utf8_tokenizer.c:Py_SET_REFCNT Unexecuted instantiation: getcompiler.c:Py_SET_REFCNT Unexecuted instantiation: mystrtoul.c:Py_SET_REFCNT Unexecuted instantiation: token.c:Py_SET_REFCNT Unexecuted instantiation: action_helpers.c:Py_SET_REFCNT Unexecuted instantiation: string_parser.c:Py_SET_REFCNT |
196 | | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000 |
197 | 640M | # 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 | 7.91G | { |
253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) |
254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API |
255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() |
256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. |
257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. |
258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 |
259 | | _Py_IncRef(op); |
260 | | # else |
261 | | Py_IncRef(op); |
262 | | # endif |
263 | | #else |
264 | | // Non-limited C API and limited C API for Python 3.9 and older access |
265 | | // directly PyObject.ob_refcnt. |
266 | | #if defined(Py_GIL_DISABLED) |
267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); |
268 | | uint32_t new_local = local + 1; |
269 | | if (new_local == 0) { |
270 | | _Py_INCREF_IMMORTAL_STAT_INC(); |
271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing |
272 | | return; |
273 | | } |
274 | | if (_Py_IsOwnedByCurrentThread(op)) { |
275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); |
276 | | } |
277 | | else { |
278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); |
279 | | } |
280 | | #elif SIZEOF_VOID_P > 4 |
281 | 7.91G | PY_UINT32_T cur_refcnt = op->ob_refcnt; |
282 | 7.91G | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { |
283 | | // the object is immortal |
284 | 3.84G | _Py_INCREF_IMMORTAL_STAT_INC(); |
285 | 3.84G | return; |
286 | 3.84G | } |
287 | 4.06G | 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.06G | _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.06G | #endif |
303 | 4.06G | } Line | Count | Source | 252 | 25.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 | 25.4M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 25.4M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 23.4M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 23.4M | return; | 286 | 23.4M | } | 287 | 2.00M | 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.00M | _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.00M | #endif | 303 | 2.00M | } |
Line | Count | Source | 252 | 28.7M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 28.7M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 28.7M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 10.0M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 10.0M | return; | 286 | 10.0M | } | 287 | 18.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 | 18.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 | 18.6M | #endif | 303 | 18.6M | } |
Line | Count | Source | 252 | 94.2M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 94.2M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 94.2M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 44.6M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 44.6M | return; | 286 | 44.6M | } | 287 | 49.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 | 49.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 | 49.5M | #endif | 303 | 49.5M | } |
genericaliasobject.c:Py_INCREF Line | Count | Source | 252 | 1.28k | { | 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.28k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 1.28k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 1.25k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 1.25k | return; | 286 | 1.25k | } | 287 | 36 | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 36 | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 36 | #endif | 303 | 36 | } |
Line | Count | Source | 252 | 740k | { | 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 | 740k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 740k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 740k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 740k | return; | 286 | 740k | } | 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.14G | { | 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.14G | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 1.14G | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 238M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 238M | return; | 286 | 238M | } | 287 | 903M | 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 | 903M | _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 | 903M | #endif | 303 | 903M | } |
Line | Count | Source | 252 | 111M | { | 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 | 111M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 111M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 111M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 111M | return; | 286 | 111M | } | 287 | 5.50k | 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.50k | _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.50k | #endif | 303 | 5.50k | } |
Line | Count | Source | 252 | 1.07G | { | 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.07G | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 1.07G | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 381M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 381M | return; | 286 | 381M | } | 287 | 690M | 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 | 690M | _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 | 690M | #endif | 303 | 690M | } |
Line | Count | Source | 252 | 612k | { | 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 | 612k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 612k | 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 | 612k | 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 | 612k | _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 | 612k | #endif | 303 | 612k | } |
Line | Count | Source | 252 | 1.88k | { | 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.88k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 1.88k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 1.13k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 1.13k | return; | 286 | 1.13k | } | 287 | 747 | 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 | 747 | _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 | 747 | #endif | 303 | 747 | } |
Line | Count | Source | 252 | 558M | { | 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 | 558M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 558M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 406M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 406M | return; | 286 | 406M | } | 287 | 152M | 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 | 152M | _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 | 152M | #endif | 303 | 152M | } |
Unexecuted instantiation: obmalloc.c:Py_INCREF Unexecuted instantiation: picklebufobject.c:Py_INCREF Line | Count | Source | 252 | 88 | { | 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 | 88 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 88 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 66 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 66 | return; | 286 | 66 | } | 287 | 22 | 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 | _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 | #endif | 303 | 22 | } |
Line | Count | Source | 252 | 1.39M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 1.39M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 1.39M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 553k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 553k | return; | 286 | 553k | } | 287 | 842k | 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 | 842k | _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 | 842k | #endif | 303 | 842k | } |
Line | Count | Source | 252 | 33.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 | 33.5M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 33.5M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 33.5M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 33.5M | return; | 286 | 33.5M | } | 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: structseq.c:Py_INCREF templateobject.c:Py_INCREF Line | Count | Source | 252 | 4 | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 4 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 4 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 2 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 2 | return; | 286 | 2 | } | 287 | 2 | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 2 | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 2 | #endif | 303 | 2 | } |
Line | Count | Source | 252 | 485M | { | 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 | 485M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 485M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 304M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 304M | return; | 286 | 304M | } | 287 | 181M | 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 | 181M | _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 | 181M | #endif | 303 | 181M | } |
Line | Count | Source | 252 | 299M | { | 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 | 299M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 299M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 104M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 104M | return; | 286 | 104M | } | 287 | 194M | 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 | 194M | _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 | 194M | #endif | 303 | 194M | } |
Unexecuted instantiation: typevarobject.c:Py_INCREF unicode_format.c:Py_INCREF Line | Count | Source | 252 | 39.2M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 39.2M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 39.2M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 21.0M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 21.0M | return; | 286 | 21.0M | } | 287 | 18.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 | 18.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 | 18.1M | #endif | 303 | 18.1M | } |
Unexecuted instantiation: unicode_formatter.c:Py_INCREF unicode_writer.c:Py_INCREF Line | Count | Source | 252 | 8.01k | { | 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.01k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 8.01k | 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 | 8.01k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 8.01k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 8.01k | #endif | 303 | 8.01k | } |
Unexecuted instantiation: unicodectype.c:Py_INCREF unicodeobject.c:Py_INCREF Line | Count | Source | 252 | 681M | { | 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 | 681M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 681M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 601M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 601M | return; | 286 | 601M | } | 287 | 79.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 | 79.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 | 79.7M | #endif | 303 | 79.7M | } |
Unexecuted instantiation: unionobject.c:Py_INCREF weakrefobject.c:Py_INCREF Line | Count | Source | 252 | 304k | { | 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 | 304k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 304k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 1.83k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 1.83k | return; | 286 | 1.83k | } | 287 | 303k | 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 | 303k | _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 | 303k | #endif | 303 | 303k | } |
Line | Count | Source | 252 | 77.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 | 77.1k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 77.1k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 28.0k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 28.0k | return; | 286 | 28.0k | } | 287 | 49.1k | 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.1k | _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.1k | #endif | 303 | 49.1k | } |
Line | Count | Source | 252 | 65.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 | 65.6M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 65.6M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 24.2M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 24.2M | return; | 286 | 24.2M | } | 287 | 41.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 | 41.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 | 41.3M | #endif | 303 | 41.3M | } |
Line | Count | Source | 252 | 1.46G | { | 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.46G | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 1.46G | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 795M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 795M | return; | 286 | 795M | } | 287 | 672M | 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 | 672M | _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 | 672M | #endif | 303 | 672M | } |
Line | Count | Source | 252 | 2.69M | { | 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.69M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 2.69M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 319k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 319k | return; | 286 | 319k | } | 287 | 2.37M | 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.37M | _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.37M | #endif | 303 | 2.37M | } |
Line | Count | Source | 252 | 3.14k | { | 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.14k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 3.14k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 3.14k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 3.14k | return; | 286 | 3.14k | } | 287 | 3 | 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 | _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 | #endif | 303 | 3 | } |
Line | Count | Source | 252 | 127k | { | 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 | 127k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 127k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 55.6k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 55.6k | return; | 286 | 55.6k | } | 287 | 71.4k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 71.4k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 71.4k | #endif | 303 | 71.4k | } |
Line | Count | Source | 252 | 31 | { | 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 | 31 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 31 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 8 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 8 | return; | 286 | 8 | } | 287 | 23 | 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 | 23 | _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 | 23 | #endif | 303 | 23 | } |
Line | Count | Source | 252 | 62.2M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 62.2M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 62.2M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 30.4M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 30.4M | return; | 286 | 30.4M | } | 287 | 31.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 | 31.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 | 31.8M | #endif | 303 | 31.8M | } |
Line | Count | Source | 252 | 107k | { | 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 | 107k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 107k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 53.4k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 53.4k | return; | 286 | 53.4k | } | 287 | 54.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 | 54.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 | 54.3k | #endif | 303 | 54.3k | } |
Line | Count | Source | 252 | 15.7M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 15.7M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 15.7M | 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 | 15.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 | 15.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 | 15.7M | #endif | 303 | 15.7M | } |
Unexecuted instantiation: future.c:Py_INCREF Line | Count | Source | 252 | 314M | { | 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 | 314M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 314M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 248M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 248M | return; | 286 | 248M | } | 287 | 65.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 | 65.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 | 65.7M | #endif | 303 | 65.7M | } |
Unexecuted instantiation: gc_gil.c:Py_INCREF Line | Count | Source | 252 | 867k | { | 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 | 867k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 867k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 154k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 154k | return; | 286 | 154k | } | 287 | 713k | 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 | 713k | _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 | 713k | #endif | 303 | 713k | } |
Unexecuted instantiation: ceval_gil.c:Py_INCREF Unexecuted instantiation: hamt.c:Py_INCREF Unexecuted instantiation: hashtable.c:Py_INCREF Line | Count | Source | 252 | 1.29M | { | 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.29M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 1.29M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 407k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 407k | return; | 286 | 407k | } | 287 | 883k | 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 | 883k | _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 | 883k | #endif | 303 | 883k | } |
Line | Count | Source | 252 | 706 | { | 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 | 706 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 706 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 556 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 556 | return; | 286 | 556 | } | 287 | 150 | 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 | 150 | _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 | 150 | #endif | 303 | 150 | } |
Line | Count | Source | 252 | 374 | { | 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 | 374 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 374 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 374 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 374 | return; | 286 | 374 | } | 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 | 25.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 | 25.5k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 25.5k | 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 | 25.5k | 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 | 25.5k | _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 | 25.5k | #endif | 303 | 25.5k | } |
Unexecuted instantiation: legacy_tracing.c:Py_INCREF Unexecuted instantiation: lock.c:Py_INCREF Line | Count | Source | 252 | 434k | { | 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 | 434k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 434k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 378k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 378k | return; | 286 | 378k | } | 287 | 55.7k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 55.7k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 55.7k | #endif | 303 | 55.7k | } |
Line | Count | Source | 252 | 319k | { | 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 | 319k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 319k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 21.8k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 21.8k | return; | 286 | 21.8k | } | 287 | 297k | 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 | 297k | _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 | 297k | #endif | 303 | 297k | } |
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 | 22 | { | 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 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 22 | 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 | 22 | 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 | _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 | #endif | 303 | 22 | } |
Unexecuted instantiation: pymath.c:Py_INCREF Line | Count | Source | 252 | 6.72k | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 6.72k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 6.72k | 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 | 6.72k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 6.72k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 6.72k | #endif | 303 | 6.72k | } |
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 | 321k | { | 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 | 321k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 321k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 320k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 320k | return; | 286 | 320k | } | 287 | 779 | 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 | 779 | _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 | 779 | #endif | 303 | 779 | } |
Line | Count | Source | 252 | 1.82k | { | 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.82k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 1.82k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 1.19k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 1.19k | return; | 286 | 1.19k | } | 287 | 636 | 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 | 636 | _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 | 636 | #endif | 303 | 636 | } |
Unexecuted instantiation: thread.c:Py_INCREF Line | Count | Source | 252 | 33.1M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 33.1M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 33.1M | 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 | 33.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 | 33.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 | 33.1M | #endif | 303 | 33.1M | } |
Unexecuted instantiation: tracemalloc.c:Py_INCREF Unexecuted instantiation: getopt.c:Py_INCREF Unexecuted instantiation: pystrcmp.c:Py_INCREF Unexecuted instantiation: pystrtod.c:Py_INCREF Unexecuted instantiation: pystrhex.c:Py_INCREF Unexecuted instantiation: dtoa.c:Py_INCREF Unexecuted instantiation: fileutils.c:Py_INCREF Unexecuted instantiation: suggestions.c:Py_INCREF Unexecuted instantiation: perf_trampoline.c:Py_INCREF Unexecuted instantiation: perf_jit_trampoline.c:Py_INCREF Unexecuted instantiation: remote_debugging.c:Py_INCREF Unexecuted instantiation: dynload_shlib.c:Py_INCREF Unexecuted instantiation: config.c:Py_INCREF Unexecuted instantiation: gcmodule.c:Py_INCREF Unexecuted instantiation: _asynciomodule.c:Py_INCREF Unexecuted instantiation: atexitmodule.c:Py_INCREF Unexecuted instantiation: faulthandler.c:Py_INCREF Line | Count | Source | 252 | 45.3k | { | 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.3k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 45.3k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 132 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 132 | return; | 286 | 132 | } | 287 | 45.2k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 45.2k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 45.2k | #endif | 303 | 45.2k | } |
Line | Count | Source | 252 | 1.40k | { | 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.40k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 1.40k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 1.40k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 1.40k | return; | 286 | 1.40k | } | 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 | 148 | { | 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 | 148 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 148 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 104 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 104 | return; | 286 | 104 | } | 287 | 44 | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 44 | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 44 | #endif | 303 | 44 | } |
Unexecuted instantiation: _codecsmodule.c:Py_INCREF _collectionsmodule.c:Py_INCREF Line | Count | Source | 252 | 23.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 | 23.4M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 23.4M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 20.5M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 20.5M | return; | 286 | 20.5M | } | 287 | 2.88M | 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.88M | _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.88M | #endif | 303 | 2.88M | } |
Unexecuted instantiation: errnomodule.c:Py_INCREF Line | Count | Source | 252 | 66 | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 66 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 66 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 66 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 66 | return; | 286 | 66 | } | 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 | 42.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 | 42.1k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 42.1k | 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 | 42.1k | 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 | 42.1k | _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 | 42.1k | #endif | 303 | 42.1k | } |
Unexecuted instantiation: fileio.c:Py_INCREF Line | Count | Source | 252 | 10.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 | 10.4k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 10.4k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 21 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 21 | return; | 286 | 21 | } | 287 | 10.4k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 10.4k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 10.4k | #endif | 303 | 10.4k | } |
Line | Count | Source | 252 | 2.47k | { | 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.47k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 2.47k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 3 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 3 | return; | 286 | 3 | } | 287 | 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 | 84.6k | { | 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 | 84.6k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 84.6k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 20.4k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 20.4k | return; | 286 | 20.4k | } | 287 | 64.2k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 64.2k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 64.2k | #endif | 303 | 64.2k | } |
Line | Count | Source | 252 | 16.3k | { | 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.3k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 16.3k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 47 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 47 | return; | 286 | 47 | } | 287 | 16.2k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 16.2k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 16.2k | #endif | 303 | 16.2k | } |
itertoolsmodule.c:Py_INCREF Line | Count | Source | 252 | 762 | { | 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 | 762 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 762 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 354 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 354 | return; | 286 | 354 | } | 287 | 408 | 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 | 408 | _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 | 408 | #endif | 303 | 408 | } |
Line | Count | Source | 252 | 240M | { | 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 | 240M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 240M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 63.5M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 63.5M | return; | 286 | 63.5M | } | 287 | 176M | 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 | 176M | _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 | 176M | #endif | 303 | 176M | } |
Unexecuted instantiation: _sysconfig.c:Py_INCREF _threadmodule.c:Py_INCREF Line | Count | Source | 252 | 2 | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 2 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 2 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 1 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 1 | return; | 286 | 1 | } | 287 | 1 | 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 | _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 | #endif | 303 | 1 | } |
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 | 13.6k | { | 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 | 13.6k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 13.6k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 13.5k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 13.5k | return; | 286 | 13.5k | } | 287 | 154 | 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 | 154 | _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 | 154 | #endif | 303 | 154 | } |
_functoolsmodule.c:Py_INCREF Line | Count | Source | 252 | 614 | { | 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 | 614 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 614 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 178 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 178 | return; | 286 | 178 | } | 287 | 436 | 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 | 436 | _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 | 436 | #endif | 303 | 436 | } |
Unexecuted instantiation: _localemodule.c:Py_INCREF Unexecuted instantiation: _opcode.c:Py_INCREF Line | Count | Source | 252 | 1.56M | { | 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.56M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 1.56M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 1.52M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 1.52M | return; | 286 | 1.52M | } | 287 | 32.5k | 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.5k | _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.5k | #endif | 303 | 32.5k | } |
Unexecuted instantiation: _stat.c:Py_INCREF Unexecuted instantiation: symtablemodule.c:Py_INCREF Unexecuted instantiation: pwdmodule.c:Py_INCREF Line | Count | Source | 252 | 242 | { | 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 | 242 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 242 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 242 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 242 | return; | 286 | 242 | } | 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 | 502M | { | 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 | 502M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 502M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 281M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 281M | return; | 286 | 281M | } | 287 | 220M | 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 | 220M | _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 | 220M | #endif | 303 | 220M | } |
Unexecuted instantiation: boolobject.c:Py_INCREF Unexecuted instantiation: bytes_methods.c:Py_INCREF bytearrayobject.c:Py_INCREF Line | Count | Source | 252 | 42 | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 42 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 42 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 0 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 0 | return; | 286 | 0 | } | 287 | 42 | 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 | 42 | _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 | 42 | #endif | 303 | 42 | } |
Unexecuted instantiation: capsule.c:Py_INCREF Line | Count | Source | 252 | 64.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 | 64.5k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 64.5k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 21.0k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 21.0k | return; | 286 | 21.0k | } | 287 | 43.4k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 43.4k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 43.4k | #endif | 303 | 43.4k | } |
Line | Count | Source | 252 | 39.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 | 39.6M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 39.6M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 10 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 10 | return; | 286 | 10 | } | 287 | 39.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 | 39.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 | 39.6M | #endif | 303 | 39.6M | } |
Line | Count | Source | 252 | 625k | { | 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 | 625k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 625k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 327k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 327k | return; | 286 | 327k | } | 287 | 297k | 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 | 297k | _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 | 297k | #endif | 303 | 297k | } |
complexobject.c:Py_INCREF Line | Count | Source | 252 | 4.06k | { | 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.06k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 4.06k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 4.06k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 4.06k | return; | 286 | 4.06k | } | 287 | 0 | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 0 | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 0 | #endif | 303 | 0 | } |
Line | Count | Source | 252 | 23.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 | 23.4M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 23.4M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 41.7k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 41.7k | return; | 286 | 41.7k | } | 287 | 23.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 | 23.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 | 23.3M | #endif | 303 | 23.3M | } |
Line | Count | Source | 252 | 106M | { | 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 | 106M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 106M | 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 | 106M | 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 | 106M | _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 | 106M | #endif | 303 | 106M | } |
Line | Count | Source | 252 | 46.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 | 46.8M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 46.8M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 46.7M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 46.7M | return; | 286 | 46.7M | } | 287 | 74.2k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 74.2k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 74.2k | #endif | 303 | 74.2k | } |
Unexecuted instantiation: fileobject.c:Py_INCREF Line | Count | Source | 252 | 24.2k | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 24.2k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 24.2k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 0 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 0 | return; | 286 | 0 | } | 287 | 24.2k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 24.2k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 24.2k | #endif | 303 | 24.2k | } |
Line | Count | Source | 252 | 85.1M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 85.1M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 85.1M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 43.7M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 43.7M | return; | 286 | 43.7M | } | 287 | 41.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 | 41.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 | 41.4M | #endif | 303 | 41.4M | } |
Unexecuted instantiation: interpolationobject.c:Py_INCREF Line | Count | Source | 252 | 1.08M | { | 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.08M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 1.08M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 541k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 541k | return; | 286 | 541k | } | 287 | 542k | 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 | 542k | _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 | 542k | #endif | 303 | 542k | } |
Line | Count | Source | 252 | 360 | { | 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 | 360 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 360 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 336 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 336 | return; | 286 | 336 | } | 287 | 24 | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 24 | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 24 | #endif | 303 | 24 | } |
Line | Count | Source | 252 | 300M | { | 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 | 300M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 300M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 6.57M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 6.57M | return; | 286 | 6.57M | } | 287 | 294M | 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 | 294M | _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 | 294M | #endif | 303 | 294M | } |
Unexecuted instantiation: namespaceobject.c:Py_INCREF Unexecuted instantiation: _contextvars.c:Py_INCREF Line | Count | Source | 252 | 430k | { | 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 | 430k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 430k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 217k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 217k | return; | 286 | 217k | } | 287 | 213k | 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 | 213k | _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 | 213k | #endif | 303 | 213k | } |
Unexecuted instantiation: Python-tokenize.c:Py_INCREF Unexecuted instantiation: asdl.c:Py_INCREF Line | Count | Source | 252 | 53.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 | 53.7k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 53.7k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 53.5k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 53.5k | return; | 286 | 53.5k | } | 287 | 155 | 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 | 155 | _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 | 155 | #endif | 303 | 155 | } |
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 | 111k | { | 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 | 111k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 111k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 49.7k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 49.7k | return; | 286 | 49.7k | } | 287 | 61.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 | 61.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 | 61.8k | #endif | 303 | 61.8k | } |
Line | Count | Source | 252 | 18.9k | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 18.9k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 18.9k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 153 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 153 | return; | 286 | 153 | } | 287 | 18.8k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 18.8k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 18.8k | #endif | 303 | 18.8k | } |
Unexecuted instantiation: pegen_errors.c:Py_INCREF Unexecuted instantiation: parser.c:Py_INCREF Unexecuted instantiation: buffer.c:Py_INCREF Unexecuted instantiation: lexer.c:Py_INCREF Unexecuted instantiation: state.c:Py_INCREF Unexecuted instantiation: readline_tokenizer.c:Py_INCREF Unexecuted instantiation: string_tokenizer.c:Py_INCREF Unexecuted instantiation: utf8_tokenizer.c:Py_INCREF Unexecuted instantiation: getcompiler.c:Py_INCREF Unexecuted instantiation: mystrtoul.c:Py_INCREF Unexecuted instantiation: token.c:Py_INCREF Unexecuted instantiation: action_helpers.c:Py_INCREF Unexecuted instantiation: string_parser.c:Py_INCREF |
304 | | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000 |
305 | 7.91G | # 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 | 6.05k | static inline void Py_DECREF(PyObject *op) { |
327 | 6.05k | # if Py_LIMITED_API+0 >= 0x030a00A7 |
328 | 6.05k | _Py_DecRef(op); |
329 | | # else |
330 | | Py_DecRef(op); |
331 | | # endif |
332 | 6.05k | } Line | Count | Source | 326 | 6.05k | static inline void Py_DECREF(PyObject *op) { | 327 | 6.05k | # if Py_LIMITED_API+0 >= 0x030a00A7 | 328 | 6.05k | _Py_DecRef(op); | 329 | | # else | 330 | | Py_DecRef(op); | 331 | | # endif | 332 | 6.05k | } |
Unexecuted instantiation: _stat.c:Py_DECREF |
333 | 6.05k | #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 | 6.72G | { |
412 | | // Non-limited C API and limited C API for Python 3.9 and older access |
413 | | // directly PyObject.ob_refcnt. |
414 | 6.72G | if (_Py_IsImmortal(op)) { |
415 | 2.86G | _Py_DECREF_IMMORTAL_STAT_INC(); |
416 | 2.86G | return; |
417 | 2.86G | } |
418 | 3.85G | _Py_DECREF_STAT_INC(); |
419 | 3.85G | if (--op->ob_refcnt == 0) { |
420 | 991M | _Py_Dealloc(op); |
421 | 991M | } |
422 | 3.85G | } Line | Count | Source | 411 | 4.57M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 4.57M | if (_Py_IsImmortal(op)) { | 415 | 4.35M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 4.35M | return; | 417 | 4.35M | } | 418 | 215k | _Py_DECREF_STAT_INC(); | 419 | 215k | if (--op->ob_refcnt == 0) { | 420 | 136k | _Py_Dealloc(op); | 421 | 136k | } | 422 | 215k | } |
Line | Count | Source | 411 | 153M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 153M | if (_Py_IsImmortal(op)) { | 415 | 68.2M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 68.2M | return; | 417 | 68.2M | } | 418 | 85.3M | _Py_DECREF_STAT_INC(); | 419 | 85.3M | if (--op->ob_refcnt == 0) { | 420 | 64.7M | _Py_Dealloc(op); | 421 | 64.7M | } | 422 | 85.3M | } |
Line | Count | Source | 411 | 117M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 117M | if (_Py_IsImmortal(op)) { | 415 | 44.7M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 44.7M | return; | 417 | 44.7M | } | 418 | 72.6M | _Py_DECREF_STAT_INC(); | 419 | 72.6M | if (--op->ob_refcnt == 0) { | 420 | 62.6M | _Py_Dealloc(op); | 421 | 62.6M | } | 422 | 72.6M | } |
genericaliasobject.c:Py_DECREF Line | Count | Source | 411 | 168 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 168 | if (_Py_IsImmortal(op)) { | 415 | 68 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 68 | return; | 417 | 68 | } | 418 | 100 | _Py_DECREF_STAT_INC(); | 419 | 100 | if (--op->ob_refcnt == 0) { | 420 | 84 | _Py_Dealloc(op); | 421 | 84 | } | 422 | 100 | } |
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 | 5 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 5 | return; | 417 | 5 | } | 418 | 3 | _Py_DECREF_STAT_INC(); | 419 | 3 | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 3 | } |
Line | Count | Source | 411 | 1.48G | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 1.48G | if (_Py_IsImmortal(op)) { | 415 | 409M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 409M | return; | 417 | 409M | } | 418 | 1.07G | _Py_DECREF_STAT_INC(); | 419 | 1.07G | if (--op->ob_refcnt == 0) { | 420 | 252M | _Py_Dealloc(op); | 421 | 252M | } | 422 | 1.07G | } |
Line | Count | Source | 411 | 4.78M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 4.78M | if (_Py_IsImmortal(op)) { | 415 | 4.33M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 4.33M | return; | 417 | 4.33M | } | 418 | 444k | _Py_DECREF_STAT_INC(); | 419 | 444k | if (--op->ob_refcnt == 0) { | 420 | 2.85k | _Py_Dealloc(op); | 421 | 2.85k | } | 422 | 444k | } |
Line | Count | Source | 411 | 1.06G | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 1.06G | if (_Py_IsImmortal(op)) { | 415 | 534M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 534M | return; | 417 | 534M | } | 418 | 530M | _Py_DECREF_STAT_INC(); | 419 | 530M | if (--op->ob_refcnt == 0) { | 420 | 85.2M | _Py_Dealloc(op); | 421 | 85.2M | } | 422 | 530M | } |
Line | Count | Source | 411 | 625k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 625k | if (_Py_IsImmortal(op)) { | 415 | 4 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 4 | return; | 417 | 4 | } | 418 | 625k | _Py_DECREF_STAT_INC(); | 419 | 625k | if (--op->ob_refcnt == 0) { | 420 | 312k | _Py_Dealloc(op); | 421 | 312k | } | 422 | 625k | } |
Line | Count | Source | 411 | 486k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 486k | if (_Py_IsImmortal(op)) { | 415 | 449k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 449k | return; | 417 | 449k | } | 418 | 37.1k | _Py_DECREF_STAT_INC(); | 419 | 37.1k | if (--op->ob_refcnt == 0) { | 420 | 47 | _Py_Dealloc(op); | 421 | 47 | } | 422 | 37.1k | } |
Line | Count | Source | 411 | 434M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 434M | if (_Py_IsImmortal(op)) { | 415 | 389M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 389M | return; | 417 | 389M | } | 418 | 44.9M | _Py_DECREF_STAT_INC(); | 419 | 44.9M | if (--op->ob_refcnt == 0) { | 420 | 318 | _Py_Dealloc(op); | 421 | 318 | } | 422 | 44.9M | } |
Unexecuted instantiation: obmalloc.c:Py_DECREF Unexecuted instantiation: picklebufobject.c:Py_DECREF Line | Count | Source | 411 | 37.2M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 37.2M | if (_Py_IsImmortal(op)) { | 415 | 35.5M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 35.5M | return; | 417 | 35.5M | } | 418 | 1.71M | _Py_DECREF_STAT_INC(); | 419 | 1.71M | if (--op->ob_refcnt == 0) { | 420 | 898k | _Py_Dealloc(op); | 421 | 898k | } | 422 | 1.71M | } |
Line | Count | Source | 411 | 1.14M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 1.14M | if (_Py_IsImmortal(op)) { | 415 | 405k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 405k | return; | 417 | 405k | } | 418 | 737k | _Py_DECREF_STAT_INC(); | 419 | 737k | if (--op->ob_refcnt == 0) { | 420 | 34.6k | _Py_Dealloc(op); | 421 | 34.6k | } | 422 | 737k | } |
Line | Count | Source | 411 | 100M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 100M | if (_Py_IsImmortal(op)) { | 415 | 73.3M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 73.3M | return; | 417 | 73.3M | } | 418 | 27.4M | _Py_DECREF_STAT_INC(); | 419 | 27.4M | if (--op->ob_refcnt == 0) { | 420 | 1.87M | _Py_Dealloc(op); | 421 | 1.87M | } | 422 | 27.4M | } |
Line | Count | Source | 411 | 119k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 119k | if (_Py_IsImmortal(op)) { | 415 | 30.8k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 30.8k | return; | 417 | 30.8k | } | 418 | 88.5k | _Py_DECREF_STAT_INC(); | 419 | 88.5k | if (--op->ob_refcnt == 0) { | 420 | 77.1k | _Py_Dealloc(op); | 421 | 77.1k | } | 422 | 88.5k | } |
templateobject.c:Py_DECREF Line | Count | Source | 411 | 4 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 4 | if (_Py_IsImmortal(op)) { | 415 | 2 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 2 | return; | 417 | 2 | } | 418 | 2 | _Py_DECREF_STAT_INC(); | 419 | 2 | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 2 | } |
Line | Count | Source | 411 | 664M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 664M | if (_Py_IsImmortal(op)) { | 415 | 364M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 364M | return; | 417 | 364M | } | 418 | 299M | _Py_DECREF_STAT_INC(); | 419 | 299M | if (--op->ob_refcnt == 0) { | 420 | 63.6M | _Py_Dealloc(op); | 421 | 63.6M | } | 422 | 299M | } |
Line | Count | Source | 411 | 372M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 372M | if (_Py_IsImmortal(op)) { | 415 | 48.3M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 48.3M | return; | 417 | 48.3M | } | 418 | 324M | _Py_DECREF_STAT_INC(); | 419 | 324M | if (--op->ob_refcnt == 0) { | 420 | 15.8M | _Py_Dealloc(op); | 421 | 15.8M | } | 422 | 324M | } |
Unexecuted instantiation: typevarobject.c:Py_DECREF unicode_format.c:Py_DECREF Line | Count | Source | 411 | 39.3M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 39.3M | if (_Py_IsImmortal(op)) { | 415 | 21.1M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 21.1M | return; | 417 | 21.1M | } | 418 | 18.2M | _Py_DECREF_STAT_INC(); | 419 | 18.2M | if (--op->ob_refcnt == 0) { | 420 | 40.2k | _Py_Dealloc(op); | 421 | 40.2k | } | 422 | 18.2M | } |
unicode_formatter.c:Py_DECREF Line | Count | Source | 411 | 256 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 256 | if (_Py_IsImmortal(op)) { | 415 | 192 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 192 | return; | 417 | 192 | } | 418 | 64 | _Py_DECREF_STAT_INC(); | 419 | 64 | if (--op->ob_refcnt == 0) { | 420 | 64 | _Py_Dealloc(op); | 421 | 64 | } | 422 | 64 | } |
unicode_writer.c:Py_DECREF Line | Count | Source | 411 | 14.4M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 14.4M | if (_Py_IsImmortal(op)) { | 415 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 0 | return; | 417 | 0 | } | 418 | 14.4M | _Py_DECREF_STAT_INC(); | 419 | 14.4M | if (--op->ob_refcnt == 0) { | 420 | 14.4M | _Py_Dealloc(op); | 421 | 14.4M | } | 422 | 14.4M | } |
Unexecuted instantiation: unicodectype.c:Py_DECREF unicodeobject.c:Py_DECREF Line | Count | Source | 411 | 175M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 175M | if (_Py_IsImmortal(op)) { | 415 | 114M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 114M | return; | 417 | 114M | } | 418 | 61.4M | _Py_DECREF_STAT_INC(); | 419 | 61.4M | if (--op->ob_refcnt == 0) { | 420 | 8.13M | _Py_Dealloc(op); | 421 | 8.13M | } | 422 | 61.4M | } |
Line | Count | Source | 411 | 1.38k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 1.38k | if (_Py_IsImmortal(op)) { | 415 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 0 | return; | 417 | 0 | } | 418 | 1.38k | _Py_DECREF_STAT_INC(); | 419 | 1.38k | if (--op->ob_refcnt == 0) { | 420 | 1.38k | _Py_Dealloc(op); | 421 | 1.38k | } | 422 | 1.38k | } |
weakrefobject.c:Py_DECREF Line | Count | Source | 411 | 16.4k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 16.4k | if (_Py_IsImmortal(op)) { | 415 | 8.66k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 8.66k | return; | 417 | 8.66k | } | 418 | 7.82k | _Py_DECREF_STAT_INC(); | 419 | 7.82k | if (--op->ob_refcnt == 0) { | 420 | 7.41k | _Py_Dealloc(op); | 421 | 7.41k | } | 422 | 7.82k | } |
Line | Count | Source | 411 | 230k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 230k | if (_Py_IsImmortal(op)) { | 415 | 55.8k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 55.8k | return; | 417 | 55.8k | } | 418 | 174k | _Py_DECREF_STAT_INC(); | 419 | 174k | if (--op->ob_refcnt == 0) { | 420 | 42.4k | _Py_Dealloc(op); | 421 | 42.4k | } | 422 | 174k | } |
Line | Count | Source | 411 | 141M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 141M | if (_Py_IsImmortal(op)) { | 415 | 76.1M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 76.1M | return; | 417 | 76.1M | } | 418 | 64.9M | _Py_DECREF_STAT_INC(); | 419 | 64.9M | if (--op->ob_refcnt == 0) { | 420 | 38.0M | _Py_Dealloc(op); | 421 | 38.0M | } | 422 | 64.9M | } |
Line | Count | Source | 411 | 6.34k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 6.34k | if (_Py_IsImmortal(op)) { | 415 | 588 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 588 | return; | 417 | 588 | } | 418 | 5.75k | _Py_DECREF_STAT_INC(); | 419 | 5.75k | if (--op->ob_refcnt == 0) { | 420 | 661 | _Py_Dealloc(op); | 421 | 661 | } | 422 | 5.75k | } |
Line | Count | Source | 411 | 6.12M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 6.12M | if (_Py_IsImmortal(op)) { | 415 | 2.29M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 2.29M | return; | 417 | 2.29M | } | 418 | 3.82M | _Py_DECREF_STAT_INC(); | 419 | 3.82M | if (--op->ob_refcnt == 0) { | 420 | 1.78M | _Py_Dealloc(op); | 421 | 1.78M | } | 422 | 3.82M | } |
Line | Count | Source | 411 | 180k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 180k | if (_Py_IsImmortal(op)) { | 415 | 160k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 160k | return; | 417 | 160k | } | 418 | 19.5k | _Py_DECREF_STAT_INC(); | 419 | 19.5k | if (--op->ob_refcnt == 0) { | 420 | 1.33k | _Py_Dealloc(op); | 421 | 1.33k | } | 422 | 19.5k | } |
Line | Count | Source | 411 | 693k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 693k | if (_Py_IsImmortal(op)) { | 415 | 368k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 368k | return; | 417 | 368k | } | 418 | 325k | _Py_DECREF_STAT_INC(); | 419 | 325k | if (--op->ob_refcnt == 0) { | 420 | 111k | _Py_Dealloc(op); | 421 | 111k | } | 422 | 325k | } |
Line | Count | Source | 411 | 44 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 44 | if (_Py_IsImmortal(op)) { | 415 | 22 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 22 | return; | 417 | 22 | } | 418 | 22 | _Py_DECREF_STAT_INC(); | 419 | 22 | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 22 | } |
Line | Count | Source | 411 | 72.0M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 72.0M | if (_Py_IsImmortal(op)) { | 415 | 30.4M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 30.4M | return; | 417 | 30.4M | } | 418 | 41.6M | _Py_DECREF_STAT_INC(); | 419 | 41.6M | if (--op->ob_refcnt == 0) { | 420 | 14.2M | _Py_Dealloc(op); | 421 | 14.2M | } | 422 | 41.6M | } |
Line | Count | Source | 411 | 80.2k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 80.2k | if (_Py_IsImmortal(op)) { | 415 | 45.7k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 45.7k | return; | 417 | 45.7k | } | 418 | 34.4k | _Py_DECREF_STAT_INC(); | 419 | 34.4k | if (--op->ob_refcnt == 0) { | 420 | 56 | _Py_Dealloc(op); | 421 | 56 | } | 422 | 34.4k | } |
Line | Count | Source | 411 | 29.0M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 29.0M | if (_Py_IsImmortal(op)) { | 415 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 0 | return; | 417 | 0 | } | 418 | 29.0M | _Py_DECREF_STAT_INC(); | 419 | 29.0M | if (--op->ob_refcnt == 0) { | 420 | 13.6M | _Py_Dealloc(op); | 421 | 13.6M | } | 422 | 29.0M | } |
Unexecuted instantiation: future.c:Py_DECREF Line | Count | Source | 411 | 619k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 619k | if (_Py_IsImmortal(op)) { | 415 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 0 | return; | 417 | 0 | } | 418 | 619k | _Py_DECREF_STAT_INC(); | 419 | 619k | if (--op->ob_refcnt == 0) { | 420 | 344k | _Py_Dealloc(op); | 421 | 344k | } | 422 | 619k | } |
Unexecuted instantiation: gc_gil.c:Py_DECREF Line | Count | Source | 411 | 1.83M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 1.83M | if (_Py_IsImmortal(op)) { | 415 | 1.05M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 1.05M | return; | 417 | 1.05M | } | 418 | 777k | _Py_DECREF_STAT_INC(); | 419 | 777k | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 777k | } |
Unexecuted instantiation: ceval_gil.c:Py_DECREF Unexecuted instantiation: hamt.c:Py_DECREF Unexecuted instantiation: hashtable.c:Py_DECREF Line | Count | Source | 411 | 1.77M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 1.77M | if (_Py_IsImmortal(op)) { | 415 | 408k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 408k | return; | 417 | 408k | } | 418 | 1.36M | _Py_DECREF_STAT_INC(); | 419 | 1.36M | if (--op->ob_refcnt == 0) { | 420 | 11.8k | _Py_Dealloc(op); | 421 | 11.8k | } | 422 | 1.36M | } |
Line | Count | Source | 411 | 1.59k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 1.59k | if (_Py_IsImmortal(op)) { | 415 | 641 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 641 | return; | 417 | 641 | } | 418 | 955 | _Py_DECREF_STAT_INC(); | 419 | 955 | if (--op->ob_refcnt == 0) { | 420 | 614 | _Py_Dealloc(op); | 421 | 614 | } | 422 | 955 | } |
Line | Count | Source | 411 | 3.03k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 3.03k | if (_Py_IsImmortal(op)) { | 415 | 2.44k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 2.44k | return; | 417 | 2.44k | } | 418 | 594 | _Py_DECREF_STAT_INC(); | 419 | 594 | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 594 | } |
instrumentation.c:Py_DECREF Line | Count | Source | 411 | 528 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 528 | if (_Py_IsImmortal(op)) { | 415 | 330 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 330 | return; | 417 | 330 | } | 418 | 198 | _Py_DECREF_STAT_INC(); | 419 | 198 | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 198 | } |
instruction_sequence.c:Py_DECREF Line | Count | Source | 411 | 1 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 1 | if (_Py_IsImmortal(op)) { | 415 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 0 | return; | 417 | 0 | } | 418 | 1 | _Py_DECREF_STAT_INC(); | 419 | 1 | if (--op->ob_refcnt == 0) { | 420 | 1 | _Py_Dealloc(op); | 421 | 1 | } | 422 | 1 | } |
Line | Count | Source | 411 | 39.9k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 39.9k | if (_Py_IsImmortal(op)) { | 415 | 22.7k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 22.7k | return; | 417 | 22.7k | } | 418 | 17.2k | _Py_DECREF_STAT_INC(); | 419 | 17.2k | if (--op->ob_refcnt == 0) { | 420 | 174 | _Py_Dealloc(op); | 421 | 174 | } | 422 | 17.2k | } |
Unexecuted instantiation: legacy_tracing.c:Py_DECREF Unexecuted instantiation: lock.c:Py_DECREF Line | Count | Source | 411 | 423k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 423k | if (_Py_IsImmortal(op)) { | 415 | 184k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 184k | return; | 417 | 184k | } | 418 | 238k | _Py_DECREF_STAT_INC(); | 419 | 238k | if (--op->ob_refcnt == 0) { | 420 | 2.70k | _Py_Dealloc(op); | 421 | 2.70k | } | 422 | 238k | } |
Line | Count | Source | 411 | 25.1k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 25.1k | if (_Py_IsImmortal(op)) { | 415 | 16.5k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 16.5k | return; | 417 | 16.5k | } | 418 | 8.55k | _Py_DECREF_STAT_INC(); | 419 | 8.55k | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 8.55k | } |
Unexecuted instantiation: mysnprintf.c:Py_DECREF Unexecuted instantiation: parking_lot.c:Py_DECREF Unexecuted instantiation: preconfig.c:Py_DECREF Line | Count | Source | 411 | 4.38M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 4.38M | if (_Py_IsImmortal(op)) { | 415 | 3.70M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 3.70M | return; | 417 | 3.70M | } | 418 | 681k | _Py_DECREF_STAT_INC(); | 419 | 681k | if (--op->ob_refcnt == 0) { | 420 | 21.5k | _Py_Dealloc(op); | 421 | 21.5k | } | 422 | 681k | } |
Unexecuted instantiation: pyctype.c:Py_DECREF Unexecuted instantiation: pyhash.c:Py_DECREF Line | Count | Source | 411 | 792 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 792 | if (_Py_IsImmortal(op)) { | 415 | 154 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 154 | return; | 417 | 154 | } | 418 | 638 | _Py_DECREF_STAT_INC(); | 419 | 638 | if (--op->ob_refcnt == 0) { | 420 | 66 | _Py_Dealloc(op); | 421 | 66 | } | 422 | 638 | } |
Unexecuted instantiation: pymath.c:Py_DECREF Unexecuted instantiation: pystate.c:Py_DECREF Line | Count | Source | 411 | 241 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 241 | if (_Py_IsImmortal(op)) { | 415 | 44 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 44 | return; | 417 | 44 | } | 418 | 197 | _Py_DECREF_STAT_INC(); | 419 | 197 | if (--op->ob_refcnt == 0) { | 420 | 153 | _Py_Dealloc(op); | 421 | 153 | } | 422 | 197 | } |
Unexecuted instantiation: pytime.c:Py_DECREF Unexecuted instantiation: qsbr.c:Py_DECREF Unexecuted instantiation: bootstrap_hash.c:Py_DECREF Line | Count | Source | 411 | 553k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 553k | if (_Py_IsImmortal(op)) { | 415 | 104k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 104k | return; | 417 | 104k | } | 418 | 449k | _Py_DECREF_STAT_INC(); | 419 | 449k | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 449k | } |
Line | Count | Source | 411 | 935k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 935k | if (_Py_IsImmortal(op)) { | 415 | 434k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 434k | return; | 417 | 434k | } | 418 | 501k | _Py_DECREF_STAT_INC(); | 419 | 501k | if (--op->ob_refcnt == 0) { | 420 | 234k | _Py_Dealloc(op); | 421 | 234k | } | 422 | 501k | } |
Line | Count | Source | 411 | 6.12k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 6.12k | if (_Py_IsImmortal(op)) { | 415 | 1.49k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 1.49k | return; | 417 | 1.49k | } | 418 | 4.63k | _Py_DECREF_STAT_INC(); | 419 | 4.63k | if (--op->ob_refcnt == 0) { | 420 | 3.55k | _Py_Dealloc(op); | 421 | 3.55k | } | 422 | 4.63k | } |
Unexecuted instantiation: thread.c:Py_DECREF Line | Count | Source | 411 | 66.3M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 66.3M | if (_Py_IsImmortal(op)) { | 415 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 0 | return; | 417 | 0 | } | 418 | 66.3M | _Py_DECREF_STAT_INC(); | 419 | 66.3M | if (--op->ob_refcnt == 0) { | 420 | 16.3M | _Py_Dealloc(op); | 421 | 16.3M | } | 422 | 66.3M | } |
Unexecuted instantiation: tracemalloc.c:Py_DECREF Unexecuted instantiation: getopt.c:Py_DECREF Unexecuted instantiation: pystrcmp.c:Py_DECREF Unexecuted instantiation: pystrtod.c:Py_DECREF Unexecuted instantiation: pystrhex.c:Py_DECREF Unexecuted instantiation: dtoa.c:Py_DECREF Line | Count | Source | 411 | 10.3k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 10.3k | if (_Py_IsImmortal(op)) { | 415 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 0 | return; | 417 | 0 | } | 418 | 10.3k | _Py_DECREF_STAT_INC(); | 419 | 10.3k | if (--op->ob_refcnt == 0) { | 420 | 10.3k | _Py_Dealloc(op); | 421 | 10.3k | } | 422 | 10.3k | } |
Unexecuted instantiation: suggestions.c:Py_DECREF Unexecuted instantiation: perf_trampoline.c:Py_DECREF Unexecuted instantiation: perf_jit_trampoline.c:Py_DECREF Unexecuted instantiation: remote_debugging.c:Py_DECREF Unexecuted instantiation: dynload_shlib.c:Py_DECREF Unexecuted instantiation: config.c:Py_DECREF Unexecuted instantiation: gcmodule.c:Py_DECREF Unexecuted instantiation: _asynciomodule.c:Py_DECREF Unexecuted instantiation: atexitmodule.c:Py_DECREF Unexecuted instantiation: faulthandler.c:Py_DECREF Line | Count | Source | 411 | 30.1k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 30.1k | if (_Py_IsImmortal(op)) { | 415 | 3.74k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 3.74k | return; | 417 | 3.74k | } | 418 | 26.4k | _Py_DECREF_STAT_INC(); | 419 | 26.4k | if (--op->ob_refcnt == 0) { | 420 | 7.28k | _Py_Dealloc(op); | 421 | 7.28k | } | 422 | 26.4k | } |
Line | Count | Source | 411 | 44 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 44 | if (_Py_IsImmortal(op)) { | 415 | 22 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 22 | return; | 417 | 22 | } | 418 | 22 | _Py_DECREF_STAT_INC(); | 419 | 22 | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 22 | } |
Unexecuted instantiation: _tracemalloc.c:Py_DECREF Unexecuted instantiation: _suggestions.c:Py_DECREF _datetimemodule.c:Py_DECREF Line | Count | Source | 411 | 360 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 360 | if (_Py_IsImmortal(op)) { | 415 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 0 | return; | 417 | 0 | } | 418 | 360 | _Py_DECREF_STAT_INC(); | 419 | 360 | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 360 | } |
Unexecuted instantiation: _codecsmodule.c:Py_DECREF _collectionsmodule.c:Py_DECREF Line | Count | Source | 411 | 129k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 129k | if (_Py_IsImmortal(op)) { | 415 | 63.0k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 63.0k | return; | 417 | 63.0k | } | 418 | 66.8k | _Py_DECREF_STAT_INC(); | 419 | 66.8k | if (--op->ob_refcnt == 0) { | 420 | 50.4k | _Py_Dealloc(op); | 421 | 50.4k | } | 422 | 66.8k | } |
Line | Count | Source | 411 | 7.71k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 7.71k | if (_Py_IsImmortal(op)) { | 415 | 2.68k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 2.68k | return; | 417 | 2.68k | } | 418 | 5.02k | _Py_DECREF_STAT_INC(); | 419 | 5.02k | if (--op->ob_refcnt == 0) { | 420 | 2.54k | _Py_Dealloc(op); | 421 | 2.54k | } | 422 | 5.02k | } |
Line | Count | Source | 411 | 125k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 125k | if (_Py_IsImmortal(op)) { | 415 | 106k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 106k | return; | 417 | 106k | } | 418 | 19.6k | _Py_DECREF_STAT_INC(); | 419 | 19.6k | if (--op->ob_refcnt == 0) { | 420 | 9.81k | _Py_Dealloc(op); | 421 | 9.81k | } | 422 | 19.6k | } |
Line | Count | Source | 411 | 4.14k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 4.14k | if (_Py_IsImmortal(op)) { | 415 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 0 | return; | 417 | 0 | } | 418 | 4.14k | _Py_DECREF_STAT_INC(); | 419 | 4.14k | if (--op->ob_refcnt == 0) { | 420 | 2.67k | _Py_Dealloc(op); | 421 | 2.67k | } | 422 | 4.14k | } |
Line | Count | Source | 411 | 29.4k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 29.4k | if (_Py_IsImmortal(op)) { | 415 | 9.83k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 9.83k | return; | 417 | 9.83k | } | 418 | 19.6k | _Py_DECREF_STAT_INC(); | 419 | 19.6k | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 19.6k | } |
Line | Count | Source | 411 | 7.47k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 7.47k | if (_Py_IsImmortal(op)) { | 415 | 1.37k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 1.37k | return; | 417 | 1.37k | } | 418 | 6.10k | _Py_DECREF_STAT_INC(); | 419 | 6.10k | if (--op->ob_refcnt == 0) { | 420 | 2.42k | _Py_Dealloc(op); | 421 | 2.42k | } | 422 | 6.10k | } |
Line | Count | Source | 411 | 49.3k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 49.3k | if (_Py_IsImmortal(op)) { | 415 | 32.9k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 32.9k | return; | 417 | 32.9k | } | 418 | 16.4k | _Py_DECREF_STAT_INC(); | 419 | 16.4k | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 16.4k | } |
Line | Count | Source | 411 | 304k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 304k | if (_Py_IsImmortal(op)) { | 415 | 158k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 158k | return; | 417 | 158k | } | 418 | 145k | _Py_DECREF_STAT_INC(); | 419 | 145k | if (--op->ob_refcnt == 0) { | 420 | 32.6k | _Py_Dealloc(op); | 421 | 32.6k | } | 422 | 145k | } |
itertoolsmodule.c:Py_DECREF Line | Count | Source | 411 | 930 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 930 | if (_Py_IsImmortal(op)) { | 415 | 180 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 180 | return; | 417 | 180 | } | 418 | 750 | _Py_DECREF_STAT_INC(); | 419 | 750 | if (--op->ob_refcnt == 0) { | 420 | 228 | _Py_Dealloc(op); | 421 | 228 | } | 422 | 750 | } |
Line | Count | Source | 411 | 414M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 414M | if (_Py_IsImmortal(op)) { | 415 | 114M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 114M | return; | 417 | 114M | } | 418 | 299M | _Py_DECREF_STAT_INC(); | 419 | 299M | if (--op->ob_refcnt == 0) { | 420 | 10.0M | _Py_Dealloc(op); | 421 | 10.0M | } | 422 | 299M | } |
Unexecuted instantiation: _sysconfig.c:Py_DECREF _threadmodule.c:Py_DECREF Line | Count | Source | 411 | 6.89k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 6.89k | if (_Py_IsImmortal(op)) { | 415 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 0 | return; | 417 | 0 | } | 418 | 6.89k | _Py_DECREF_STAT_INC(); | 419 | 6.89k | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 6.89k | } |
Unexecuted instantiation: timemodule.c:Py_DECREF Unexecuted instantiation: _typesmodule.c:Py_DECREF Unexecuted instantiation: _typingmodule.c:Py_DECREF Unexecuted instantiation: _weakref.c:Py_DECREF Line | Count | Source | 411 | 41.9k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 41.9k | if (_Py_IsImmortal(op)) { | 415 | 14.6k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 14.6k | return; | 417 | 14.6k | } | 418 | 27.2k | _Py_DECREF_STAT_INC(); | 419 | 27.2k | if (--op->ob_refcnt == 0) { | 420 | 3.67k | _Py_Dealloc(op); | 421 | 3.67k | } | 422 | 27.2k | } |
_functoolsmodule.c:Py_DECREF Line | Count | Source | 411 | 298 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 298 | if (_Py_IsImmortal(op)) { | 415 | 46 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 46 | return; | 417 | 46 | } | 418 | 252 | _Py_DECREF_STAT_INC(); | 419 | 252 | if (--op->ob_refcnt == 0) { | 420 | 84 | _Py_Dealloc(op); | 421 | 84 | } | 422 | 252 | } |
Unexecuted instantiation: _localemodule.c:Py_DECREF Unexecuted instantiation: _opcode.c:Py_DECREF Line | Count | Source | 411 | 610k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 610k | if (_Py_IsImmortal(op)) { | 415 | 305k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 305k | return; | 417 | 305k | } | 418 | 305k | _Py_DECREF_STAT_INC(); | 419 | 305k | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 305k | } |
Unexecuted instantiation: symtablemodule.c:Py_DECREF Unexecuted instantiation: pwdmodule.c:Py_DECREF Line | Count | Source | 411 | 726 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 726 | if (_Py_IsImmortal(op)) { | 415 | 264 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 264 | return; | 417 | 264 | } | 418 | 462 | _Py_DECREF_STAT_INC(); | 419 | 462 | if (--op->ob_refcnt == 0) { | 420 | 22 | _Py_Dealloc(op); | 421 | 22 | } | 422 | 462 | } |
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 | 22.8k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 22.8k | if (_Py_IsImmortal(op)) { | 415 | 784 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 784 | return; | 417 | 784 | } | 418 | 22.0k | _Py_DECREF_STAT_INC(); | 419 | 22.0k | if (--op->ob_refcnt == 0) { | 420 | 15.8k | _Py_Dealloc(op); | 421 | 15.8k | } | 422 | 22.0k | } |
Unexecuted instantiation: myreadline.c:Py_DECREF Line | Count | Source | 411 | 396M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 396M | if (_Py_IsImmortal(op)) { | 415 | 254M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 254M | return; | 417 | 254M | } | 418 | 141M | _Py_DECREF_STAT_INC(); | 419 | 141M | if (--op->ob_refcnt == 0) { | 420 | 1.82M | _Py_Dealloc(op); | 421 | 1.82M | } | 422 | 141M | } |
Unexecuted instantiation: boolobject.c:Py_DECREF Unexecuted instantiation: bytes_methods.c:Py_DECREF bytearrayobject.c:Py_DECREF Line | Count | Source | 411 | 22 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 22 | if (_Py_IsImmortal(op)) { | 415 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 0 | return; | 417 | 0 | } | 418 | 22 | _Py_DECREF_STAT_INC(); | 419 | 22 | if (--op->ob_refcnt == 0) { | 420 | 22 | _Py_Dealloc(op); | 421 | 22 | } | 422 | 22 | } |
Line | Count | Source | 411 | 10 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 10 | if (_Py_IsImmortal(op)) { | 415 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 0 | return; | 417 | 0 | } | 418 | 10 | _Py_DECREF_STAT_INC(); | 419 | 10 | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 10 | } |
Line | Count | Source | 411 | 404k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 404k | if (_Py_IsImmortal(op)) { | 415 | 26.2k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 26.2k | return; | 417 | 26.2k | } | 418 | 378k | _Py_DECREF_STAT_INC(); | 419 | 378k | if (--op->ob_refcnt == 0) { | 420 | 286k | _Py_Dealloc(op); | 421 | 286k | } | 422 | 378k | } |
Line | Count | Source | 411 | 39.6M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 39.6M | if (_Py_IsImmortal(op)) { | 415 | 10 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 10 | return; | 417 | 10 | } | 418 | 39.6M | _Py_DECREF_STAT_INC(); | 419 | 39.6M | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 39.6M | } |
Line | Count | Source | 411 | 132k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 132k | if (_Py_IsImmortal(op)) { | 415 | 53.2k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 53.2k | return; | 417 | 53.2k | } | 418 | 79.4k | _Py_DECREF_STAT_INC(); | 419 | 79.4k | if (--op->ob_refcnt == 0) { | 420 | 39.0k | _Py_Dealloc(op); | 421 | 39.0k | } | 422 | 79.4k | } |
Unexecuted instantiation: complexobject.c:Py_DECREF Line | Count | Source | 411 | 83.7M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 83.7M | if (_Py_IsImmortal(op)) { | 415 | 10.8M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 10.8M | return; | 417 | 10.8M | } | 418 | 72.8M | _Py_DECREF_STAT_INC(); | 419 | 72.8M | if (--op->ob_refcnt == 0) { | 420 | 43.1M | _Py_Dealloc(op); | 421 | 43.1M | } | 422 | 72.8M | } |
Line | Count | Source | 411 | 273M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 273M | if (_Py_IsImmortal(op)) { | 415 | 110M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 110M | return; | 417 | 110M | } | 418 | 163M | _Py_DECREF_STAT_INC(); | 419 | 163M | if (--op->ob_refcnt == 0) { | 420 | 59.8M | _Py_Dealloc(op); | 421 | 59.8M | } | 422 | 163M | } |
Line | Count | Source | 411 | 60.5M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 60.5M | if (_Py_IsImmortal(op)) { | 415 | 60.5M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 60.5M | return; | 417 | 60.5M | } | 418 | 73.1k | _Py_DECREF_STAT_INC(); | 419 | 73.1k | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 73.1k | } |
Line | Count | Source | 411 | 13.6k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 13.6k | if (_Py_IsImmortal(op)) { | 415 | 12.4k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 12.4k | return; | 417 | 12.4k | } | 418 | 1.20k | _Py_DECREF_STAT_INC(); | 419 | 1.20k | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 1.20k | } |
Line | Count | Source | 411 | 15.3M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 15.3M | if (_Py_IsImmortal(op)) { | 415 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 0 | return; | 417 | 0 | } | 418 | 15.3M | _Py_DECREF_STAT_INC(); | 419 | 15.3M | if (--op->ob_refcnt == 0) { | 420 | 25.8k | _Py_Dealloc(op); | 421 | 25.8k | } | 422 | 15.3M | } |
Line | Count | Source | 411 | 131M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 131M | if (_Py_IsImmortal(op)) { | 415 | 75.0M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 75.0M | return; | 417 | 75.0M | } | 418 | 56.6M | _Py_DECREF_STAT_INC(); | 419 | 56.6M | if (--op->ob_refcnt == 0) { | 420 | 463k | _Py_Dealloc(op); | 421 | 463k | } | 422 | 56.6M | } |
interpolationobject.c:Py_DECREF Line | Count | Source | 411 | 22 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 22 | if (_Py_IsImmortal(op)) { | 415 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 0 | return; | 417 | 0 | } | 418 | 22 | _Py_DECREF_STAT_INC(); | 419 | 22 | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 22 | } |
Line | Count | Source | 411 | 1.62M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 1.62M | if (_Py_IsImmortal(op)) { | 415 | 1.08M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 1.08M | return; | 417 | 1.08M | } | 418 | 542k | _Py_DECREF_STAT_INC(); | 419 | 542k | if (--op->ob_refcnt == 0) { | 420 | 541k | _Py_Dealloc(op); | 421 | 541k | } | 422 | 542k | } |
Line | Count | Source | 411 | 736 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 736 | if (_Py_IsImmortal(op)) { | 415 | 440 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 440 | return; | 417 | 440 | } | 418 | 296 | _Py_DECREF_STAT_INC(); | 419 | 296 | if (--op->ob_refcnt == 0) { | 420 | 176 | _Py_Dealloc(op); | 421 | 176 | } | 422 | 296 | } |
Line | Count | Source | 411 | 300M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 300M | if (_Py_IsImmortal(op)) { | 415 | 6.56M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 6.56M | return; | 417 | 6.56M | } | 418 | 294M | _Py_DECREF_STAT_INC(); | 419 | 294M | if (--op->ob_refcnt == 0) { | 420 | 219M | _Py_Dealloc(op); | 421 | 219M | } | 422 | 294M | } |
namespaceobject.c:Py_DECREF Line | Count | Source | 411 | 22 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 22 | if (_Py_IsImmortal(op)) { | 415 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 0 | return; | 417 | 0 | } | 418 | 22 | _Py_DECREF_STAT_INC(); | 419 | 22 | if (--op->ob_refcnt == 0) { | 420 | 22 | _Py_Dealloc(op); | 421 | 22 | } | 422 | 22 | } |
Unexecuted instantiation: _contextvars.c:Py_DECREF Line | Count | Source | 411 | 2.97M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 2.97M | if (_Py_IsImmortal(op)) { | 415 | 1.62M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 1.62M | return; | 417 | 1.62M | } | 418 | 1.34M | _Py_DECREF_STAT_INC(); | 419 | 1.34M | if (--op->ob_refcnt == 0) { | 420 | 370k | _Py_Dealloc(op); | 421 | 370k | } | 422 | 1.34M | } |
Unexecuted instantiation: Python-tokenize.c:Py_DECREF Unexecuted instantiation: asdl.c:Py_DECREF Line | Count | Source | 411 | 55.3k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 55.3k | if (_Py_IsImmortal(op)) { | 415 | 9.17k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 9.17k | return; | 417 | 9.17k | } | 418 | 46.1k | _Py_DECREF_STAT_INC(); | 419 | 46.1k | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 46.1k | } |
Unexecuted instantiation: ast.c:Py_DECREF ast_preprocess.c:Py_DECREF Line | Count | Source | 411 | 3 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 3 | if (_Py_IsImmortal(op)) { | 415 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 0 | return; | 417 | 0 | } | 418 | 3 | _Py_DECREF_STAT_INC(); | 419 | 3 | if (--op->ob_refcnt == 0) { | 420 | 3 | _Py_Dealloc(op); | 421 | 3 | } | 422 | 3 | } |
Line | Count | Source | 411 | 8 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 8 | if (_Py_IsImmortal(op)) { | 415 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 0 | return; | 417 | 0 | } | 418 | 8 | _Py_DECREF_STAT_INC(); | 419 | 8 | if (--op->ob_refcnt == 0) { | 420 | 8 | _Py_Dealloc(op); | 421 | 8 | } | 422 | 8 | } |
Unexecuted instantiation: critical_section.c:Py_DECREF Unexecuted instantiation: crossinterp.c:Py_DECREF Unexecuted instantiation: getcopyright.c:Py_DECREF Unexecuted instantiation: getplatform.c:Py_DECREF Unexecuted instantiation: getversion.c:Py_DECREF Unexecuted instantiation: optimizer.c:Py_DECREF Unexecuted instantiation: pathconfig.c:Py_DECREF Line | Count | Source | 411 | 1.40k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 1.40k | if (_Py_IsImmortal(op)) { | 415 | 1.11k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 1.11k | return; | 417 | 1.11k | } | 418 | 293 | _Py_DECREF_STAT_INC(); | 419 | 293 | if (--op->ob_refcnt == 0) { | 420 | 28 | _Py_Dealloc(op); | 421 | 28 | } | 422 | 293 | } |
Line | Count | Source | 411 | 131k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 131k | if (_Py_IsImmortal(op)) { | 415 | 49.5k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 49.5k | return; | 417 | 49.5k | } | 418 | 81.8k | _Py_DECREF_STAT_INC(); | 419 | 81.8k | if (--op->ob_refcnt == 0) { | 420 | 63.1k | _Py_Dealloc(op); | 421 | 63.1k | } | 422 | 81.8k | } |
Line | Count | Source | 411 | 42.5k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 42.5k | if (_Py_IsImmortal(op)) { | 415 | 2.42k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 2.42k | return; | 417 | 2.42k | } | 418 | 40.1k | _Py_DECREF_STAT_INC(); | 419 | 40.1k | if (--op->ob_refcnt == 0) { | 420 | 3.28k | _Py_Dealloc(op); | 421 | 3.28k | } | 422 | 40.1k | } |
Unexecuted instantiation: parser.c:Py_DECREF Unexecuted instantiation: buffer.c:Py_DECREF Line | Count | Source | 411 | 13.0k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 13.0k | if (_Py_IsImmortal(op)) { | 415 | 658 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 658 | return; | 417 | 658 | } | 418 | 12.4k | _Py_DECREF_STAT_INC(); | 419 | 12.4k | if (--op->ob_refcnt == 0) { | 420 | 12.4k | _Py_Dealloc(op); | 421 | 12.4k | } | 422 | 12.4k | } |
Line | Count | Source | 411 | 21.5k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 21.5k | if (_Py_IsImmortal(op)) { | 415 | 185 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 185 | return; | 417 | 185 | } | 418 | 21.3k | _Py_DECREF_STAT_INC(); | 419 | 21.3k | if (--op->ob_refcnt == 0) { | 420 | 2.49k | _Py_Dealloc(op); | 421 | 2.49k | } | 422 | 21.3k | } |
Unexecuted instantiation: readline_tokenizer.c:Py_DECREF Unexecuted instantiation: string_tokenizer.c:Py_DECREF Unexecuted instantiation: utf8_tokenizer.c:Py_DECREF Unexecuted instantiation: getcompiler.c:Py_DECREF Unexecuted instantiation: mystrtoul.c:Py_DECREF Unexecuted instantiation: token.c:Py_DECREF Unexecuted instantiation: action_helpers.c:Py_DECREF string_parser.c:Py_DECREF Line | Count | Source | 411 | 39.5k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 39.5k | if (_Py_IsImmortal(op)) { | 415 | 2.58k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 2.58k | return; | 417 | 2.58k | } | 418 | 36.9k | _Py_DECREF_STAT_INC(); | 419 | 36.9k | if (--op->ob_refcnt == 0) { | 420 | 36.9k | _Py_Dealloc(op); | 421 | 36.9k | } | 422 | 36.9k | } |
|
423 | 6.72G | #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 | 1.56G | do { \ |
478 | 1.56G | _Py_TYPEOF(op)* _tmp_op_ptr = &(op); \ |
479 | 1.56G | _Py_TYPEOF(op) _tmp_old_op = (*_tmp_op_ptr); \ |
480 | 1.56G | if (_tmp_old_op != NULL) { \ |
481 | 443M | *_tmp_op_ptr = _Py_NULL; \ |
482 | 443M | Py_DECREF(_tmp_old_op); \ |
483 | 443M | } \ |
484 | 1.56G | } 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 | 1.64G | { |
502 | 1.64G | if (op != _Py_NULL) { |
503 | 713M | Py_INCREF(op); |
504 | 713M | } |
505 | 1.64G | } Unexecuted instantiation: bytesobject.c:Py_XINCREF Unexecuted instantiation: call.c:Py_XINCREF Line | Count | Source | 501 | 63.6M | { | 502 | 63.6M | if (op != _Py_NULL) { | 503 | 1.30M | Py_INCREF(op); | 504 | 1.30M | } | 505 | 63.6M | } |
Unexecuted instantiation: genericaliasobject.c:Py_XINCREF Unexecuted instantiation: floatobject.c:Py_XINCREF Line | Count | Source | 501 | 1.05M | { | 502 | 1.05M | if (op != _Py_NULL) { | 503 | 1.05M | Py_INCREF(op); | 504 | 1.05M | } | 505 | 1.05M | } |
Unexecuted instantiation: longobject.c:Py_XINCREF Line | Count | Source | 501 | 606M | { | 502 | 606M | if (op != _Py_NULL) { | 503 | 219M | Py_INCREF(op); | 504 | 219M | } | 505 | 606M | } |
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 | 45.6M | { | 502 | 45.6M | if (op != _Py_NULL) { | 503 | 45.3M | Py_INCREF(op); | 504 | 45.3M | } | 505 | 45.6M | } |
Unexecuted instantiation: typevarobject.c:Py_XINCREF 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 | 303k | { | 502 | 303k | if (op != _Py_NULL) { | 503 | 8.56k | Py_INCREF(op); | 504 | 8.56k | } | 505 | 303k | } |
Unexecuted instantiation: _warnings.c:Py_XINCREF Line | Count | Source | 501 | 436 | { | 502 | 436 | if (op != _Py_NULL) { | 503 | 436 | Py_INCREF(op); | 504 | 436 | } | 505 | 436 | } |
Line | Count | Source | 501 | 219M | { | 502 | 219M | if (op != _Py_NULL) { | 503 | 72.3M | Py_INCREF(op); | 504 | 72.3M | } | 505 | 219M | } |
Unexecuted instantiation: codecs.c:Py_XINCREF Unexecuted instantiation: codegen.c:Py_XINCREF Line | Count | Source | 501 | 11.0k | { | 502 | 11.0k | if (op != _Py_NULL) { | 503 | 5.34k | Py_INCREF(op); | 504 | 5.34k | } | 505 | 11.0k | } |
Line | Count | Source | 501 | 21.2k | { | 502 | 21.2k | if (op != _Py_NULL) { | 503 | 0 | Py_INCREF(op); | 504 | 0 | } | 505 | 21.2k | } |
Line | Count | Source | 501 | 30.9M | { | 502 | 30.9M | if (op != _Py_NULL) { | 503 | 30.8M | Py_INCREF(op); | 504 | 30.8M | } | 505 | 30.9M | } |
Unexecuted instantiation: flowgraph.c:Py_XINCREF Unexecuted instantiation: frame.c:Py_XINCREF Unexecuted instantiation: future.c:Py_XINCREF Unexecuted instantiation: gc.c:Py_XINCREF Unexecuted instantiation: gc_gil.c:Py_XINCREF Unexecuted instantiation: getargs.c:Py_XINCREF Unexecuted instantiation: ceval_gil.c:Py_XINCREF Unexecuted instantiation: hamt.c:Py_XINCREF Unexecuted instantiation: hashtable.c:Py_XINCREF Line | Count | Source | 501 | 3.84k | { | 502 | 3.84k | if (op != _Py_NULL) { | 503 | 2.04k | Py_INCREF(op); | 504 | 2.04k | } | 505 | 3.84k | } |
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 | 6.72k | { | 502 | 6.72k | if (op != _Py_NULL) { | 503 | 6.72k | Py_INCREF(op); | 504 | 6.72k | } | 505 | 6.72k | } |
Unexecuted instantiation: pythonrun.c:Py_XINCREF Unexecuted instantiation: pytime.c:Py_XINCREF Unexecuted instantiation: qsbr.c:Py_XINCREF Unexecuted instantiation: bootstrap_hash.c:Py_XINCREF Unexecuted instantiation: specialize.c:Py_XINCREF Unexecuted instantiation: symtable.c:Py_XINCREF Line | Count | Source | 501 | 22 | { | 502 | 22 | if (op != _Py_NULL) { | 503 | 22 | Py_INCREF(op); | 504 | 22 | } | 505 | 22 | } |
Unexecuted instantiation: thread.c:Py_XINCREF Line | Count | Source | 501 | 64.1M | { | 502 | 64.1M | if (op != _Py_NULL) { | 503 | 33.1M | Py_INCREF(op); | 504 | 33.1M | } | 505 | 64.1M | } |
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 Unexecuted instantiation: posixmodule.c:Py_XINCREF 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 | 44 | { | 502 | 44 | if (op != _Py_NULL) { | 503 | 0 | Py_INCREF(op); | 504 | 0 | } | 505 | 44 | } |
Unexecuted instantiation: _codecsmodule.c:Py_XINCREF Unexecuted instantiation: _collectionsmodule.c:Py_XINCREF 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 | 1.20k | { | 502 | 1.20k | if (op != _Py_NULL) { | 503 | 1.20k | Py_INCREF(op); | 504 | 1.20k | } | 505 | 1.20k | } |
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 | 2 | { | 502 | 2 | if (op != _Py_NULL) { | 503 | 1 | Py_INCREF(op); | 504 | 1 | } | 505 | 2 | } |
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 | 878 | { | 502 | 878 | if (op != _Py_NULL) { | 503 | 878 | Py_INCREF(op); | 504 | 878 | } | 505 | 878 | } |
Unexecuted instantiation: _functoolsmodule.c:Py_XINCREF Unexecuted instantiation: _localemodule.c:Py_XINCREF Unexecuted instantiation: _opcode.c:Py_XINCREF Unexecuted instantiation: _operator.c:Py_XINCREF Unexecuted instantiation: _stat.c:Py_XINCREF Unexecuted instantiation: symtablemodule.c:Py_XINCREF Unexecuted instantiation: pwdmodule.c:Py_XINCREF Line | Count | Source | 501 | 66 | { | 502 | 66 | if (op != _Py_NULL) { | 503 | 66 | Py_INCREF(op); | 504 | 66 | } | 505 | 66 | } |
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 | 17.1M | { | 502 | 17.1M | if (op != _Py_NULL) { | 503 | 16.7M | Py_INCREF(op); | 504 | 16.7M | } | 505 | 17.1M | } |
Unexecuted instantiation: boolobject.c:Py_XINCREF Unexecuted instantiation: bytes_methods.c:Py_XINCREF Unexecuted instantiation: bytearrayobject.c:Py_XINCREF Unexecuted instantiation: capsule.c:Py_XINCREF Line | Count | Source | 501 | 7.83M | { | 502 | 7.83M | if (op != _Py_NULL) { | 503 | 64.5k | Py_INCREF(op); | 504 | 64.5k | } | 505 | 7.83M | } |
Unexecuted instantiation: classobject.c:Py_XINCREF Line | Count | Source | 501 | 7.49k | { | 502 | 7.49k | if (op != _Py_NULL) { | 503 | 7.49k | Py_INCREF(op); | 504 | 7.49k | } | 505 | 7.49k | } |
Unexecuted instantiation: complexobject.c:Py_XINCREF Line | Count | Source | 501 | 62.5k | { | 502 | 62.5k | if (op != _Py_NULL) { | 503 | 60.2k | Py_INCREF(op); | 504 | 60.2k | } | 505 | 62.5k | } |
Unexecuted instantiation: enumobject.c:Py_XINCREF Line | Count | Source | 501 | 2.18k | { | 502 | 2.18k | if (op != _Py_NULL) { | 503 | 0 | Py_INCREF(op); | 504 | 0 | } | 505 | 2.18k | } |
Unexecuted instantiation: fileobject.c:Py_XINCREF Line | Count | Source | 501 | 6.72k | { | 502 | 6.72k | if (op != _Py_NULL) { | 503 | 6.72k | Py_INCREF(op); | 504 | 6.72k | } | 505 | 6.72k | } |
Line | Count | Source | 501 | 4.23k | { | 502 | 4.23k | if (op != _Py_NULL) { | 503 | 16 | Py_INCREF(op); | 504 | 16 | } | 505 | 4.23k | } |
Unexecuted instantiation: interpolationobject.c:Py_XINCREF Unexecuted instantiation: iterobject.c:Py_XINCREF Unexecuted instantiation: odictobject.c:Py_XINCREF methodobject.c:Py_XINCREF Line | Count | Source | 501 | 585M | { | 502 | 585M | if (op != _Py_NULL) { | 503 | 292M | Py_INCREF(op); | 504 | 292M | } | 505 | 585M | } |
Unexecuted instantiation: namespaceobject.c:Py_XINCREF Unexecuted instantiation: _contextvars.c:Py_XINCREF Unexecuted instantiation: Python-ast.c:Py_XINCREF Unexecuted instantiation: Python-tokenize.c:Py_XINCREF Unexecuted instantiation: asdl.c:Py_XINCREF Unexecuted instantiation: assemble.c:Py_XINCREF Unexecuted instantiation: ast.c:Py_XINCREF Unexecuted instantiation: ast_preprocess.c:Py_XINCREF Unexecuted instantiation: ast_unparse.c:Py_XINCREF Unexecuted instantiation: critical_section.c:Py_XINCREF Unexecuted instantiation: crossinterp.c:Py_XINCREF Unexecuted instantiation: getcopyright.c:Py_XINCREF Unexecuted instantiation: getplatform.c:Py_XINCREF Unexecuted instantiation: getversion.c:Py_XINCREF Unexecuted instantiation: optimizer.c:Py_XINCREF Unexecuted instantiation: pathconfig.c:Py_XINCREF structmember.c:Py_XINCREF Line | Count | Source | 501 | 32.0k | { | 502 | 32.0k | if (op != _Py_NULL) { | 503 | 32.0k | Py_INCREF(op); | 504 | 32.0k | } | 505 | 32.0k | } |
Unexecuted instantiation: pegen.c:Py_XINCREF 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 | 1.64G | # define Py_XINCREF(op) Py_XINCREF(_PyObject_CAST(op)) |
508 | | #endif |
509 | | |
510 | | static inline void Py_XDECREF(PyObject *op) |
511 | 4.36G | { |
512 | 4.36G | if (op != _Py_NULL) { |
513 | 3.43G | Py_DECREF(op); |
514 | 3.43G | } |
515 | 4.36G | } Line | Count | Source | 511 | 8.61M | { | 512 | 8.61M | if (op != _Py_NULL) { | 513 | 71.5k | Py_DECREF(op); | 514 | 71.5k | } | 515 | 8.61M | } |
Unexecuted instantiation: call.c:Py_XDECREF Line | Count | Source | 511 | 55.4M | { | 512 | 55.4M | if (op != _Py_NULL) { | 513 | 23.0M | Py_DECREF(op); | 514 | 23.0M | } | 515 | 55.4M | } |
genericaliasobject.c:Py_XDECREF Line | Count | Source | 511 | 252 | { | 512 | 252 | if (op != _Py_NULL) { | 513 | 168 | Py_DECREF(op); | 514 | 168 | } | 515 | 252 | } |
Line | Count | Source | 511 | 763k | { | 512 | 763k | if (op != _Py_NULL) { | 513 | 8 | Py_DECREF(op); | 514 | 8 | } | 515 | 763k | } |
Line | Count | Source | 511 | 1.42G | { | 512 | 1.42G | if (op != _Py_NULL) { | 513 | 1.38G | Py_DECREF(op); | 514 | 1.38G | } | 515 | 1.42G | } |
Line | Count | Source | 511 | 1.34k | { | 512 | 1.34k | if (op != _Py_NULL) { | 513 | 470 | Py_DECREF(op); | 514 | 470 | } | 515 | 1.34k | } |
Line | Count | Source | 511 | 757M | { | 512 | 757M | if (op != _Py_NULL) { | 513 | 750M | Py_DECREF(op); | 514 | 750M | } | 515 | 757M | } |
Unexecuted instantiation: memoryobject.c:Py_XDECREF moduleobject.c:Py_XDECREF Line | Count | Source | 511 | 8.19k | { | 512 | 8.19k | if (op != _Py_NULL) { | 513 | 6.02k | Py_DECREF(op); | 514 | 6.02k | } | 515 | 8.19k | } |
Line | Count | Source | 511 | 41.7k | { | 512 | 41.7k | if (op != _Py_NULL) { | 513 | 474 | Py_DECREF(op); | 514 | 474 | } | 515 | 41.7k | } |
Unexecuted instantiation: obmalloc.c:Py_XDECREF Unexecuted instantiation: picklebufobject.c:Py_XDECREF Line | Count | Source | 511 | 66 | { | 512 | 66 | if (op != _Py_NULL) { | 513 | 66 | Py_DECREF(op); | 514 | 66 | } | 515 | 66 | } |
Line | Count | Source | 511 | 245k | { | 512 | 245k | if (op != _Py_NULL) { | 513 | 22 | Py_DECREF(op); | 514 | 22 | } | 515 | 245k | } |
Unexecuted instantiation: sliceobject.c:Py_XDECREF Line | Count | Source | 511 | 111k | { | 512 | 111k | if (op != _Py_NULL) { | 513 | 111k | Py_DECREF(op); | 514 | 111k | } | 515 | 111k | } |
Unexecuted instantiation: templateobject.c:Py_XDECREF Line | Count | Source | 511 | 662M | { | 512 | 662M | if (op != _Py_NULL) { | 513 | 660M | Py_DECREF(op); | 514 | 660M | } | 515 | 662M | } |
Line | Count | Source | 511 | 18.3M | { | 512 | 18.3M | if (op != _Py_NULL) { | 513 | 14.7M | Py_DECREF(op); | 514 | 14.7M | } | 515 | 18.3M | } |
Unexecuted instantiation: typevarobject.c:Py_XDECREF Unexecuted instantiation: unicode_format.c:Py_XDECREF unicode_formatter.c:Py_XDECREF Line | Count | Source | 511 | 624 | { | 512 | 624 | if (op != _Py_NULL) { | 513 | 256 | Py_DECREF(op); | 514 | 256 | } | 515 | 624 | } |
Unexecuted instantiation: unicode_writer.c:Py_XDECREF Unexecuted instantiation: unicodectype.c:Py_XDECREF unicodeobject.c:Py_XDECREF Line | Count | Source | 511 | 94.4M | { | 512 | 94.4M | if (op != _Py_NULL) { | 513 | 68.8M | Py_DECREF(op); | 514 | 68.8M | } | 515 | 94.4M | } |
Line | Count | Source | 511 | 746 | { | 512 | 746 | if (op != _Py_NULL) { | 513 | 36 | Py_DECREF(op); | 514 | 36 | } | 515 | 746 | } |
weakrefobject.c:Py_XDECREF Line | Count | Source | 511 | 295k | { | 512 | 295k | if (op != _Py_NULL) { | 513 | 257 | Py_DECREF(op); | 514 | 257 | } | 515 | 295k | } |
Line | Count | Source | 511 | 112k | { | 512 | 112k | if (op != _Py_NULL) { | 513 | 112k | Py_DECREF(op); | 514 | 112k | } | 515 | 112k | } |
Line | Count | Source | 511 | 7.49M | { | 512 | 7.49M | if (op != _Py_NULL) { | 513 | 580k | Py_DECREF(op); | 514 | 580k | } | 515 | 7.49M | } |
Line | Count | Source | 511 | 348k | { | 512 | 348k | if (op != _Py_NULL) { | 513 | 6.34k | Py_DECREF(op); | 514 | 6.34k | } | 515 | 348k | } |
Line | Count | Source | 511 | 198k | { | 512 | 198k | if (op != _Py_NULL) { | 513 | 132k | Py_DECREF(op); | 514 | 132k | } | 515 | 198k | } |
Unexecuted instantiation: codegen.c:Py_XDECREF Line | Count | Source | 511 | 31.3k | { | 512 | 31.3k | if (op != _Py_NULL) { | 513 | 9.22k | Py_DECREF(op); | 514 | 9.22k | } | 515 | 31.3k | } |
Unexecuted instantiation: context.c:Py_XDECREF Line | Count | Source | 511 | 159M | { | 512 | 159M | if (op != _Py_NULL) { | 513 | 25.0M | Py_DECREF(op); | 514 | 25.0M | } | 515 | 159M | } |
Unexecuted instantiation: flowgraph.c:Py_XDECREF Unexecuted instantiation: frame.c:Py_XDECREF Unexecuted instantiation: future.c:Py_XDECREF Line | Count | Source | 511 | 63.9k | { | 512 | 63.9k | if (op != _Py_NULL) { | 513 | 0 | Py_DECREF(op); | 514 | 0 | } | 515 | 63.9k | } |
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 | 1.29M | { | 512 | 1.29M | if (op != _Py_NULL) { | 513 | 866k | Py_DECREF(op); | 514 | 866k | } | 515 | 1.29M | } |
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 | 15.8k | { | 512 | 15.8k | if (op != _Py_NULL) { | 513 | 0 | Py_DECREF(op); | 514 | 0 | } | 515 | 15.8k | } |
Line | Count | Source | 511 | 19.0k | { | 512 | 19.0k | if (op != _Py_NULL) { | 513 | 19.0k | Py_DECREF(op); | 514 | 19.0k | } | 515 | 19.0k | } |
Unexecuted instantiation: legacy_tracing.c:Py_XDECREF Unexecuted instantiation: lock.c:Py_XDECREF Line | Count | Source | 511 | 411k | { | 512 | 411k | if (op != _Py_NULL) { | 513 | 411k | Py_DECREF(op); | 514 | 411k | } | 515 | 411k | } |
Line | Count | Source | 511 | 9.05k | { | 512 | 9.05k | if (op != _Py_NULL) { | 513 | 9.05k | Py_DECREF(op); | 514 | 9.05k | } | 515 | 9.05k | } |
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 | 132 | { | 512 | 132 | if (op != _Py_NULL) { | 513 | 132 | Py_DECREF(op); | 514 | 132 | } | 515 | 132 | } |
Unexecuted instantiation: pymath.c:Py_XDECREF Unexecuted instantiation: pystate.c:Py_XDECREF Line | Count | Source | 511 | 153 | { | 512 | 153 | if (op != _Py_NULL) { | 513 | 0 | Py_DECREF(op); | 514 | 0 | } | 515 | 153 | } |
Unexecuted instantiation: pytime.c:Py_XDECREF Unexecuted instantiation: qsbr.c:Py_XDECREF Unexecuted instantiation: bootstrap_hash.c:Py_XDECREF Line | Count | Source | 511 | 1.06M | { | 512 | 1.06M | if (op != _Py_NULL) { | 513 | 553k | Py_DECREF(op); | 514 | 553k | } | 515 | 1.06M | } |
Line | Count | Source | 511 | 193k | { | 512 | 193k | if (op != _Py_NULL) { | 513 | 152k | Py_DECREF(op); | 514 | 152k | } | 515 | 193k | } |
Line | Count | Source | 511 | 4.43k | { | 512 | 4.43k | if (op != _Py_NULL) { | 513 | 3.97k | Py_DECREF(op); | 514 | 3.97k | } | 515 | 4.43k | } |
Unexecuted instantiation: thread.c:Py_XDECREF Line | Count | Source | 511 | 128M | { | 512 | 128M | if (op != _Py_NULL) { | 513 | 66.3M | Py_DECREF(op); | 514 | 66.3M | } | 515 | 128M | } |
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 Unexecuted instantiation: posixmodule.c:Py_XDECREF signalmodule.c:Py_XDECREF Line | Count | Source | 511 | 1.40k | { | 512 | 1.40k | if (op != _Py_NULL) { | 513 | 0 | Py_DECREF(op); | 514 | 0 | } | 515 | 1.40k | } |
Unexecuted instantiation: _tracemalloc.c:Py_XDECREF Unexecuted instantiation: _suggestions.c:Py_XDECREF _datetimemodule.c:Py_XDECREF Line | Count | Source | 511 | 8 | { | 512 | 8 | if (op != _Py_NULL) { | 513 | 0 | Py_DECREF(op); | 514 | 0 | } | 515 | 8 | } |
Unexecuted instantiation: _codecsmodule.c:Py_XDECREF Unexecuted instantiation: _collectionsmodule.c:Py_XDECREF Unexecuted instantiation: errnomodule.c:Py_XDECREF Unexecuted instantiation: _iomodule.c:Py_XDECREF Unexecuted instantiation: iobase.c:Py_XDECREF Unexecuted instantiation: fileio.c:Py_XDECREF Line | Count | Source | 511 | 9.81k | { | 512 | 9.81k | if (op != _Py_NULL) { | 513 | 9.81k | Py_DECREF(op); | 514 | 9.81k | } | 515 | 9.81k | } |
Line | Count | Source | 511 | 4.88k | { | 512 | 4.88k | if (op != _Py_NULL) { | 513 | 1.20k | Py_DECREF(op); | 514 | 1.20k | } | 515 | 4.88k | } |
Line | Count | Source | 511 | 32.7k | { | 512 | 32.7k | if (op != _Py_NULL) { | 513 | 44 | Py_DECREF(op); | 514 | 44 | } | 515 | 32.7k | } |
Unexecuted instantiation: stringio.c:Py_XDECREF itertoolsmodule.c:Py_XDECREF Line | Count | Source | 511 | 228 | { | 512 | 228 | if (op != _Py_NULL) { | 513 | 228 | Py_DECREF(op); | 514 | 228 | } | 515 | 228 | } |
Line | Count | Source | 511 | 77.5M | { | 512 | 77.5M | if (op != _Py_NULL) { | 513 | 77.5M | Py_DECREF(op); | 514 | 77.5M | } | 515 | 77.5M | } |
Unexecuted instantiation: _sysconfig.c:Py_XDECREF Unexecuted instantiation: _threadmodule.c:Py_XDECREF Unexecuted instantiation: timemodule.c:Py_XDECREF Unexecuted instantiation: _typesmodule.c:Py_XDECREF Unexecuted instantiation: _typingmodule.c:Py_XDECREF Unexecuted instantiation: _weakref.c:Py_XDECREF Line | Count | Source | 511 | 4.84k | { | 512 | 4.84k | if (op != _Py_NULL) { | 513 | 3.53k | Py_DECREF(op); | 514 | 3.53k | } | 515 | 4.84k | } |
_functoolsmodule.c:Py_XDECREF Line | Count | Source | 511 | 38 | { | 512 | 38 | if (op != _Py_NULL) { | 513 | 0 | Py_DECREF(op); | 514 | 0 | } | 515 | 38 | } |
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 | 3.08k | { | 512 | 3.08k | if (op != _Py_NULL) { | 513 | 3.08k | Py_DECREF(op); | 514 | 3.08k | } | 515 | 3.08k | } |
Unexecuted instantiation: myreadline.c:Py_XDECREF Line | Count | Source | 511 | 206k | { | 512 | 206k | if (op != _Py_NULL) { | 513 | 0 | Py_DECREF(op); | 514 | 0 | } | 515 | 206k | } |
Unexecuted instantiation: boolobject.c:Py_XDECREF Unexecuted instantiation: bytes_methods.c:Py_XDECREF bytearrayobject.c:Py_XDECREF Line | Count | Source | 511 | 22 | { | 512 | 22 | if (op != _Py_NULL) { | 513 | 22 | Py_DECREF(op); | 514 | 22 | } | 515 | 22 | } |
Line | Count | Source | 511 | 5 | { | 512 | 5 | if (op != _Py_NULL) { | 513 | 5 | Py_DECREF(op); | 514 | 5 | } | 515 | 5 | } |
Line | Count | Source | 511 | 7.83M | { | 512 | 7.83M | if (op != _Py_NULL) { | 513 | 404k | Py_DECREF(op); | 514 | 404k | } | 515 | 7.83M | } |
Line | Count | Source | 511 | 19.8M | { | 512 | 19.8M | if (op != _Py_NULL) { | 513 | 19.8M | Py_DECREF(op); | 514 | 19.8M | } | 515 | 19.8M | } |
Line | Count | Source | 511 | 147k | { | 512 | 147k | if (op != _Py_NULL) { | 513 | 98.8k | Py_DECREF(op); | 514 | 98.8k | } | 515 | 147k | } |
Unexecuted instantiation: complexobject.c:Py_XDECREF Line | Count | Source | 511 | 32.5M | { | 512 | 32.5M | if (op != _Py_NULL) { | 513 | 23.3M | Py_DECREF(op); | 514 | 23.3M | } | 515 | 32.5M | } |
Line | Count | Source | 511 | 24.0M | { | 512 | 24.0M | if (op != _Py_NULL) { | 513 | 16.0M | Py_DECREF(op); | 514 | 16.0M | } | 515 | 24.0M | } |
Line | Count | Source | 511 | 1.09k | { | 512 | 1.09k | if (op != _Py_NULL) { | 513 | 0 | Py_DECREF(op); | 514 | 0 | } | 515 | 1.09k | } |
Unexecuted instantiation: fileobject.c:Py_XDECREF Unexecuted instantiation: frameobject.c:Py_XDECREF Line | Count | Source | 511 | 3.70k | { | 512 | 3.70k | if (op != _Py_NULL) { | 513 | 1.34k | Py_DECREF(op); | 514 | 1.34k | } | 515 | 3.70k | } |
Unexecuted instantiation: interpolationobject.c:Py_XDECREF Line | Count | Source | 511 | 1.62M | { | 512 | 1.62M | if (op != _Py_NULL) { | 513 | 541k | Py_DECREF(op); | 514 | 541k | } | 515 | 1.62M | } |
Line | Count | Source | 511 | 312 | { | 512 | 312 | if (op != _Py_NULL) { | 513 | 264 | Py_DECREF(op); | 514 | 264 | } | 515 | 312 | } |
methodobject.c:Py_XDECREF Line | Count | Source | 511 | 877M | { | 512 | 877M | if (op != _Py_NULL) { | 513 | 300M | Py_DECREF(op); | 514 | 300M | } | 515 | 877M | } |
Unexecuted instantiation: namespaceobject.c:Py_XDECREF Unexecuted instantiation: _contextvars.c:Py_XDECREF Line | Count | Source | 511 | 282 | { | 512 | 282 | if (op != _Py_NULL) { | 513 | 188 | Py_DECREF(op); | 514 | 188 | } | 515 | 282 | } |
Unexecuted instantiation: Python-tokenize.c:Py_XDECREF Unexecuted instantiation: asdl.c:Py_XDECREF Line | Count | Source | 511 | 55.3k | { | 512 | 55.3k | if (op != _Py_NULL) { | 513 | 55.3k | Py_DECREF(op); | 514 | 55.3k | } | 515 | 55.3k | } |
Unexecuted instantiation: ast.c:Py_XDECREF Unexecuted instantiation: ast_preprocess.c:Py_XDECREF Unexecuted instantiation: ast_unparse.c:Py_XDECREF Unexecuted instantiation: critical_section.c:Py_XDECREF Unexecuted instantiation: crossinterp.c:Py_XDECREF Unexecuted instantiation: getcopyright.c:Py_XDECREF Unexecuted instantiation: getplatform.c:Py_XDECREF Unexecuted instantiation: getversion.c:Py_XDECREF Unexecuted instantiation: optimizer.c:Py_XDECREF Unexecuted instantiation: pathconfig.c:Py_XDECREF structmember.c:Py_XDECREF Line | Count | Source | 511 | 31.5k | { | 512 | 31.5k | if (op != _Py_NULL) { | 513 | 1.40k | Py_DECREF(op); | 514 | 1.40k | } | 515 | 31.5k | } |
Line | Count | Source | 511 | 31.2k | { | 512 | 31.2k | if (op != _Py_NULL) { | 513 | 1.49k | Py_DECREF(op); | 514 | 1.49k | } | 515 | 31.2k | } |
pegen_errors.c:Py_XDECREF Line | Count | Source | 511 | 11.1k | { | 512 | 11.1k | if (op != _Py_NULL) { | 513 | 9.46k | Py_DECREF(op); | 514 | 9.46k | } | 515 | 11.1k | } |
Unexecuted instantiation: parser.c:Py_XDECREF Unexecuted instantiation: buffer.c:Py_XDECREF Unexecuted instantiation: lexer.c:Py_XDECREF Line | Count | Source | 511 | 94.3k | { | 512 | 94.3k | if (op != _Py_NULL) { | 513 | 21.5k | Py_DECREF(op); | 514 | 21.5k | } | 515 | 94.3k | } |
Unexecuted instantiation: readline_tokenizer.c:Py_XDECREF Unexecuted instantiation: string_tokenizer.c:Py_XDECREF Unexecuted instantiation: utf8_tokenizer.c:Py_XDECREF Unexecuted instantiation: getcompiler.c:Py_XDECREF Unexecuted instantiation: mystrtoul.c:Py_XDECREF Unexecuted instantiation: token.c:Py_XDECREF Unexecuted instantiation: action_helpers.c:Py_XDECREF string_parser.c:Py_XDECREF Line | Count | Source | 511 | 30.7k | { | 512 | 30.7k | if (op != _Py_NULL) { | 513 | 30.7k | Py_DECREF(op); | 514 | 30.7k | } | 515 | 30.7k | } |
|
516 | | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000 |
517 | 4.36G | # 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 | 5.03G | { |
529 | 5.03G | Py_INCREF(obj); |
530 | 5.03G | return obj; |
531 | 5.03G | } Line | Count | Source | 528 | 407k | { | 529 | 407k | Py_INCREF(obj); | 530 | 407k | return obj; | 531 | 407k | } |
Line | Count | Source | 528 | 28.7M | { | 529 | 28.7M | Py_INCREF(obj); | 530 | 28.7M | return obj; | 531 | 28.7M | } |
Line | Count | Source | 528 | 92.7M | { | 529 | 92.7M | Py_INCREF(obj); | 530 | 92.7M | return obj; | 531 | 92.7M | } |
genericaliasobject.c:_Py_NewRef Line | Count | Source | 528 | 1.27k | { | 529 | 1.27k | Py_INCREF(obj); | 530 | 1.27k | return obj; | 531 | 1.27k | } |
Unexecuted instantiation: floatobject.c:_Py_NewRef Line | Count | Source | 528 | 1.12G | { | 529 | 1.12G | Py_INCREF(obj); | 530 | 1.12G | return obj; | 531 | 1.12G | } |
Line | Count | Source | 528 | 7.03M | { | 529 | 7.03M | Py_INCREF(obj); | 530 | 7.03M | return obj; | 531 | 7.03M | } |
Line | Count | Source | 528 | 718M | { | 529 | 718M | Py_INCREF(obj); | 530 | 718M | return obj; | 531 | 718M | } |
memoryobject.c:_Py_NewRef Line | Count | Source | 528 | 612k | { | 529 | 612k | Py_INCREF(obj); | 530 | 612k | return obj; | 531 | 612k | } |
moduleobject.c:_Py_NewRef Line | Count | Source | 528 | 1.88k | { | 529 | 1.88k | Py_INCREF(obj); | 530 | 1.88k | return obj; | 531 | 1.88k | } |
Line | Count | Source | 528 | 133M | { | 529 | 133M | Py_INCREF(obj); | 530 | 133M | return obj; | 531 | 133M | } |
Unexecuted instantiation: obmalloc.c:_Py_NewRef Unexecuted instantiation: picklebufobject.c:_Py_NewRef Line | Count | Source | 528 | 66 | { | 529 | 66 | Py_INCREF(obj); | 530 | 66 | return obj; | 531 | 66 | } |
Line | Count | Source | 528 | 1.39M | { | 529 | 1.39M | Py_INCREF(obj); | 530 | 1.39M | return obj; | 531 | 1.39M | } |
Line | Count | Source | 528 | 33.5M | { | 529 | 33.5M | Py_INCREF(obj); | 530 | 33.5M | return obj; | 531 | 33.5M | } |
Unexecuted instantiation: structseq.c:_Py_NewRef templateobject.c:_Py_NewRef Line | Count | Source | 528 | 4 | { | 529 | 4 | Py_INCREF(obj); | 530 | 4 | return obj; | 531 | 4 | } |
Line | Count | Source | 528 | 485M | { | 529 | 485M | Py_INCREF(obj); | 530 | 485M | return obj; | 531 | 485M | } |
Line | Count | Source | 528 | 73.0M | { | 529 | 73.0M | Py_INCREF(obj); | 530 | 73.0M | return obj; | 531 | 73.0M | } |
Unexecuted instantiation: typevarobject.c:_Py_NewRef unicode_format.c:_Py_NewRef Line | Count | Source | 528 | 39.2M | { | 529 | 39.2M | Py_INCREF(obj); | 530 | 39.2M | return obj; | 531 | 39.2M | } |
Unexecuted instantiation: unicode_formatter.c:_Py_NewRef unicode_writer.c:_Py_NewRef Line | Count | Source | 528 | 8.01k | { | 529 | 8.01k | Py_INCREF(obj); | 530 | 8.01k | return obj; | 531 | 8.01k | } |
Unexecuted instantiation: unicodectype.c:_Py_NewRef unicodeobject.c:_Py_NewRef Line | Count | Source | 528 | 151M | { | 529 | 151M | Py_INCREF(obj); | 530 | 151M | return obj; | 531 | 151M | } |
Unexecuted instantiation: unionobject.c:_Py_NewRef Unexecuted instantiation: weakrefobject.c:_Py_NewRef Line | Count | Source | 528 | 28.0k | { | 529 | 28.0k | Py_INCREF(obj); | 530 | 28.0k | return obj; | 531 | 28.0k | } |
Line | Count | Source | 528 | 14.2M | { | 529 | 14.2M | Py_INCREF(obj); | 530 | 14.2M | return obj; | 531 | 14.2M | } |
Line | Count | Source | 528 | 1.24G | { | 529 | 1.24G | Py_INCREF(obj); | 530 | 1.24G | return obj; | 531 | 1.24G | } |
Line | Count | Source | 528 | 2.69M | { | 529 | 2.69M | Py_INCREF(obj); | 530 | 2.69M | return obj; | 531 | 2.69M | } |
Line | Count | Source | 528 | 3.12k | { | 529 | 3.12k | Py_INCREF(obj); | 530 | 3.12k | return obj; | 531 | 3.12k | } |
Line | Count | Source | 528 | 121k | { | 529 | 121k | Py_INCREF(obj); | 530 | 121k | return obj; | 531 | 121k | } |
Line | Count | Source | 528 | 31 | { | 529 | 31 | Py_INCREF(obj); | 530 | 31 | return obj; | 531 | 31 | } |
Line | Count | Source | 528 | 30.9M | { | 529 | 30.9M | Py_INCREF(obj); | 530 | 30.9M | return obj; | 531 | 30.9M | } |
Line | Count | Source | 528 | 107k | { | 529 | 107k | Py_INCREF(obj); | 530 | 107k | return obj; | 531 | 107k | } |
Line | Count | Source | 528 | 15.3M | { | 529 | 15.3M | Py_INCREF(obj); | 530 | 15.3M | return obj; | 531 | 15.3M | } |
Unexecuted instantiation: future.c:_Py_NewRef Unexecuted instantiation: gc.c:_Py_NewRef Unexecuted instantiation: gc_gil.c:_Py_NewRef Line | Count | Source | 528 | 867k | { | 529 | 867k | Py_INCREF(obj); | 530 | 867k | return obj; | 531 | 867k | } |
Unexecuted instantiation: ceval_gil.c:_Py_NewRef Unexecuted instantiation: hamt.c:_Py_NewRef Unexecuted instantiation: hashtable.c:_Py_NewRef Line | Count | Source | 528 | 834k | { | 529 | 834k | Py_INCREF(obj); | 530 | 834k | return obj; | 531 | 834k | } |
Line | Count | Source | 528 | 614 | { | 529 | 614 | Py_INCREF(obj); | 530 | 614 | return obj; | 531 | 614 | } |
Line | Count | Source | 528 | 374 | { | 529 | 374 | Py_INCREF(obj); | 530 | 374 | return obj; | 531 | 374 | } |
Unexecuted instantiation: instrumentation.c:_Py_NewRef Unexecuted instantiation: instruction_sequence.c:_Py_NewRef Line | Count | Source | 528 | 25.5k | { | 529 | 25.5k | Py_INCREF(obj); | 530 | 25.5k | return obj; | 531 | 25.5k | } |
Unexecuted instantiation: legacy_tracing.c:_Py_NewRef Unexecuted instantiation: lock.c:_Py_NewRef Line | Count | Source | 528 | 434k | { | 529 | 434k | Py_INCREF(obj); | 530 | 434k | return obj; | 531 | 434k | } |
Unexecuted instantiation: modsupport.c:_Py_NewRef Unexecuted instantiation: mysnprintf.c:_Py_NewRef Unexecuted instantiation: parking_lot.c:_Py_NewRef Unexecuted instantiation: preconfig.c:_Py_NewRef Unexecuted instantiation: pyarena.c:_Py_NewRef Unexecuted instantiation: pyctype.c:_Py_NewRef Unexecuted instantiation: pyhash.c:_Py_NewRef Line | Count | Source | 528 | 22 | { | 529 | 22 | Py_INCREF(obj); | 530 | 22 | return obj; | 531 | 22 | } |
Unexecuted instantiation: pymath.c:_Py_NewRef Unexecuted instantiation: pystate.c:_Py_NewRef Unexecuted instantiation: pythonrun.c:_Py_NewRef Unexecuted instantiation: pytime.c:_Py_NewRef Unexecuted instantiation: qsbr.c:_Py_NewRef Unexecuted instantiation: bootstrap_hash.c:_Py_NewRef Unexecuted instantiation: specialize.c:_Py_NewRef Line | Count | Source | 528 | 321k | { | 529 | 321k | Py_INCREF(obj); | 530 | 321k | return obj; | 531 | 321k | } |
Line | Count | Source | 528 | 1.06k | { | 529 | 1.06k | Py_INCREF(obj); | 530 | 1.06k | return obj; | 531 | 1.06k | } |
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 Unexecuted instantiation: atexitmodule.c:_Py_NewRef Unexecuted instantiation: faulthandler.c:_Py_NewRef Line | Count | Source | 528 | 37.9k | { | 529 | 37.9k | Py_INCREF(obj); | 530 | 37.9k | return obj; | 531 | 37.9k | } |
signalmodule.c:_Py_NewRef Line | Count | Source | 528 | 1.40k | { | 529 | 1.40k | Py_INCREF(obj); | 530 | 1.40k | return obj; | 531 | 1.40k | } |
Unexecuted instantiation: _tracemalloc.c:_Py_NewRef Unexecuted instantiation: _suggestions.c:_Py_NewRef _datetimemodule.c:_Py_NewRef Line | Count | Source | 528 | 52 | { | 529 | 52 | Py_INCREF(obj); | 530 | 52 | return obj; | 531 | 52 | } |
Unexecuted instantiation: _codecsmodule.c:_Py_NewRef _collectionsmodule.c:_Py_NewRef Line | Count | Source | 528 | 23.4M | { | 529 | 23.4M | Py_INCREF(obj); | 530 | 23.4M | return obj; | 531 | 23.4M | } |
Unexecuted instantiation: errnomodule.c:_Py_NewRef Line | Count | Source | 528 | 66 | { | 529 | 66 | Py_INCREF(obj); | 530 | 66 | return obj; | 531 | 66 | } |
Line | Count | Source | 528 | 42.1k | { | 529 | 42.1k | Py_INCREF(obj); | 530 | 42.1k | return obj; | 531 | 42.1k | } |
Unexecuted instantiation: fileio.c:_Py_NewRef Line | Count | Source | 528 | 10.4k | { | 529 | 10.4k | Py_INCREF(obj); | 530 | 10.4k | return obj; | 531 | 10.4k | } |
Line | Count | Source | 528 | 1.22k | { | 529 | 1.22k | Py_INCREF(obj); | 530 | 1.22k | return obj; | 531 | 1.22k | } |
Line | Count | Source | 528 | 84.6k | { | 529 | 84.6k | Py_INCREF(obj); | 530 | 84.6k | return obj; | 531 | 84.6k | } |
Line | Count | Source | 528 | 16.3k | { | 529 | 16.3k | Py_INCREF(obj); | 530 | 16.3k | return obj; | 531 | 16.3k | } |
itertoolsmodule.c:_Py_NewRef Line | Count | Source | 528 | 270 | { | 529 | 270 | Py_INCREF(obj); | 530 | 270 | return obj; | 531 | 270 | } |
Line | Count | Source | 528 | 175M | { | 529 | 175M | Py_INCREF(obj); | 530 | 175M | return obj; | 531 | 175M | } |
Unexecuted instantiation: _sysconfig.c:_Py_NewRef _threadmodule.c:_Py_NewRef Line | Count | Source | 528 | 1 | { | 529 | 1 | Py_INCREF(obj); | 530 | 1 | return obj; | 531 | 1 | } |
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 | 878 | { | 529 | 878 | Py_INCREF(obj); | 530 | 878 | return obj; | 531 | 878 | } |
_functoolsmodule.c:_Py_NewRef Line | Count | Source | 528 | 594 | { | 529 | 594 | Py_INCREF(obj); | 530 | 594 | return obj; | 531 | 594 | } |
Unexecuted instantiation: _localemodule.c:_Py_NewRef Unexecuted instantiation: _opcode.c:_Py_NewRef Line | Count | Source | 528 | 1.56M | { | 529 | 1.56M | Py_INCREF(obj); | 530 | 1.56M | return obj; | 531 | 1.56M | } |
Unexecuted instantiation: _stat.c:_Py_NewRef Unexecuted instantiation: symtablemodule.c:_Py_NewRef Unexecuted instantiation: pwdmodule.c:_Py_NewRef Line | Count | Source | 528 | 176 | { | 529 | 176 | Py_INCREF(obj); | 530 | 176 | return obj; | 531 | 176 | } |
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 | 485M | { | 529 | 485M | Py_INCREF(obj); | 530 | 485M | return obj; | 531 | 485M | } |
Unexecuted instantiation: boolobject.c:_Py_NewRef Unexecuted instantiation: bytes_methods.c:_Py_NewRef bytearrayobject.c:_Py_NewRef Line | Count | Source | 528 | 42 | { | 529 | 42 | Py_INCREF(obj); | 530 | 42 | return obj; | 531 | 42 | } |
Unexecuted instantiation: capsule.c:_Py_NewRef Unexecuted instantiation: cellobject.c:_Py_NewRef Line | Count | Source | 528 | 39.6M | { | 529 | 39.6M | Py_INCREF(obj); | 530 | 39.6M | return obj; | 531 | 39.6M | } |
Line | Count | Source | 528 | 617k | { | 529 | 617k | Py_INCREF(obj); | 530 | 617k | return obj; | 531 | 617k | } |
Unexecuted instantiation: complexobject.c:_Py_NewRef Line | Count | Source | 528 | 23.3M | { | 529 | 23.3M | Py_INCREF(obj); | 530 | 23.3M | return obj; | 531 | 23.3M | } |
Line | Count | Source | 528 | 20 | { | 529 | 20 | Py_INCREF(obj); | 530 | 20 | return obj; | 531 | 20 | } |
Line | Count | Source | 528 | 46.8M | { | 529 | 46.8M | Py_INCREF(obj); | 530 | 46.8M | return obj; | 531 | 46.8M | } |
Unexecuted instantiation: fileobject.c:_Py_NewRef Line | Count | Source | 528 | 17.5k | { | 529 | 17.5k | Py_INCREF(obj); | 530 | 17.5k | return obj; | 531 | 17.5k | } |
Line | Count | Source | 528 | 26.7M | { | 529 | 26.7M | Py_INCREF(obj); | 530 | 26.7M | return obj; | 531 | 26.7M | } |
Unexecuted instantiation: interpolationobject.c:_Py_NewRef Line | Count | Source | 528 | 1.08M | { | 529 | 1.08M | Py_INCREF(obj); | 530 | 1.08M | return obj; | 531 | 1.08M | } |
Line | Count | Source | 528 | 184 | { | 529 | 184 | Py_INCREF(obj); | 530 | 184 | return obj; | 531 | 184 | } |
methodobject.c:_Py_NewRef Line | Count | Source | 528 | 8.23M | { | 529 | 8.23M | Py_INCREF(obj); | 530 | 8.23M | return obj; | 531 | 8.23M | } |
Unexecuted instantiation: namespaceobject.c:_Py_NewRef Unexecuted instantiation: _contextvars.c:_Py_NewRef Line | Count | Source | 528 | 429k | { | 529 | 429k | Py_INCREF(obj); | 530 | 429k | return obj; | 531 | 429k | } |
Unexecuted instantiation: Python-tokenize.c:_Py_NewRef Unexecuted instantiation: asdl.c:_Py_NewRef Line | Count | Source | 528 | 53.7k | { | 529 | 53.7k | Py_INCREF(obj); | 530 | 53.7k | return obj; | 531 | 53.7k | } |
Unexecuted instantiation: ast.c:_Py_NewRef Unexecuted instantiation: ast_preprocess.c:_Py_NewRef Unexecuted instantiation: ast_unparse.c:_Py_NewRef Unexecuted instantiation: critical_section.c:_Py_NewRef Unexecuted instantiation: crossinterp.c:_Py_NewRef Unexecuted instantiation: getcopyright.c:_Py_NewRef Unexecuted instantiation: getplatform.c:_Py_NewRef Unexecuted instantiation: getversion.c:_Py_NewRef Unexecuted instantiation: optimizer.c:_Py_NewRef Unexecuted instantiation: pathconfig.c:_Py_NewRef Unexecuted instantiation: structmember.c:_Py_NewRef Line | Count | Source | 528 | 18.9k | { | 529 | 18.9k | Py_INCREF(obj); | 530 | 18.9k | return obj; | 531 | 18.9k | } |
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.41G | { |
535 | 1.41G | Py_XINCREF(obj); |
536 | 1.41G | return obj; |
537 | 1.41G | } Unexecuted instantiation: bytesobject.c:_Py_XNewRef Unexecuted instantiation: call.c:_Py_XNewRef Line | Count | Source | 534 | 63.6M | { | 535 | 63.6M | Py_XINCREF(obj); | 536 | 63.6M | return obj; | 537 | 63.6M | } |
Unexecuted instantiation: genericaliasobject.c:_Py_XNewRef Unexecuted instantiation: floatobject.c:_Py_XNewRef Line | Count | Source | 534 | 1.05M | { | 535 | 1.05M | Py_XINCREF(obj); | 536 | 1.05M | return obj; | 537 | 1.05M | } |
Unexecuted instantiation: longobject.c:_Py_XNewRef Line | Count | Source | 534 | 606M | { | 535 | 606M | Py_XINCREF(obj); | 536 | 606M | return obj; | 537 | 606M | } |
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 | 298k | { | 535 | 298k | Py_XINCREF(obj); | 536 | 298k | return obj; | 537 | 298k | } |
Unexecuted instantiation: typevarobject.c:_Py_XNewRef 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 | 303k | { | 535 | 303k | Py_XINCREF(obj); | 536 | 303k | return obj; | 537 | 303k | } |
Unexecuted instantiation: _warnings.c:_Py_XNewRef bltinmodule.c:_Py_XNewRef Line | Count | Source | 534 | 436 | { | 535 | 436 | Py_XINCREF(obj); | 536 | 436 | return obj; | 537 | 436 | } |
Line | Count | Source | 534 | 72.3M | { | 535 | 72.3M | Py_XINCREF(obj); | 536 | 72.3M | return obj; | 537 | 72.3M | } |
Unexecuted instantiation: codecs.c:_Py_XNewRef Unexecuted instantiation: codegen.c:_Py_XNewRef Line | Count | Source | 534 | 11.0k | { | 535 | 11.0k | Py_XINCREF(obj); | 536 | 11.0k | return obj; | 537 | 11.0k | } |
Line | Count | Source | 534 | 31 | { | 535 | 31 | Py_XINCREF(obj); | 536 | 31 | return obj; | 537 | 31 | } |
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 | 3.84k | { | 535 | 3.84k | Py_XINCREF(obj); | 536 | 3.84k | return obj; | 537 | 3.84k | } |
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 | 6.72k | { | 535 | 6.72k | Py_XINCREF(obj); | 536 | 6.72k | return obj; | 537 | 6.72k | } |
Unexecuted instantiation: pythonrun.c:_Py_XNewRef Unexecuted instantiation: pytime.c:_Py_XNewRef Unexecuted instantiation: qsbr.c:_Py_XNewRef Unexecuted instantiation: bootstrap_hash.c:_Py_XNewRef Unexecuted instantiation: specialize.c:_Py_XNewRef Unexecuted instantiation: symtable.c:_Py_XNewRef Line | Count | Source | 534 | 22 | { | 535 | 22 | Py_XINCREF(obj); | 536 | 22 | return obj; | 537 | 22 | } |
Unexecuted instantiation: thread.c:_Py_XNewRef Line | Count | Source | 534 | 64.1M | { | 535 | 64.1M | Py_XINCREF(obj); | 536 | 64.1M | return obj; | 537 | 64.1M | } |
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 Unexecuted instantiation: posixmodule.c:_Py_XNewRef 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 | 44 | { | 535 | 44 | Py_XINCREF(obj); | 536 | 44 | return obj; | 537 | 44 | } |
Unexecuted instantiation: _codecsmodule.c:_Py_XNewRef Unexecuted instantiation: _collectionsmodule.c:_Py_XNewRef 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 | 2 | { | 535 | 2 | Py_XINCREF(obj); | 536 | 2 | return obj; | 537 | 2 | } |
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 | 878 | { | 535 | 878 | Py_XINCREF(obj); | 536 | 878 | return obj; | 537 | 878 | } |
Unexecuted instantiation: _functoolsmodule.c:_Py_XNewRef Unexecuted instantiation: _localemodule.c:_Py_XNewRef Unexecuted instantiation: _opcode.c:_Py_XNewRef Unexecuted instantiation: _operator.c:_Py_XNewRef Unexecuted instantiation: _stat.c:_Py_XNewRef Unexecuted instantiation: symtablemodule.c:_Py_XNewRef Unexecuted instantiation: pwdmodule.c:_Py_XNewRef Line | Count | Source | 534 | 66 | { | 535 | 66 | Py_XINCREF(obj); | 536 | 66 | return obj; | 537 | 66 | } |
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 | 17.1M | { | 535 | 17.1M | Py_XINCREF(obj); | 536 | 17.1M | return obj; | 537 | 17.1M | } |
Unexecuted instantiation: boolobject.c:_Py_XNewRef Unexecuted instantiation: bytes_methods.c:_Py_XNewRef Unexecuted instantiation: bytearrayobject.c:_Py_XNewRef Unexecuted instantiation: capsule.c:_Py_XNewRef Line | Count | Source | 534 | 7.83M | { | 535 | 7.83M | Py_XINCREF(obj); | 536 | 7.83M | return obj; | 537 | 7.83M | } |
Unexecuted instantiation: classobject.c:_Py_XNewRef Line | Count | Source | 534 | 7.49k | { | 535 | 7.49k | Py_XINCREF(obj); | 536 | 7.49k | return obj; | 537 | 7.49k | } |
Unexecuted instantiation: complexobject.c:_Py_XNewRef descrobject.c:_Py_XNewRef Line | Count | Source | 534 | 62.5k | { | 535 | 62.5k | Py_XINCREF(obj); | 536 | 62.5k | return obj; | 537 | 62.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 | 6.72k | { | 535 | 6.72k | Py_XINCREF(obj); | 536 | 6.72k | return obj; | 537 | 6.72k | } |
Line | Count | Source | 534 | 4.23k | { | 535 | 4.23k | Py_XINCREF(obj); | 536 | 4.23k | return obj; | 537 | 4.23k | } |
Unexecuted instantiation: interpolationobject.c:_Py_XNewRef Unexecuted instantiation: iterobject.c:_Py_XNewRef Unexecuted instantiation: odictobject.c:_Py_XNewRef methodobject.c:_Py_XNewRef Line | Count | Source | 534 | 585M | { | 535 | 585M | Py_XINCREF(obj); | 536 | 585M | return obj; | 537 | 585M | } |
Unexecuted instantiation: namespaceobject.c:_Py_XNewRef Unexecuted instantiation: _contextvars.c:_Py_XNewRef Unexecuted instantiation: Python-ast.c:_Py_XNewRef Unexecuted instantiation: Python-tokenize.c:_Py_XNewRef Unexecuted instantiation: asdl.c:_Py_XNewRef Unexecuted instantiation: assemble.c:_Py_XNewRef Unexecuted instantiation: ast.c:_Py_XNewRef Unexecuted instantiation: ast_preprocess.c:_Py_XNewRef Unexecuted instantiation: ast_unparse.c:_Py_XNewRef Unexecuted instantiation: critical_section.c:_Py_XNewRef Unexecuted instantiation: crossinterp.c:_Py_XNewRef Unexecuted instantiation: getcopyright.c:_Py_XNewRef Unexecuted instantiation: getplatform.c:_Py_XNewRef Unexecuted instantiation: getversion.c:_Py_XNewRef Unexecuted instantiation: optimizer.c:_Py_XNewRef Unexecuted instantiation: pathconfig.c:_Py_XNewRef structmember.c:_Py_XNewRef Line | Count | Source | 534 | 31.5k | { | 535 | 31.5k | Py_XINCREF(obj); | 536 | 31.5k | return obj; | 537 | 31.5k | } |
Unexecuted instantiation: pegen.c:_Py_XNewRef 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 | 4.93G | # define Py_NewRef(obj) _Py_NewRef(_PyObject_CAST(obj)) |
544 | 1.39G | # 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 |