/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.62G | #define _Py_IMMORTAL_INITIAL_REFCNT (3ULL << 30) |
47 | 0 | #define _Py_IMMORTAL_MINIMUM_REFCNT (1ULL << 31) |
48 | 243M | #define _Py_STATIC_FLAG_BITS ((Py_ssize_t)(_Py_STATICALLY_ALLOCATED_FLAG | _Py_IMMORTAL_FLAGS)) |
49 | 243M | #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 | 961M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { |
103 | 961M | #if !defined(Py_GIL_DISABLED) |
104 | 961M | 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 | 961M | } Line | Count | Source | 102 | 409k | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 409k | #if !defined(Py_GIL_DISABLED) | 104 | 409k | 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 | 409k | } |
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 | 18 | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 18 | #if !defined(Py_GIL_DISABLED) | 104 | 18 | 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 | 18 | } |
Line | Count | Source | 102 | 606M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 606M | #if !defined(Py_GIL_DISABLED) | 104 | 606M | 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 | 606M | } |
Unexecuted instantiation: memoryobject.c:_Py_REFCNT Unexecuted instantiation: moduleobject.c:_Py_REFCNT Line | Count | Source | 102 | 65.2M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 65.2M | #if !defined(Py_GIL_DISABLED) | 104 | 65.2M | 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 | 65.2M | } |
Unexecuted instantiation: obmalloc.c:_Py_REFCNT Unexecuted instantiation: picklebufobject.c:_Py_REFCNT Unexecuted instantiation: rangeobject.c:_Py_REFCNT Line | Count | Source | 102 | 1.33k | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 1.33k | #if !defined(Py_GIL_DISABLED) | 104 | 1.33k | 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.33k | } |
Unexecuted instantiation: sliceobject.c:_Py_REFCNT Unexecuted instantiation: structseq.c:_Py_REFCNT Unexecuted instantiation: templateobject.c:_Py_REFCNT Line | Count | Source | 102 | 69.4k | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 69.4k | #if !defined(Py_GIL_DISABLED) | 104 | 69.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 | 69.4k | } |
Line | Count | Source | 102 | 12 | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 12 | #if !defined(Py_GIL_DISABLED) | 104 | 12 | return ob->ob_refcnt; | 105 | | #else | 106 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 107 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 108 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 109 | | } | 110 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 111 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 112 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 113 | | #endif | 114 | 12 | } |
Unexecuted instantiation: 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 | 62.4M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 62.4M | #if !defined(Py_GIL_DISABLED) | 104 | 62.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 | 62.4M | } |
Unexecuted instantiation: unionobject.c:_Py_REFCNT weakrefobject.c:_Py_REFCNT Line | Count | Source | 102 | 38.0M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 38.0M | #if !defined(Py_GIL_DISABLED) | 104 | 38.0M | return ob->ob_refcnt; | 105 | | #else | 106 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 107 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 108 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 109 | | } | 110 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 111 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 112 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 113 | | #endif | 114 | 38.0M | } |
Unexecuted instantiation: _warnings.c:_Py_REFCNT Line | Count | Source | 102 | 23.4M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 23.4M | #if !defined(Py_GIL_DISABLED) | 104 | 23.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 | 23.4M | } |
Unexecuted instantiation: ceval.c:_Py_REFCNT Unexecuted instantiation: codecs.c:_Py_REFCNT Unexecuted instantiation: codegen.c:_Py_REFCNT Unexecuted instantiation: compile.c:_Py_REFCNT Unexecuted instantiation: context.c:_Py_REFCNT Unexecuted instantiation: errors.c:_Py_REFCNT Unexecuted instantiation: flowgraph.c:_Py_REFCNT Line | Count | Source | 102 | 26.3M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 26.3M | #if !defined(Py_GIL_DISABLED) | 104 | 26.3M | 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 | 26.3M | } |
Unexecuted instantiation: future.c:_Py_REFCNT Line | Count | Source | 102 | 22.4M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 22.4M | #if !defined(Py_GIL_DISABLED) | 104 | 22.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 | 22.4M | } |
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 | 16 | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 16 | #if !defined(Py_GIL_DISABLED) | 104 | 16 | 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 | 16 | } |
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 | 163k | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 163k | #if !defined(Py_GIL_DISABLED) | 104 | 163k | 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 | 163k | } |
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 | 11.7k | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 11.7k | #if !defined(Py_GIL_DISABLED) | 104 | 11.7k | return ob->ob_refcnt; | 105 | | #else | 106 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 107 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 108 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 109 | | } | 110 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 111 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 112 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 113 | | #endif | 114 | 11.7k | } |
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 | 39 | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 39 | #if !defined(Py_GIL_DISABLED) | 104 | 39 | 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 | } |
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 | 16.4k | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 16.4k | #if !defined(Py_GIL_DISABLED) | 104 | 16.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 | 16.4k | } |
Unexecuted instantiation: complexobject.c:_Py_REFCNT Unexecuted instantiation: descrobject.c:_Py_REFCNT Line | Count | Source | 102 | 88.7M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 88.7M | #if !defined(Py_GIL_DISABLED) | 104 | 88.7M | return ob->ob_refcnt; | 105 | | #else | 106 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 107 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 108 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 109 | | } | 110 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 111 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 112 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 113 | | #endif | 114 | 88.7M | } |
Unexecuted instantiation: genobject.c:_Py_REFCNT Unexecuted instantiation: fileobject.c:_Py_REFCNT Unexecuted instantiation: frameobject.c:_Py_REFCNT Line | Count | Source | 102 | 28.1M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 28.1M | #if !defined(Py_GIL_DISABLED) | 104 | 28.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 | 28.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 | 623M | # 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.3G | { |
125 | | #if defined(Py_GIL_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.3G | 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.3G | } bytesobject.c:_Py_IsImmortal Line | Count | Source | 124 | 4.03M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 4.03M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 4.03M | } |
Line | Count | Source | 124 | 139M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 139M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 139M | } |
exceptions.c:_Py_IsImmortal Line | Count | Source | 124 | 110M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 110M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 110M | } |
genericaliasobject.c:_Py_IsImmortal Line | Count | Source | 124 | 88 | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 88 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 88 | } |
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.47G | { | 125 | | #if defined(Py_GIL_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.47G | 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.47G | } |
longobject.c:_Py_IsImmortal Line | Count | Source | 124 | 22.5M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 22.5M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 22.5M | } |
dictobject.c:_Py_IsImmortal Line | Count | Source | 124 | 2.10G | { | 125 | | #if defined(Py_GIL_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.10G | 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.10G | } |
memoryobject.c:_Py_IsImmortal Line | Count | Source | 124 | 678k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 678k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 678k | } |
moduleobject.c:_Py_IsImmortal Line | Count | Source | 124 | 80.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 | 80.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 | 80.0k | } |
Line | Count | Source | 124 | 487M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 487M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 487M | } |
Unexecuted instantiation: obmalloc.c:_Py_IsImmortal Unexecuted instantiation: picklebufobject.c:_Py_IsImmortal rangeobject.c:_Py_IsImmortal Line | Count | Source | 124 | 35.1M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 35.1M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 35.1M | } |
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 | 92.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 | 92.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 | 92.7M | } |
structseq.c:_Py_IsImmortal Line | Count | Source | 124 | 101k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 101k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 101k | } |
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 | 666M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 666M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 666M | } |
typeobject.c:_Py_IsImmortal Line | Count | Source | 124 | 819M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 819M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 819M | } |
Unexecuted instantiation: typevarobject.c:_Py_IsImmortal unicode_format.c:_Py_IsImmortal Line | Count | Source | 124 | 50.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 | 50.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 | 50.8M | } |
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 | 13.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 | 13.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 | 13.8M | } |
Unexecuted instantiation: unicodectype.c:_Py_IsImmortal unicodeobject.c:_Py_IsImmortal Line | Count | Source | 124 | 186M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 186M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 186M | } |
unionobject.c:_Py_IsImmortal Line | Count | Source | 124 | 950 | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 950 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 950 | } |
weakrefobject.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 | } |
_warnings.c:_Py_IsImmortal Line | Count | Source | 124 | 114k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 114k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 114k | } |
bltinmodule.c:_Py_IsImmortal Line | Count | Source | 124 | 136M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 136M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 136M | } |
Line | Count | Source | 124 | 5.90G | { | 125 | | #if defined(Py_GIL_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.90G | 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.90G | } |
Line | Count | Source | 124 | 5.20M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 5.20M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 5.20M | } |
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 | } |
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 | } |
Line | Count | Source | 124 | 32 | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 32 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 32 | } |
Line | Count | Source | 124 | 73.5M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 73.5M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 73.5M | } |
flowgraph.c:_Py_IsImmortal Line | Count | Source | 124 | 71.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 | 71.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 | 71.4k | } |
Line | Count | Source | 124 | 39.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 | 39.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 | 39.2M | } |
Unexecuted instantiation: future.c:_Py_IsImmortal Line | Count | Source | 124 | 176M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 176M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 176M | } |
Unexecuted instantiation: gc_gil.c:_Py_IsImmortal Line | Count | Source | 124 | 1.63M | { | 125 | | #if defined(Py_GIL_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.63M | 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.63M | } |
Unexecuted instantiation: ceval_gil.c:_Py_IsImmortal Unexecuted instantiation: hamt.c:_Py_IsImmortal Unexecuted instantiation: hashtable.c:_Py_IsImmortal Line | Count | Source | 124 | 174k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 174k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 174k | } |
importdl.c:_Py_IsImmortal Line | Count | Source | 124 | 1.25k | { | 125 | | #if defined(Py_GIL_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.25k | 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.25k | } |
initconfig.c:_Py_IsImmortal Line | Count | Source | 124 | 2.20k | { | 125 | | #if defined(Py_GIL_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.20k | 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.20k | } |
instrumentation.c:_Py_IsImmortal Line | Count | Source | 124 | 384 | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 384 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 384 | } |
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 | 29.3k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 29.3k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 29.3k | } |
Unexecuted instantiation: legacy_tracing.c:_Py_IsImmortal Unexecuted instantiation: lock.c:_Py_IsImmortal Line | Count | Source | 124 | 320k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 320k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 320k | } |
modsupport.c:_Py_IsImmortal Line | Count | Source | 124 | 18.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 | 18.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 | 18.0k | } |
Unexecuted instantiation: mysnprintf.c:_Py_IsImmortal Unexecuted instantiation: parking_lot.c:_Py_IsImmortal Unexecuted instantiation: preconfig.c:_Py_IsImmortal Line | Count | Source | 124 | 4.13M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 4.13M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 4.13M | } |
Unexecuted instantiation: pyctype.c:_Py_IsImmortal Unexecuted instantiation: pyhash.c:_Py_IsImmortal pylifecycle.c:_Py_IsImmortal Line | Count | Source | 124 | 576 | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 576 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 576 | } |
Unexecuted instantiation: pymath.c:_Py_IsImmortal Unexecuted instantiation: pystate.c:_Py_IsImmortal pythonrun.c:_Py_IsImmortal Line | Count | Source | 124 | 190 | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 190 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 190 | } |
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 | 526k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 526k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 526k | } |
symtable.c:_Py_IsImmortal Line | Count | Source | 124 | 818k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 818k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 818k | } |
sysmodule.c:_Py_IsImmortal Line | Count | Source | 124 | 4.86k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 4.86k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 4.86k | } |
Unexecuted instantiation: thread.c:_Py_IsImmortal traceback.c:_Py_IsImmortal Line | Count | Source | 124 | 64.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 | 64.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 | 64.8M | } |
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.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 | 10.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 | 10.1k | } |
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 | 23.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 | 23.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 | 23.6k | } |
signalmodule.c:_Py_IsImmortal Line | Count | Source | 124 | 32 | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 32 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 32 | } |
Unexecuted instantiation: _tracemalloc.c:_Py_IsImmortal Unexecuted instantiation: _suggestions.c:_Py_IsImmortal _datetimemodule.c:_Py_IsImmortal Line | Count | Source | 124 | 262 | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 262 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 262 | } |
Unexecuted instantiation: _codecsmodule.c:_Py_IsImmortal _collectionsmodule.c:_Py_IsImmortal Line | Count | Source | 124 | 112k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 112k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 112k | } |
Unexecuted instantiation: errnomodule.c:_Py_IsImmortal _iomodule.c:_Py_IsImmortal Line | Count | Source | 124 | 6.51k | { | 125 | | #if defined(Py_GIL_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.51k | 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.51k | } |
Line | Count | Source | 124 | 120k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 120k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 120k | } |
Line | Count | Source | 124 | 3.56k | { | 125 | | #if defined(Py_GIL_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.56k | 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.56k | } |
Line | Count | Source | 124 | 28.3k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 28.3k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 28.3k | } |
bufferedio.c:_Py_IsImmortal Line | Count | Source | 124 | 6.33k | { | 125 | | #if defined(Py_GIL_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.33k | 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.33k | } |
Line | Count | Source | 124 | 48.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 | 48.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 | 48.1k | } |
stringio.c:_Py_IsImmortal Line | Count | Source | 124 | 293k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 293k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 293k | } |
itertoolsmodule.c:_Py_IsImmortal Line | Count | Source | 124 | 928 | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 928 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 928 | } |
Line | Count | Source | 124 | 345M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 345M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 345M | } |
Unexecuted instantiation: _sysconfig.c:_Py_IsImmortal _threadmodule.c:_Py_IsImmortal Line | Count | Source | 124 | 5.82k | { | 125 | | #if defined(Py_GIL_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.82k | 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.82k | } |
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 | 29.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 | 29.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 | 29.9k | } |
_functoolsmodule.c:_Py_IsImmortal Line | Count | Source | 124 | 251 | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 251 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 251 | } |
Unexecuted instantiation: _localemodule.c:_Py_IsImmortal Unexecuted instantiation: _opcode.c:_Py_IsImmortal _operator.c:_Py_IsImmortal Line | Count | Source | 124 | 569k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 569k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 569k | } |
Unexecuted instantiation: _stat.c:_Py_IsImmortal Unexecuted instantiation: symtablemodule.c:_Py_IsImmortal Unexecuted instantiation: pwdmodule.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 | } |
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.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 | 22.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 | 22.5k | } |
Unexecuted instantiation: myreadline.c:_Py_IsImmortal abstract.c:_Py_IsImmortal Line | Count | Source | 124 | 366M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 366M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 366M | } |
Unexecuted instantiation: boolobject.c:_Py_IsImmortal Unexecuted instantiation: bytes_methods.c:_Py_IsImmortal bytearrayobject.c:_Py_IsImmortal Line | Count | Source | 124 | 16 | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 16 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 16 | } |
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 | 346k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 346k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 346k | } |
classobject.c:_Py_IsImmortal Line | Count | Source | 124 | 45.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 | 45.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 | 45.8M | } |
codeobject.c:_Py_IsImmortal Line | Count | Source | 124 | 124k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 124k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 124k | } |
Unexecuted instantiation: complexobject.c:_Py_IsImmortal descrobject.c:_Py_IsImmortal Line | Count | Source | 124 | 75.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 | 75.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 | 75.7M | } |
enumobject.c:_Py_IsImmortal Line | Count | Source | 124 | 230M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 230M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 230M | } |
genobject.c:_Py_IsImmortal Line | Count | Source | 124 | 146M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 146M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 146M | } |
fileobject.c:_Py_IsImmortal Line | Count | Source | 124 | 12.7k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 12.7k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 12.7k | } |
frameobject.c:_Py_IsImmortal Line | Count | Source | 124 | 12.9M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 12.9M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 12.9M | } |
funcobject.c:_Py_IsImmortal Line | Count | Source | 124 | 155M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 155M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 155M | } |
interpolationobject.c:_Py_IsImmortal Line | Count | Source | 124 | 16 | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 16 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 16 | } |
iterobject.c:_Py_IsImmortal Line | Count | Source | 124 | 1.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 | 1.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 | 1.38M | } |
odictobject.c:_Py_IsImmortal Line | Count | Source | 124 | 688 | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 688 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 688 | } |
methodobject.c:_Py_IsImmortal Line | Count | Source | 124 | 314M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 314M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 314M | } |
namespaceobject.c:_Py_IsImmortal Line | Count | Source | 124 | 16 | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 16 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 16 | } |
Unexecuted instantiation: _contextvars.c:_Py_IsImmortal Python-ast.c:_Py_IsImmortal Line | Count | Source | 124 | 2.80M | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 2.80M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 2.80M | } |
Unexecuted instantiation: Python-tokenize.c:_Py_IsImmortal Unexecuted instantiation: asdl.c:_Py_IsImmortal assemble.c:_Py_IsImmortal Line | Count | Source | 124 | 48.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 | 48.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 | 48.9k | } |
Unexecuted instantiation: ast.c:_Py_IsImmortal ast_preprocess.c:_Py_IsImmortal Line | Count | Source | 124 | 2 | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 2 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 2 | } |
Unexecuted instantiation: ast_unparse.c:_Py_IsImmortal Unexecuted instantiation: critical_section.c:_Py_IsImmortal Unexecuted instantiation: crossinterp.c:_Py_IsImmortal Unexecuted instantiation: getcopyright.c:_Py_IsImmortal Unexecuted instantiation: getplatform.c:_Py_IsImmortal Unexecuted instantiation: getversion.c:_Py_IsImmortal Unexecuted instantiation: optimizer.c:_Py_IsImmortal Unexecuted instantiation: pathconfig.c:_Py_IsImmortal structmember.c:_Py_IsImmortal Line | Count | Source | 124 | 1.17k | { | 125 | | #if defined(Py_GIL_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.17k | 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.17k | } |
Line | Count | Source | 124 | 128k | { | 125 | | #if defined(Py_GIL_DISABLED) | 126 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 127 | | _Py_IMMORTAL_REFCNT_LOCAL); | 128 | | #elif SIZEOF_VOID_P > 4 | 129 | 128k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 130 | | #else | 131 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 132 | | #endif | 133 | 128k | } |
pegen_errors.c:_Py_IsImmortal Line | Count | Source | 124 | 41.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 | 41.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 | 41.4k | } |
Unexecuted instantiation: parser.c:_Py_IsImmortal Unexecuted instantiation: buffer.c:_Py_IsImmortal Line | Count | Source | 124 | 12.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 | 12.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 | 12.8k | } |
Line | Count | Source | 124 | 21.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 | 21.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 | 21.2k | } |
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.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 | 39.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 | 39.4k | } |
|
134 | 15.4G | #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 | 676M | static inline void Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) { |
152 | 676M | 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 | 676M | if (_Py_IsImmortal(ob)) { |
163 | 453 | return; |
164 | 453 | } |
165 | 676M | #ifndef Py_GIL_DISABLED |
166 | 676M | #if SIZEOF_VOID_P > 4 |
167 | 676M | 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 | 676M | #endif // Py_LIMITED_API+0 < 0x030d0000 |
195 | 676M | } 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 | 603M | static inline void Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) { | 152 | 603M | 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 | 603M | if (_Py_IsImmortal(ob)) { | 163 | 0 | return; | 164 | 0 | } | 165 | 603M | #ifndef Py_GIL_DISABLED | 166 | 603M | #if SIZEOF_VOID_P > 4 | 167 | 603M | 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 | 603M | #endif // Py_LIMITED_API+0 < 0x030d0000 | 195 | 603M | } |
Unexecuted instantiation: memoryobject.c:Py_SET_REFCNT moduleobject.c:Py_SET_REFCNT Line | Count | Source | 151 | 453 | static inline void Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) { | 152 | 453 | 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 | 453 | if (_Py_IsImmortal(ob)) { | 163 | 453 | return; | 164 | 453 | } | 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 | 43.4M | static inline void Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) { | 152 | 43.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 | 43.4M | if (_Py_IsImmortal(ob)) { | 163 | 0 | return; | 164 | 0 | } | 165 | 43.4M | #ifndef Py_GIL_DISABLED | 166 | 43.4M | #if SIZEOF_VOID_P > 4 | 167 | 43.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 | 43.4M | #endif // Py_LIMITED_API+0 < 0x030d0000 | 195 | 43.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.11M | static inline void Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) { | 152 | 1.11M | 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.11M | if (_Py_IsImmortal(ob)) { | 163 | 0 | return; | 164 | 0 | } | 165 | 1.11M | #ifndef Py_GIL_DISABLED | 166 | 1.11M | #if SIZEOF_VOID_P > 4 | 167 | 1.11M | 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.11M | #endif // Py_LIMITED_API+0 < 0x030d0000 | 195 | 1.11M | } |
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 | 16.4k | static inline void Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) { | 152 | 16.4k | 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 | 16.4k | if (_Py_IsImmortal(ob)) { | 163 | 0 | return; | 164 | 0 | } | 165 | 16.4k | #ifndef Py_GIL_DISABLED | 166 | 16.4k | #if SIZEOF_VOID_P > 4 | 167 | 16.4k | 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 | 16.4k | #endif // Py_LIMITED_API+0 < 0x030d0000 | 195 | 16.4k | } |
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 | 28.1M | static inline void Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) { | 152 | 28.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 | 28.1M | if (_Py_IsImmortal(ob)) { | 163 | 0 | return; | 164 | 0 | } | 165 | 28.1M | #ifndef Py_GIL_DISABLED | 166 | 28.1M | #if SIZEOF_VOID_P > 4 | 167 | 28.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 | 28.1M | #endif // Py_LIMITED_API+0 < 0x030d0000 | 195 | 28.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 | 676M | # 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 | 8.38G | { |
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.38G | PY_UINT32_T cur_refcnt = op->ob_refcnt; |
282 | 8.38G | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { |
283 | | // the object is immortal |
284 | 4.17G | _Py_INCREF_IMMORTAL_STAT_INC(); |
285 | 4.17G | return; |
286 | 4.17G | } |
287 | 4.20G | 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.20G | _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.20G | #endif |
303 | 4.20G | } Line | Count | Source | 252 | 23.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 | 23.8M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 23.8M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 22.0M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 22.0M | return; | 286 | 22.0M | } | 287 | 1.81M | 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.81M | _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.81M | #endif | 303 | 1.81M | } |
Line | Count | Source | 252 | 25.0M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 25.0M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 25.0M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 8.80M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 8.80M | return; | 286 | 8.80M | } | 287 | 16.2M | 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.2M | _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.2M | #endif | 303 | 16.2M | } |
Line | Count | Source | 252 | 86.0M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 86.0M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 86.0M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 37.7M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 37.7M | return; | 286 | 37.7M | } | 287 | 48.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 | 48.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 | 48.3M | #endif | 303 | 48.3M | } |
genericaliasobject.c:Py_INCREF Line | Count | Source | 252 | 862 | { | 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 | 862 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 862 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 858 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 858 | return; | 286 | 858 | } | 287 | 4 | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 4 | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 4 | #endif | 303 | 4 | } |
Line | Count | Source | 252 | 640k | { | 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 | 640k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 640k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 640k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 640k | return; | 286 | 640k | } | 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.13G | { | 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.13G | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 1.13G | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 242M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 242M | return; | 286 | 242M | } | 287 | 896M | 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 | 896M | _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 | 896M | #endif | 303 | 896M | } |
Line | Count | Source | 252 | 95.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 | 95.8M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 95.8M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 95.7M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 95.7M | return; | 286 | 95.7M | } | 287 | 4.83k | 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.83k | _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.83k | #endif | 303 | 4.83k | } |
Line | Count | Source | 252 | 1.32G | { | 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.32G | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 1.32G | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 563M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 563M | return; | 286 | 563M | } | 287 | 762M | 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 | 762M | _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 | 762M | #endif | 303 | 762M | } |
Line | Count | Source | 252 | 597k | { | 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 | 597k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 597k | 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 | 597k | 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 | 597k | _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 | 597k | #endif | 303 | 597k | } |
Line | Count | Source | 252 | 1.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 | 1.47k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 1.47k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 861 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 861 | return; | 286 | 861 | } | 287 | 616 | 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 | 616 | _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 | 616 | #endif | 303 | 616 | } |
Line | Count | Source | 252 | 565M | { | 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 | 565M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 565M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 423M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 423M | return; | 286 | 423M | } | 287 | 141M | 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 | 141M | _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 | 141M | #endif | 303 | 141M | } |
Unexecuted instantiation: obmalloc.c:Py_INCREF Unexecuted instantiation: picklebufobject.c:Py_INCREF Line | Count | Source | 252 | 64 | { | 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 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 64 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 48 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 48 | return; | 286 | 48 | } | 287 | 16 | 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 | _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 | #endif | 303 | 16 | } |
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 | 546k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 546k | return; | 286 | 546k | } | 287 | 848k | 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 | 848k | _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 | 848k | #endif | 303 | 848k | } |
Line | Count | Source | 252 | 30.9M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 30.9M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 30.9M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 30.9M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 30.9M | return; | 286 | 30.9M | } | 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 | 500M | { | 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 | 500M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 500M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 312M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 312M | return; | 286 | 312M | } | 287 | 187M | 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 | 187M | _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 | 187M | #endif | 303 | 187M | } |
Line | Count | Source | 252 | 292M | { | 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 | 292M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 292M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 96.2M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 96.2M | return; | 286 | 96.2M | } | 287 | 196M | 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 | 196M | _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 | 196M | #endif | 303 | 196M | } |
Unexecuted instantiation: typevarobject.c:Py_INCREF unicode_format.c:Py_INCREF Line | Count | Source | 252 | 50.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 | 50.8M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 50.8M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 27.7M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 27.7M | return; | 286 | 27.7M | } | 287 | 23.0M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 23.0M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 23.0M | #endif | 303 | 23.0M | } |
Unexecuted instantiation: unicode_formatter.c:Py_INCREF unicode_writer.c:Py_INCREF Line | Count | Source | 252 | 8.17k | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 8.17k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 8.17k | 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.17k | 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.17k | _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.17k | #endif | 303 | 8.17k | } |
Unexecuted instantiation: unicodectype.c:Py_INCREF unicodeobject.c:Py_INCREF Line | Count | Source | 252 | 708M | { | 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 | 708M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 708M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 625M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 625M | return; | 286 | 625M | } | 287 | 83.2M | 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 | 83.2M | _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 | 83.2M | #endif | 303 | 83.2M | } |
Unexecuted instantiation: unionobject.c:Py_INCREF weakrefobject.c:Py_INCREF Line | Count | Source | 252 | 285k | { | 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 | 285k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 285k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 1.33k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 1.33k | return; | 286 | 1.33k | } | 287 | 283k | 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 | 283k | _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 | 283k | #endif | 303 | 283k | } |
Line | Count | Source | 252 | 43.0k | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 43.0k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 43.0k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 14.3k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 14.3k | return; | 286 | 14.3k | } | 287 | 28.6k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 28.6k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 28.6k | #endif | 303 | 28.6k | } |
Line | Count | Source | 252 | 68.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 | 68.5M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 68.5M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 30.6M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 30.6M | return; | 286 | 30.6M | } | 287 | 37.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 | 37.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 | 37.8M | #endif | 303 | 37.8M | } |
Line | Count | Source | 252 | 1.78G | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 1.78G | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 1.78G | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 968M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 968M | return; | 286 | 968M | } | 287 | 812M | 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 | 812M | _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 | 812M | #endif | 303 | 812M | } |
Line | Count | Source | 252 | 2.42M | { | 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.42M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 2.42M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 318k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 318k | return; | 286 | 318k | } | 287 | 2.10M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 2.10M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 2.10M | #endif | 303 | 2.10M | } |
Line | Count | Source | 252 | 2.85k | { | 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.85k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 2.85k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 2.85k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 2.85k | return; | 286 | 2.85k | } | 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 | 112k | { | 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 | 112k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 112k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 49.0k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 49.0k | return; | 286 | 49.0k | } | 287 | 63.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 | 63.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 | 63.5k | #endif | 303 | 63.5k | } |
Line | Count | Source | 252 | 24 | { | 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 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 24 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 7 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 7 | return; | 286 | 7 | } | 287 | 17 | 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 | 17 | _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 | 17 | #endif | 303 | 17 | } |
Line | Count | Source | 252 | 61.0M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 61.0M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 61.0M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 29.9M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 29.9M | return; | 286 | 29.9M | } | 287 | 31.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 | 31.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 | 31.1M | #endif | 303 | 31.1M | } |
Line | Count | Source | 252 | 96.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 | 96.3k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 96.3k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 47.0k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 47.0k | return; | 286 | 47.0k | } | 287 | 49.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 | 49.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 | 49.2k | #endif | 303 | 49.2k | } |
Line | Count | Source | 252 | 13.3M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 13.3M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 13.3M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 0 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 0 | return; | 286 | 0 | } | 287 | 13.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 | 13.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 | 13.3M | #endif | 303 | 13.3M | } |
Unexecuted instantiation: future.c:Py_INCREF Line | Count | Source | 252 | 285M | { | 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 | 285M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 285M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 231M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 231M | return; | 286 | 231M | } | 287 | 53.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 | 53.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 | 53.5M | #endif | 303 | 53.5M | } |
Unexecuted instantiation: gc_gil.c:Py_INCREF Line | Count | Source | 252 | 749k | { | 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 | 749k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 749k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 118k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 118k | return; | 286 | 118k | } | 287 | 631k | 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 | 631k | _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 | 631k | #endif | 303 | 631k | } |
Unexecuted instantiation: ceval_gil.c:Py_INCREF Unexecuted instantiation: hamt.c:Py_INCREF Unexecuted instantiation: hashtable.c:Py_INCREF Line | Count | Source | 252 | 95.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 | 95.7k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 95.7k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 12.7k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 12.7k | return; | 286 | 12.7k | } | 287 | 83.0k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 83.0k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 83.0k | #endif | 303 | 83.0k | } |
Line | Count | Source | 252 | 547 | { | 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 | 547 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 547 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 422 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 422 | return; | 286 | 422 | } | 287 | 125 | 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 | 125 | _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 | 125 | #endif | 303 | 125 | } |
Line | Count | Source | 252 | 272 | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 272 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 272 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 272 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 272 | return; | 286 | 272 | } | 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 | 29.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 | 29.3k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 29.3k | 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 | 29.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 | 29.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 | 29.3k | #endif | 303 | 29.3k | } |
Unexecuted instantiation: legacy_tracing.c:Py_INCREF Unexecuted instantiation: lock.c:Py_INCREF Line | Count | Source | 252 | 327k | { | 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 | 327k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 327k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 284k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 284k | return; | 286 | 284k | } | 287 | 43.0k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 43.0k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 43.0k | #endif | 303 | 43.0k | } |
Line | Count | Source | 252 | 302k | { | 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 | 302k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 302k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 18.3k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 18.3k | return; | 286 | 18.3k | } | 287 | 284k | 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 | 284k | _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 | 284k | #endif | 303 | 284k | } |
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 | 16 | { | 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 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 16 | 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 | 16 | 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 | _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 | #endif | 303 | 16 | } |
Unexecuted instantiation: pymath.c:Py_INCREF Unexecuted instantiation: pystate.c:Py_INCREF 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 | 275k | { | 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 | 275k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 275k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 274k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 274k | return; | 286 | 274k | } | 287 | 742 | 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 | 742 | _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 | 742 | #endif | 303 | 742 | } |
Line | Count | Source | 252 | 1.46k | { | 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.46k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 1.46k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 889 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 889 | return; | 286 | 889 | } | 287 | 579 | 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 | 579 | _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 | 579 | #endif | 303 | 579 | } |
Unexecuted instantiation: thread.c:Py_INCREF Line | Count | Source | 252 | 32.4M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 32.4M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 32.4M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 0 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 0 | return; | 286 | 0 | } | 287 | 32.4M | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 32.4M | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 32.4M | #endif | 303 | 32.4M | } |
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 | 42.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 | 42.6k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 42.6k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 96 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 96 | return; | 286 | 96 | } | 287 | 42.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 | 42.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 | 42.5k | #endif | 303 | 42.5k | } |
Line | Count | Source | 252 | 1.02k | { | 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.02k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 1.02k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 1.02k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 1.02k | return; | 286 | 1.02k | } | 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 | 108 | { | 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 | 108 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 108 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 76 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 76 | return; | 286 | 76 | } | 287 | 32 | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 32 | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 32 | #endif | 303 | 32 | } |
Unexecuted instantiation: _codecsmodule.c:Py_INCREF _collectionsmodule.c:Py_INCREF Line | Count | Source | 252 | 19.9M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 19.9M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 19.9M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 17.1M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 17.1M | return; | 286 | 17.1M | } | 287 | 2.81M | 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.81M | _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.81M | #endif | 303 | 2.81M | } |
Unexecuted instantiation: errnomodule.c:Py_INCREF Line | Count | Source | 252 | 48 | { | 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 | 48 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 48 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 48 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 48 | return; | 286 | 48 | } | 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 | 40.1k | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 40.1k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 40.1k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 0 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 0 | return; | 286 | 0 | } | 287 | 40.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 | 40.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 | 40.1k | #endif | 303 | 40.1k | } |
Unexecuted instantiation: fileio.c:Py_INCREF Line | Count | Source | 252 | 10.0k | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 10.0k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 10.0k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 20 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 20 | return; | 286 | 20 | } | 287 | 10.0k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 10.0k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 10.0k | #endif | 303 | 10.0k | } |
Line | Count | Source | 252 | 2.10k | { | 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.10k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 2.10k | 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.10k | 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.10k | _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.10k | #endif | 303 | 2.10k | } |
Line | Count | Source | 252 | 81.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 | 81.5k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 81.5k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 19.8k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 19.8k | return; | 286 | 19.8k | } | 287 | 61.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 | 61.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 | 61.7k | #endif | 303 | 61.7k | } |
Line | Count | Source | 252 | 15.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 | 15.9k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 15.9k | 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 | 15.8k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 15.8k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 15.8k | #endif | 303 | 15.8k | } |
itertoolsmodule.c:Py_INCREF Line | Count | Source | 252 | 758 | { | 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 | 758 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 758 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 350 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 350 | return; | 286 | 350 | } | 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 | 197M | { | 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 | 197M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 197M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 54.6M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 54.6M | return; | 286 | 54.6M | } | 287 | 142M | 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 | 142M | _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 | 142M | #endif | 303 | 142M | } |
Unexecuted instantiation: _sysconfig.c:Py_INCREF Unexecuted instantiation: _threadmodule.c:Py_INCREF 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 | 9.75k | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 9.75k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 9.75k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 9.64k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 9.64k | return; | 286 | 9.64k | } | 287 | 114 | 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 | 114 | _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 | 114 | #endif | 303 | 114 | } |
_functoolsmodule.c:Py_INCREF Line | Count | Source | 252 | 525 | { | 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 | 525 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 525 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 157 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 157 | return; | 286 | 157 | } | 287 | 368 | 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 | 368 | _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 | 368 | #endif | 303 | 368 | } |
Unexecuted instantiation: _localemodule.c:Py_INCREF Unexecuted instantiation: _opcode.c:Py_INCREF Line | Count | Source | 252 | 1.48M | { | 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.48M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 1.48M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 1.45M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 1.45M | return; | 286 | 1.45M | } | 287 | 29.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 | 29.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 | 29.8k | #endif | 303 | 29.8k | } |
Unexecuted instantiation: _stat.c:Py_INCREF Unexecuted instantiation: symtablemodule.c:Py_INCREF Unexecuted instantiation: pwdmodule.c:Py_INCREF Line | Count | Source | 252 | 176 | { | 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 | 176 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 176 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 176 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 176 | return; | 286 | 176 | } | 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 | 469M | { | 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 | 469M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 469M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 257M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 257M | return; | 286 | 257M | } | 287 | 212M | 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 | 212M | _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 | 212M | #endif | 303 | 212M | } |
Unexecuted instantiation: boolobject.c:Py_INCREF Unexecuted instantiation: bytes_methods.c:Py_INCREF bytearrayobject.c:Py_INCREF Line | Count | Source | 252 | 36 | { | 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 | 36 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 36 | 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 | 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 | } |
Unexecuted instantiation: capsule.c:Py_INCREF Line | Count | Source | 252 | 60.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 | 60.5k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 60.5k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 20.1k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 20.1k | return; | 286 | 20.1k | } | 287 | 40.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 | 40.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 | 40.4k | #endif | 303 | 40.4k | } |
Line | Count | Source | 252 | 45.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 | 45.8M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 45.8M | 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 | 45.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 | 45.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 | 45.8M | #endif | 303 | 45.8M | } |
Line | Count | Source | 252 | 504k | { | 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 | 504k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 504k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 266k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 266k | return; | 286 | 266k | } | 287 | 237k | 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 | 237k | _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 | 237k | #endif | 303 | 237k | } |
complexobject.c:Py_INCREF Line | Count | Source | 252 | 3.66k | { | 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.66k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 3.66k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 3.66k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 3.66k | return; | 286 | 3.66k | } | 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 | 22.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 | 22.5M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 22.5M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 30.5k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 30.5k | return; | 286 | 30.5k | } | 287 | 22.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 | 22.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 | 22.4M | #endif | 303 | 22.4M | } |
Line | Count | Source | 252 | 88.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 | 88.7M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 88.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 | 88.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 | 88.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 | 88.7M | #endif | 303 | 88.7M | } |
Line | Count | Source | 252 | 44.0M | { | 253 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 254 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 255 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 256 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 257 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 258 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 259 | | _Py_IncRef(op); | 260 | | # else | 261 | | Py_IncRef(op); | 262 | | # endif | 263 | | #else | 264 | | // Non-limited C API and limited C API for Python 3.9 and older access | 265 | | // directly PyObject.ob_refcnt. | 266 | | #if defined(Py_GIL_DISABLED) | 267 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 268 | | uint32_t new_local = local + 1; | 269 | | if (new_local == 0) { | 270 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 271 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 272 | | return; | 273 | | } | 274 | | if (_Py_IsOwnedByCurrentThread(op)) { | 275 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 276 | | } | 277 | | else { | 278 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 279 | | } | 280 | | #elif SIZEOF_VOID_P > 4 | 281 | 44.0M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 44.0M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 43.9M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 43.9M | return; | 286 | 43.9M | } | 287 | 71.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 | 71.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 | 71.3k | #endif | 303 | 71.3k | } |
Unexecuted instantiation: fileobject.c:Py_INCREF Line | Count | Source | 252 | 3.57k | { | 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.57k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 3.57k | 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 | 3.57k | 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.57k | _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.57k | #endif | 303 | 3.57k | } |
Line | Count | Source | 252 | 82.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 | 82.6M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 82.6M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 42.2M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 42.2M | return; | 286 | 42.2M | } | 287 | 40.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 | 40.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 | 40.4M | #endif | 303 | 40.4M | } |
Unexecuted instantiation: interpolationobject.c:Py_INCREF Line | Count | Source | 252 | 922k | { | 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 | 922k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 922k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 460k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 460k | return; | 286 | 460k | } | 287 | 461k | 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 | 461k | _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 | 461k | #endif | 303 | 461k | } |
Line | Count | Source | 252 | 336 | { | 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 | 336 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 336 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 312 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 312 | return; | 286 | 312 | } | 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 | 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 | 5.41M | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 5.41M | return; | 286 | 5.41M | } | 287 | 309M | 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 | 309M | _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 | 309M | #endif | 303 | 309M | } |
Unexecuted instantiation: namespaceobject.c:Py_INCREF Unexecuted instantiation: _contextvars.c:Py_INCREF Line | Count | Source | 252 | 406k | { | 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 | 406k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 406k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 207k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 207k | return; | 286 | 207k | } | 287 | 198k | 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 | 198k | _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 | 198k | #endif | 303 | 198k | } |
Unexecuted instantiation: Python-tokenize.c:Py_INCREF Unexecuted instantiation: asdl.c:Py_INCREF Line | Count | Source | 252 | 45.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 | 45.7k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 45.7k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 45.5k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 45.5k | return; | 286 | 45.5k | } | 287 | 146 | 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 | 146 | _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 | 146 | #endif | 303 | 146 | } |
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 | 104k | { | 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 | 104k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 104k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 46.7k | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 46.7k | return; | 286 | 46.7k | } | 287 | 58.0k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 58.0k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 58.0k | #endif | 303 | 58.0k | } |
Line | Count | Source | 252 | 18.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 | 18.7k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 282 | 18.7k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 283 | | // the object is immortal | 284 | 126 | _Py_INCREF_IMMORTAL_STAT_INC(); | 285 | 126 | return; | 286 | 126 | } | 287 | 18.6k | op->ob_refcnt = cur_refcnt + 1; | 288 | | #else | 289 | | if (_Py_IsImmortal(op)) { | 290 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 291 | | return; | 292 | | } | 293 | | op->ob_refcnt++; | 294 | | #endif | 295 | 18.6k | _Py_INCREF_STAT_INC(); | 296 | | #ifdef Py_REF_DEBUG | 297 | | // Don't count the incref if the object is immortal. | 298 | | if (!_Py_IsImmortal(op)) { | 299 | | _Py_INCREF_IncRefTotal(); | 300 | | } | 301 | | #endif | 302 | 18.6k | #endif | 303 | 18.6k | } |
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 | 8.38G | # 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 | 4.40k | static inline void Py_DECREF(PyObject *op) { |
327 | 4.40k | # if Py_LIMITED_API+0 >= 0x030a00A7 |
328 | 4.40k | _Py_DecRef(op); |
329 | | # else |
330 | | Py_DecRef(op); |
331 | | # endif |
332 | 4.40k | } Line | Count | Source | 326 | 4.40k | static inline void Py_DECREF(PyObject *op) { | 327 | 4.40k | # if Py_LIMITED_API+0 >= 0x030a00A7 | 328 | 4.40k | _Py_DecRef(op); | 329 | | # else | 330 | | Py_DecRef(op); | 331 | | # endif | 332 | 4.40k | } |
Unexecuted instantiation: _stat.c:Py_DECREF |
333 | 4.40k | #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.96G | { |
412 | | // Non-limited C API and limited C API for Python 3.9 and older access |
413 | | // directly PyObject.ob_refcnt. |
414 | 6.96G | if (_Py_IsImmortal(op)) { |
415 | 2.98G | _Py_DECREF_IMMORTAL_STAT_INC(); |
416 | 2.98G | return; |
417 | 2.98G | } |
418 | 3.98G | _Py_DECREF_STAT_INC(); |
419 | 3.98G | if (--op->ob_refcnt == 0) { |
420 | 954M | _Py_Dealloc(op); |
421 | 954M | } |
422 | 3.98G | } Line | Count | Source | 411 | 4.03M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 4.03M | if (_Py_IsImmortal(op)) { | 415 | 3.83M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 3.83M | return; | 417 | 3.83M | } | 418 | 202k | _Py_DECREF_STAT_INC(); | 419 | 202k | if (--op->ob_refcnt == 0) { | 420 | 125k | _Py_Dealloc(op); | 421 | 125k | } | 422 | 202k | } |
Line | Count | Source | 411 | 139M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 139M | if (_Py_IsImmortal(op)) { | 415 | 59.5M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 59.5M | return; | 417 | 59.5M | } | 418 | 79.9M | _Py_DECREF_STAT_INC(); | 419 | 79.9M | if (--op->ob_refcnt == 0) { | 420 | 61.9M | _Py_Dealloc(op); | 421 | 61.9M | } | 422 | 79.9M | } |
Line | Count | Source | 411 | 110M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 110M | if (_Py_IsImmortal(op)) { | 415 | 37.7M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 37.7M | return; | 417 | 37.7M | } | 418 | 73.1M | _Py_DECREF_STAT_INC(); | 419 | 73.1M | if (--op->ob_refcnt == 0) { | 420 | 63.5M | _Py_Dealloc(op); | 421 | 63.5M | } | 422 | 73.1M | } |
genericaliasobject.c:Py_DECREF Line | Count | Source | 411 | 88 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 88 | if (_Py_IsImmortal(op)) { | 415 | 44 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 44 | return; | 417 | 44 | } | 418 | 44 | _Py_DECREF_STAT_INC(); | 419 | 44 | if (--op->ob_refcnt == 0) { | 420 | 44 | _Py_Dealloc(op); | 421 | 44 | } | 422 | 44 | } |
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.47G | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 1.47G | if (_Py_IsImmortal(op)) { | 415 | 424M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 424M | return; | 417 | 424M | } | 418 | 1.05G | _Py_DECREF_STAT_INC(); | 419 | 1.05G | if (--op->ob_refcnt == 0) { | 420 | 225M | _Py_Dealloc(op); | 421 | 225M | } | 422 | 1.05G | } |
Line | Count | Source | 411 | 4.48M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 4.48M | if (_Py_IsImmortal(op)) { | 415 | 4.02M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 4.02M | return; | 417 | 4.02M | } | 418 | 468k | _Py_DECREF_STAT_INC(); | 419 | 468k | if (--op->ob_refcnt == 0) { | 420 | 2.70k | _Py_Dealloc(op); | 421 | 2.70k | } | 422 | 468k | } |
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 | 710M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 710M | return; | 417 | 710M | } | 418 | 772M | _Py_DECREF_STAT_INC(); | 419 | 772M | if (--op->ob_refcnt == 0) { | 420 | 75.7M | _Py_Dealloc(op); | 421 | 75.7M | } | 422 | 772M | } |
Line | Count | Source | 411 | 678k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 678k | if (_Py_IsImmortal(op)) { | 415 | 4 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 4 | return; | 417 | 4 | } | 418 | 678k | _Py_DECREF_STAT_INC(); | 419 | 678k | if (--op->ob_refcnt == 0) { | 420 | 338k | _Py_Dealloc(op); | 421 | 338k | } | 422 | 678k | } |
Line | Count | Source | 411 | 79.5k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 79.5k | if (_Py_IsImmortal(op)) { | 415 | 47.1k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 47.1k | return; | 417 | 47.1k | } | 418 | 32.4k | _Py_DECREF_STAT_INC(); | 419 | 32.4k | if (--op->ob_refcnt == 0) { | 420 | 32 | _Py_Dealloc(op); | 421 | 32 | } | 422 | 32.4k | } |
Line | Count | Source | 411 | 443M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 443M | if (_Py_IsImmortal(op)) { | 415 | 404M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 404M | return; | 417 | 404M | } | 418 | 38.7M | _Py_DECREF_STAT_INC(); | 419 | 38.7M | if (--op->ob_refcnt == 0) { | 420 | 238 | _Py_Dealloc(op); | 421 | 238 | } | 422 | 38.7M | } |
Unexecuted instantiation: obmalloc.c:Py_DECREF Unexecuted instantiation: picklebufobject.c:Py_DECREF Line | Count | Source | 411 | 35.1M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 35.1M | if (_Py_IsImmortal(op)) { | 415 | 32.9M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 32.9M | return; | 417 | 32.9M | } | 418 | 2.16M | _Py_DECREF_STAT_INC(); | 419 | 2.16M | if (--op->ob_refcnt == 0) { | 420 | 1.20M | _Py_Dealloc(op); | 421 | 1.20M | } | 422 | 2.16M | } |
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 | 391k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 391k | return; | 417 | 391k | } | 418 | 753k | _Py_DECREF_STAT_INC(); | 419 | 753k | if (--op->ob_refcnt == 0) { | 420 | 33.6k | _Py_Dealloc(op); | 421 | 33.6k | } | 422 | 753k | } |
Line | Count | Source | 411 | 92.7M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 92.7M | if (_Py_IsImmortal(op)) { | 415 | 67.2M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 67.2M | return; | 417 | 67.2M | } | 418 | 25.5M | _Py_DECREF_STAT_INC(); | 419 | 25.5M | if (--op->ob_refcnt == 0) { | 420 | 1.47M | _Py_Dealloc(op); | 421 | 1.47M | } | 422 | 25.5M | } |
Line | Count | Source | 411 | 101k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 101k | if (_Py_IsImmortal(op)) { | 415 | 26.0k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 26.0k | return; | 417 | 26.0k | } | 418 | 75.1k | _Py_DECREF_STAT_INC(); | 419 | 75.1k | if (--op->ob_refcnt == 0) { | 420 | 65.4k | _Py_Dealloc(op); | 421 | 65.4k | } | 422 | 75.1k | } |
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 | 666M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 666M | if (_Py_IsImmortal(op)) { | 415 | 358M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 358M | return; | 417 | 358M | } | 418 | 308M | _Py_DECREF_STAT_INC(); | 419 | 308M | if (--op->ob_refcnt == 0) { | 420 | 65.0M | _Py_Dealloc(op); | 421 | 65.0M | } | 422 | 308M | } |
Line | Count | Source | 411 | 363M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 363M | if (_Py_IsImmortal(op)) { | 415 | 43.4M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 43.4M | return; | 417 | 43.4M | } | 418 | 319M | _Py_DECREF_STAT_INC(); | 419 | 319M | if (--op->ob_refcnt == 0) { | 420 | 15.8M | _Py_Dealloc(op); | 421 | 15.8M | } | 422 | 319M | } |
Unexecuted instantiation: typevarobject.c:Py_DECREF unicode_format.c:Py_DECREF Line | Count | Source | 411 | 50.8M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 50.8M | if (_Py_IsImmortal(op)) { | 415 | 27.7M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 27.7M | return; | 417 | 27.7M | } | 418 | 23.1M | _Py_DECREF_STAT_INC(); | 419 | 23.1M | if (--op->ob_refcnt == 0) { | 420 | 42.3k | _Py_Dealloc(op); | 421 | 42.3k | } | 422 | 23.1M | } |
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 | 13.8M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 13.8M | if (_Py_IsImmortal(op)) { | 415 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 0 | return; | 417 | 0 | } | 418 | 13.8M | _Py_DECREF_STAT_INC(); | 419 | 13.8M | if (--op->ob_refcnt == 0) { | 420 | 13.8M | _Py_Dealloc(op); | 421 | 13.8M | } | 422 | 13.8M | } |
Unexecuted instantiation: unicodectype.c:Py_DECREF unicodeobject.c:Py_DECREF Line | Count | Source | 411 | 181M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 181M | if (_Py_IsImmortal(op)) { | 415 | 124M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 124M | return; | 417 | 124M | } | 418 | 56.9M | _Py_DECREF_STAT_INC(); | 419 | 56.9M | if (--op->ob_refcnt == 0) { | 420 | 7.48M | _Py_Dealloc(op); | 421 | 7.48M | } | 422 | 56.9M | } |
Line | Count | Source | 411 | 950 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 950 | if (_Py_IsImmortal(op)) { | 415 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 0 | return; | 417 | 0 | } | 418 | 950 | _Py_DECREF_STAT_INC(); | 419 | 950 | if (--op->ob_refcnt == 0) { | 420 | 950 | _Py_Dealloc(op); | 421 | 950 | } | 422 | 950 | } |
weakrefobject.c:Py_DECREF 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 | 7.10k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 7.10k | return; | 417 | 7.10k | } | 418 | 6.50k | _Py_DECREF_STAT_INC(); | 419 | 6.50k | if (--op->ob_refcnt == 0) { | 420 | 6.19k | _Py_Dealloc(op); | 421 | 6.19k | } | 422 | 6.50k | } |
Line | Count | Source | 411 | 114k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 114k | if (_Py_IsImmortal(op)) { | 415 | 28.6k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 28.6k | return; | 417 | 28.6k | } | 418 | 86.0k | _Py_DECREF_STAT_INC(); | 419 | 86.0k | if (--op->ob_refcnt == 0) { | 420 | 28.7k | _Py_Dealloc(op); | 421 | 28.7k | } | 422 | 86.0k | } |
Line | Count | Source | 411 | 136M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 136M | if (_Py_IsImmortal(op)) { | 415 | 73.2M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 73.2M | return; | 417 | 73.2M | } | 418 | 63.2M | _Py_DECREF_STAT_INC(); | 419 | 63.2M | if (--op->ob_refcnt == 0) { | 420 | 36.3M | _Py_Dealloc(op); | 421 | 36.3M | } | 422 | 63.2M | } |
Line | Count | Source | 411 | 6.16k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 6.16k | if (_Py_IsImmortal(op)) { | 415 | 597 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 597 | return; | 417 | 597 | } | 418 | 5.57k | _Py_DECREF_STAT_INC(); | 419 | 5.57k | if (--op->ob_refcnt == 0) { | 420 | 644 | _Py_Dealloc(op); | 421 | 644 | } | 422 | 5.57k | } |
Line | Count | Source | 411 | 5.20M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 5.20M | if (_Py_IsImmortal(op)) { | 415 | 1.78M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 1.78M | return; | 417 | 1.78M | } | 418 | 3.42M | _Py_DECREF_STAT_INC(); | 419 | 3.42M | if (--op->ob_refcnt == 0) { | 420 | 1.61M | _Py_Dealloc(op); | 421 | 1.61M | } | 422 | 3.42M | } |
Line | Count | Source | 411 | 153k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 153k | if (_Py_IsImmortal(op)) { | 415 | 136k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 136k | return; | 417 | 136k | } | 418 | 17.0k | _Py_DECREF_STAT_INC(); | 419 | 17.0k | if (--op->ob_refcnt == 0) { | 420 | 1.07k | _Py_Dealloc(op); | 421 | 1.07k | } | 422 | 17.0k | } |
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 | 322k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 322k | return; | 417 | 322k | } | 418 | 288k | _Py_DECREF_STAT_INC(); | 419 | 288k | if (--op->ob_refcnt == 0) { | 420 | 99.3k | _Py_Dealloc(op); | 421 | 99.3k | } | 422 | 288k | } |
Line | Count | Source | 411 | 32 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 32 | if (_Py_IsImmortal(op)) { | 415 | 16 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 16 | return; | 417 | 16 | } | 418 | 16 | _Py_DECREF_STAT_INC(); | 419 | 16 | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 16 | } |
Line | Count | Source | 411 | 73.5M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 73.5M | if (_Py_IsImmortal(op)) { | 415 | 29.9M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 29.9M | return; | 417 | 29.9M | } | 418 | 43.6M | _Py_DECREF_STAT_INC(); | 419 | 43.6M | if (--op->ob_refcnt == 0) { | 420 | 11.9M | _Py_Dealloc(op); | 421 | 11.9M | } | 422 | 43.6M | } |
Line | Count | Source | 411 | 71.4k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 71.4k | if (_Py_IsImmortal(op)) { | 415 | 40.3k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 40.3k | return; | 417 | 40.3k | } | 418 | 31.1k | _Py_DECREF_STAT_INC(); | 419 | 31.1k | if (--op->ob_refcnt == 0) { | 420 | 55 | _Py_Dealloc(op); | 421 | 55 | } | 422 | 31.1k | } |
Line | Count | Source | 411 | 26.3M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 26.3M | if (_Py_IsImmortal(op)) { | 415 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 0 | return; | 417 | 0 | } | 418 | 26.3M | _Py_DECREF_STAT_INC(); | 419 | 26.3M | if (--op->ob_refcnt == 0) { | 420 | 13.4M | _Py_Dealloc(op); | 421 | 13.4M | } | 422 | 26.3M | } |
Unexecuted instantiation: future.c:Py_DECREF Line | Count | Source | 411 | 585k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 585k | if (_Py_IsImmortal(op)) { | 415 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 0 | return; | 417 | 0 | } | 418 | 585k | _Py_DECREF_STAT_INC(); | 419 | 585k | if (--op->ob_refcnt == 0) { | 420 | 326k | _Py_Dealloc(op); | 421 | 326k | } | 422 | 585k | } |
Unexecuted instantiation: gc_gil.c:Py_DECREF Line | Count | Source | 411 | 1.63M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 1.63M | if (_Py_IsImmortal(op)) { | 415 | 934k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 934k | return; | 417 | 934k | } | 418 | 697k | _Py_DECREF_STAT_INC(); | 419 | 697k | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 697k | } |
Unexecuted instantiation: ceval_gil.c:Py_DECREF Unexecuted instantiation: hamt.c:Py_DECREF Unexecuted instantiation: hashtable.c:Py_DECREF Line | Count | Source | 411 | 174k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 174k | if (_Py_IsImmortal(op)) { | 415 | 13.3k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 13.3k | return; | 417 | 13.3k | } | 418 | 161k | _Py_DECREF_STAT_INC(); | 419 | 161k | if (--op->ob_refcnt == 0) { | 420 | 10.8k | _Py_Dealloc(op); | 421 | 10.8k | } | 422 | 161k | } |
Line | Count | Source | 411 | 1.25k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 1.25k | if (_Py_IsImmortal(op)) { | 415 | 494 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 494 | return; | 417 | 494 | } | 418 | 758 | _Py_DECREF_STAT_INC(); | 419 | 758 | if (--op->ob_refcnt == 0) { | 420 | 468 | _Py_Dealloc(op); | 421 | 468 | } | 422 | 758 | } |
Line | Count | Source | 411 | 2.20k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 2.20k | if (_Py_IsImmortal(op)) { | 415 | 1.77k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 1.77k | return; | 417 | 1.77k | } | 418 | 432 | _Py_DECREF_STAT_INC(); | 419 | 432 | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 432 | } |
instrumentation.c:Py_DECREF Line | Count | Source | 411 | 384 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 384 | if (_Py_IsImmortal(op)) { | 415 | 240 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 240 | return; | 417 | 240 | } | 418 | 144 | _Py_DECREF_STAT_INC(); | 419 | 144 | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 144 | } |
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 | 29.3k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 29.3k | if (_Py_IsImmortal(op)) { | 415 | 17.0k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 17.0k | return; | 417 | 17.0k | } | 418 | 12.3k | _Py_DECREF_STAT_INC(); | 419 | 12.3k | if (--op->ob_refcnt == 0) { | 420 | 124 | _Py_Dealloc(op); | 421 | 124 | } | 422 | 12.3k | } |
Unexecuted instantiation: legacy_tracing.c:Py_DECREF Unexecuted instantiation: lock.c:Py_DECREF Line | Count | Source | 411 | 320k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 320k | if (_Py_IsImmortal(op)) { | 415 | 141k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 141k | return; | 417 | 141k | } | 418 | 179k | _Py_DECREF_STAT_INC(); | 419 | 179k | if (--op->ob_refcnt == 0) { | 420 | 2.48k | _Py_Dealloc(op); | 421 | 2.48k | } | 422 | 179k | } |
Line | Count | Source | 411 | 18.0k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 18.0k | if (_Py_IsImmortal(op)) { | 415 | 12.1k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 12.1k | return; | 417 | 12.1k | } | 418 | 5.92k | _Py_DECREF_STAT_INC(); | 419 | 5.92k | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 5.92k | } |
Unexecuted instantiation: mysnprintf.c:Py_DECREF Unexecuted instantiation: parking_lot.c:Py_DECREF Unexecuted instantiation: preconfig.c:Py_DECREF Line | Count | Source | 411 | 4.13M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 4.13M | if (_Py_IsImmortal(op)) { | 415 | 3.49M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 3.49M | return; | 417 | 3.49M | } | 418 | 639k | _Py_DECREF_STAT_INC(); | 419 | 639k | if (--op->ob_refcnt == 0) { | 420 | 21.2k | _Py_Dealloc(op); | 421 | 21.2k | } | 422 | 639k | } |
Unexecuted instantiation: pyctype.c:Py_DECREF Unexecuted instantiation: pyhash.c:Py_DECREF Line | Count | Source | 411 | 576 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 576 | if (_Py_IsImmortal(op)) { | 415 | 112 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 112 | return; | 417 | 112 | } | 418 | 464 | _Py_DECREF_STAT_INC(); | 419 | 464 | if (--op->ob_refcnt == 0) { | 420 | 48 | _Py_Dealloc(op); | 421 | 48 | } | 422 | 464 | } |
Unexecuted instantiation: pymath.c:Py_DECREF Unexecuted instantiation: pystate.c:Py_DECREF Line | Count | Source | 411 | 190 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 190 | if (_Py_IsImmortal(op)) { | 415 | 32 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 32 | return; | 417 | 32 | } | 418 | 158 | _Py_DECREF_STAT_INC(); | 419 | 158 | if (--op->ob_refcnt == 0) { | 420 | 126 | _Py_Dealloc(op); | 421 | 126 | } | 422 | 158 | } |
Unexecuted instantiation: pytime.c:Py_DECREF Unexecuted instantiation: qsbr.c:Py_DECREF Unexecuted instantiation: bootstrap_hash.c:Py_DECREF Line | Count | Source | 411 | 526k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 526k | if (_Py_IsImmortal(op)) { | 415 | 96.5k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 96.5k | return; | 417 | 96.5k | } | 418 | 429k | _Py_DECREF_STAT_INC(); | 419 | 429k | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 429k | } |
Line | Count | Source | 411 | 818k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 818k | if (_Py_IsImmortal(op)) { | 415 | 376k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 376k | return; | 417 | 376k | } | 418 | 441k | _Py_DECREF_STAT_INC(); | 419 | 441k | if (--op->ob_refcnt == 0) { | 420 | 207k | _Py_Dealloc(op); | 421 | 207k | } | 422 | 441k | } |
Line | Count | Source | 411 | 4.86k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 4.86k | if (_Py_IsImmortal(op)) { | 415 | 1.08k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 1.08k | return; | 417 | 1.08k | } | 418 | 3.77k | _Py_DECREF_STAT_INC(); | 419 | 3.77k | if (--op->ob_refcnt == 0) { | 420 | 2.99k | _Py_Dealloc(op); | 421 | 2.99k | } | 422 | 3.77k | } |
Unexecuted instantiation: thread.c:Py_DECREF Line | Count | Source | 411 | 64.8M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 64.8M | if (_Py_IsImmortal(op)) { | 415 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 0 | return; | 417 | 0 | } | 418 | 64.8M | _Py_DECREF_STAT_INC(); | 419 | 64.8M | if (--op->ob_refcnt == 0) { | 420 | 13.9M | _Py_Dealloc(op); | 421 | 13.9M | } | 422 | 64.8M | } |
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.1k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 10.1k | if (_Py_IsImmortal(op)) { | 415 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 0 | return; | 417 | 0 | } | 418 | 10.1k | _Py_DECREF_STAT_INC(); | 419 | 10.1k | if (--op->ob_refcnt == 0) { | 420 | 10.1k | _Py_Dealloc(op); | 421 | 10.1k | } | 422 | 10.1k | } |
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 | 23.6k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 23.6k | if (_Py_IsImmortal(op)) { | 415 | 2.72k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 2.72k | return; | 417 | 2.72k | } | 418 | 20.9k | _Py_DECREF_STAT_INC(); | 419 | 20.9k | if (--op->ob_refcnt == 0) { | 420 | 6.15k | _Py_Dealloc(op); | 421 | 6.15k | } | 422 | 20.9k | } |
Line | Count | Source | 411 | 32 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 32 | if (_Py_IsImmortal(op)) { | 415 | 16 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 16 | return; | 417 | 16 | } | 418 | 16 | _Py_DECREF_STAT_INC(); | 419 | 16 | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 16 | } |
Unexecuted instantiation: _tracemalloc.c:Py_DECREF Unexecuted instantiation: _suggestions.c:Py_DECREF _datetimemodule.c:Py_DECREF Line | Count | Source | 411 | 262 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 262 | if (_Py_IsImmortal(op)) { | 415 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 0 | return; | 417 | 0 | } | 418 | 262 | _Py_DECREF_STAT_INC(); | 419 | 262 | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 262 | } |
Unexecuted instantiation: _codecsmodule.c:Py_DECREF _collectionsmodule.c:Py_DECREF Line | Count | Source | 411 | 112k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 112k | if (_Py_IsImmortal(op)) { | 415 | 48.6k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 48.6k | return; | 417 | 48.6k | } | 418 | 64.2k | _Py_DECREF_STAT_INC(); | 419 | 64.2k | if (--op->ob_refcnt == 0) { | 420 | 48.2k | _Py_Dealloc(op); | 421 | 48.2k | } | 422 | 64.2k | } |
Line | Count | Source | 411 | 6.51k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 6.51k | if (_Py_IsImmortal(op)) { | 415 | 2.25k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 2.25k | return; | 417 | 2.25k | } | 418 | 4.26k | _Py_DECREF_STAT_INC(); | 419 | 4.26k | if (--op->ob_refcnt == 0) { | 420 | 2.15k | _Py_Dealloc(op); | 421 | 2.15k | } | 422 | 4.26k | } |
Line | Count | Source | 411 | 120k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 120k | if (_Py_IsImmortal(op)) { | 415 | 101k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 101k | return; | 417 | 101k | } | 418 | 18.8k | _Py_DECREF_STAT_INC(); | 419 | 18.8k | if (--op->ob_refcnt == 0) { | 420 | 9.44k | _Py_Dealloc(op); | 421 | 9.44k | } | 422 | 18.8k | } |
Line | Count | Source | 411 | 3.56k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 3.56k | if (_Py_IsImmortal(op)) { | 415 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 0 | return; | 417 | 0 | } | 418 | 3.56k | _Py_DECREF_STAT_INC(); | 419 | 3.56k | if (--op->ob_refcnt == 0) { | 420 | 2.29k | _Py_Dealloc(op); | 421 | 2.29k | } | 422 | 3.56k | } |
Line | Count | Source | 411 | 28.3k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 28.3k | if (_Py_IsImmortal(op)) { | 415 | 9.46k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 9.46k | return; | 417 | 9.46k | } | 418 | 18.8k | _Py_DECREF_STAT_INC(); | 419 | 18.8k | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 18.8k | } |
Line | Count | Source | 411 | 6.33k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 6.33k | if (_Py_IsImmortal(op)) { | 415 | 1.14k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 1.14k | return; | 417 | 1.14k | } | 418 | 5.19k | _Py_DECREF_STAT_INC(); | 419 | 5.19k | if (--op->ob_refcnt == 0) { | 420 | 2.06k | _Py_Dealloc(op); | 421 | 2.06k | } | 422 | 5.19k | } |
Line | Count | Source | 411 | 48.1k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 48.1k | if (_Py_IsImmortal(op)) { | 415 | 32.1k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 32.1k | return; | 417 | 32.1k | } | 418 | 16.0k | _Py_DECREF_STAT_INC(); | 419 | 16.0k | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 16.0k | } |
Line | Count | Source | 411 | 293k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 293k | if (_Py_IsImmortal(op)) { | 415 | 152k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 152k | return; | 417 | 152k | } | 418 | 141k | _Py_DECREF_STAT_INC(); | 419 | 141k | if (--op->ob_refcnt == 0) { | 420 | 31.8k | _Py_Dealloc(op); | 421 | 31.8k | } | 422 | 141k | } |
itertoolsmodule.c:Py_DECREF Line | Count | Source | 411 | 928 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 928 | if (_Py_IsImmortal(op)) { | 415 | 178 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 178 | return; | 417 | 178 | } | 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 | 345M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 345M | if (_Py_IsImmortal(op)) { | 415 | 105M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 105M | return; | 417 | 105M | } | 418 | 239M | _Py_DECREF_STAT_INC(); | 419 | 239M | if (--op->ob_refcnt == 0) { | 420 | 7.96M | _Py_Dealloc(op); | 421 | 7.96M | } | 422 | 239M | } |
Unexecuted instantiation: _sysconfig.c:Py_DECREF _threadmodule.c:Py_DECREF Line | Count | Source | 411 | 5.82k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 5.82k | if (_Py_IsImmortal(op)) { | 415 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 0 | return; | 417 | 0 | } | 418 | 5.82k | _Py_DECREF_STAT_INC(); | 419 | 5.82k | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 5.82k | } |
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 | 29.9k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 29.9k | if (_Py_IsImmortal(op)) { | 415 | 10.4k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 10.4k | return; | 417 | 10.4k | } | 418 | 19.5k | _Py_DECREF_STAT_INC(); | 419 | 19.5k | if (--op->ob_refcnt == 0) { | 420 | 2.63k | _Py_Dealloc(op); | 421 | 2.63k | } | 422 | 19.5k | } |
_functoolsmodule.c:Py_DECREF Line | Count | Source | 411 | 251 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 251 | if (_Py_IsImmortal(op)) { | 415 | 39 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 39 | return; | 417 | 39 | } | 418 | 212 | _Py_DECREF_STAT_INC(); | 419 | 212 | if (--op->ob_refcnt == 0) { | 420 | 70 | _Py_Dealloc(op); | 421 | 70 | } | 422 | 212 | } |
Unexecuted instantiation: _localemodule.c:Py_DECREF Unexecuted instantiation: _opcode.c:Py_DECREF Line | Count | Source | 411 | 569k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 569k | if (_Py_IsImmortal(op)) { | 415 | 284k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 284k | return; | 417 | 284k | } | 418 | 284k | _Py_DECREF_STAT_INC(); | 419 | 284k | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 284k | } |
Unexecuted instantiation: symtablemodule.c:Py_DECREF Unexecuted instantiation: pwdmodule.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 | 192 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 192 | return; | 417 | 192 | } | 418 | 336 | _Py_DECREF_STAT_INC(); | 419 | 336 | if (--op->ob_refcnt == 0) { | 420 | 16 | _Py_Dealloc(op); | 421 | 16 | } | 422 | 336 | } |
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.5k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 22.5k | if (_Py_IsImmortal(op)) { | 415 | 758 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 758 | return; | 417 | 758 | } | 418 | 21.7k | _Py_DECREF_STAT_INC(); | 419 | 21.7k | if (--op->ob_refcnt == 0) { | 420 | 15.6k | _Py_Dealloc(op); | 421 | 15.6k | } | 422 | 21.7k | } |
Unexecuted instantiation: myreadline.c:Py_DECREF Line | Count | Source | 411 | 366M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 366M | if (_Py_IsImmortal(op)) { | 415 | 226M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 226M | return; | 417 | 226M | } | 418 | 140M | _Py_DECREF_STAT_INC(); | 419 | 140M | if (--op->ob_refcnt == 0) { | 420 | 1.75M | _Py_Dealloc(op); | 421 | 1.75M | } | 422 | 140M | } |
Unexecuted instantiation: boolobject.c:Py_DECREF Unexecuted instantiation: bytes_methods.c:Py_DECREF bytearrayobject.c:Py_DECREF Line | Count | Source | 411 | 16 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 16 | if (_Py_IsImmortal(op)) { | 415 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 0 | return; | 417 | 0 | } | 418 | 16 | _Py_DECREF_STAT_INC(); | 419 | 16 | if (--op->ob_refcnt == 0) { | 420 | 16 | _Py_Dealloc(op); | 421 | 16 | } | 422 | 16 | } |
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 | 346k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 346k | if (_Py_IsImmortal(op)) { | 415 | 24.8k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 24.8k | return; | 417 | 24.8k | } | 418 | 321k | _Py_DECREF_STAT_INC(); | 419 | 321k | if (--op->ob_refcnt == 0) { | 420 | 235k | _Py_Dealloc(op); | 421 | 235k | } | 422 | 321k | } |
Line | Count | Source | 411 | 45.8M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 45.8M | if (_Py_IsImmortal(op)) { | 415 | 2 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 2 | return; | 417 | 2 | } | 418 | 45.8M | _Py_DECREF_STAT_INC(); | 419 | 45.8M | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 45.8M | } |
Line | Count | Source | 411 | 107k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 107k | if (_Py_IsImmortal(op)) { | 415 | 42.0k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 42.0k | return; | 417 | 42.0k | } | 418 | 65.6k | _Py_DECREF_STAT_INC(); | 419 | 65.6k | if (--op->ob_refcnt == 0) { | 420 | 30.7k | _Py_Dealloc(op); | 421 | 30.7k | } | 422 | 65.6k | } |
Unexecuted instantiation: complexobject.c:Py_DECREF Line | Count | Source | 411 | 75.7M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 75.7M | if (_Py_IsImmortal(op)) { | 415 | 10.4M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 10.4M | return; | 417 | 10.4M | } | 418 | 65.3M | _Py_DECREF_STAT_INC(); | 419 | 65.3M | if (--op->ob_refcnt == 0) { | 420 | 36.5M | _Py_Dealloc(op); | 421 | 36.5M | } | 422 | 65.3M | } |
Line | Count | Source | 411 | 230M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 230M | if (_Py_IsImmortal(op)) { | 415 | 91.2M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 91.2M | return; | 417 | 91.2M | } | 418 | 138M | _Py_DECREF_STAT_INC(); | 419 | 138M | if (--op->ob_refcnt == 0) { | 420 | 52.4M | _Py_Dealloc(op); | 421 | 52.4M | } | 422 | 138M | } |
Line | Count | Source | 411 | 57.2M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 57.2M | if (_Py_IsImmortal(op)) { | 415 | 57.1M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 57.1M | return; | 417 | 57.1M | } | 418 | 70.3k | _Py_DECREF_STAT_INC(); | 419 | 70.3k | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 70.3k | } |
Line | Count | Source | 411 | 12.7k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 12.7k | if (_Py_IsImmortal(op)) { | 415 | 11.7k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 11.7k | return; | 417 | 11.7k | } | 418 | 1.02k | _Py_DECREF_STAT_INC(); | 419 | 1.02k | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 1.02k | } |
Line | Count | Source | 411 | 12.9M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 12.9M | if (_Py_IsImmortal(op)) { | 415 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 0 | return; | 417 | 0 | } | 418 | 12.9M | _Py_DECREF_STAT_INC(); | 419 | 12.9M | if (--op->ob_refcnt == 0) { | 420 | 16.1k | _Py_Dealloc(op); | 421 | 16.1k | } | 422 | 12.9M | } |
Line | Count | Source | 411 | 127M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 127M | if (_Py_IsImmortal(op)) { | 415 | 72.6M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 72.6M | return; | 417 | 72.6M | } | 418 | 54.3M | _Py_DECREF_STAT_INC(); | 419 | 54.3M | if (--op->ob_refcnt == 0) { | 420 | 407k | _Py_Dealloc(op); | 421 | 407k | } | 422 | 54.3M | } |
interpolationobject.c:Py_DECREF Line | Count | Source | 411 | 16 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 16 | if (_Py_IsImmortal(op)) { | 415 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 0 | return; | 417 | 0 | } | 418 | 16 | _Py_DECREF_STAT_INC(); | 419 | 16 | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 16 | } |
Line | Count | Source | 411 | 1.38M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 1.38M | if (_Py_IsImmortal(op)) { | 415 | 921k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 921k | return; | 417 | 921k | } | 418 | 461k | _Py_DECREF_STAT_INC(); | 419 | 461k | if (--op->ob_refcnt == 0) { | 420 | 460k | _Py_Dealloc(op); | 421 | 460k | } | 422 | 461k | } |
Line | Count | Source | 411 | 688 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 688 | if (_Py_IsImmortal(op)) { | 415 | 410 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 410 | return; | 417 | 410 | } | 418 | 278 | _Py_DECREF_STAT_INC(); | 419 | 278 | if (--op->ob_refcnt == 0) { | 420 | 164 | _Py_Dealloc(op); | 421 | 164 | } | 422 | 278 | } |
Line | Count | Source | 411 | 314M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 314M | if (_Py_IsImmortal(op)) { | 415 | 5.41M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 5.41M | return; | 417 | 5.41M | } | 418 | 309M | _Py_DECREF_STAT_INC(); | 419 | 309M | if (--op->ob_refcnt == 0) { | 420 | 243M | _Py_Dealloc(op); | 421 | 243M | } | 422 | 309M | } |
namespaceobject.c:Py_DECREF Line | Count | Source | 411 | 16 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 16 | if (_Py_IsImmortal(op)) { | 415 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 0 | return; | 417 | 0 | } | 418 | 16 | _Py_DECREF_STAT_INC(); | 419 | 16 | if (--op->ob_refcnt == 0) { | 420 | 16 | _Py_Dealloc(op); | 421 | 16 | } | 422 | 16 | } |
Unexecuted instantiation: _contextvars.c:Py_DECREF Line | Count | Source | 411 | 2.80M | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 2.80M | if (_Py_IsImmortal(op)) { | 415 | 1.53M | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 1.53M | return; | 417 | 1.53M | } | 418 | 1.26M | _Py_DECREF_STAT_INC(); | 419 | 1.26M | if (--op->ob_refcnt == 0) { | 420 | 349k | _Py_Dealloc(op); | 421 | 349k | } | 422 | 1.26M | } |
Unexecuted instantiation: Python-tokenize.c:Py_DECREF Unexecuted instantiation: asdl.c:Py_DECREF Line | Count | Source | 411 | 48.9k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 48.9k | if (_Py_IsImmortal(op)) { | 415 | 8.24k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 8.24k | return; | 417 | 8.24k | } | 418 | 40.7k | _Py_DECREF_STAT_INC(); | 419 | 40.7k | if (--op->ob_refcnt == 0) { | 420 | 0 | _Py_Dealloc(op); | 421 | 0 | } | 422 | 40.7k | } |
Unexecuted instantiation: ast.c:Py_DECREF ast_preprocess.c:Py_DECREF Line | Count | Source | 411 | 2 | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 2 | if (_Py_IsImmortal(op)) { | 415 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 0 | return; | 417 | 0 | } | 418 | 2 | _Py_DECREF_STAT_INC(); | 419 | 2 | if (--op->ob_refcnt == 0) { | 420 | 2 | _Py_Dealloc(op); | 421 | 2 | } | 422 | 2 | } |
Unexecuted instantiation: ast_unparse.c:Py_DECREF Unexecuted instantiation: critical_section.c:Py_DECREF Unexecuted instantiation: crossinterp.c:Py_DECREF Unexecuted instantiation: getcopyright.c:Py_DECREF Unexecuted instantiation: getplatform.c:Py_DECREF Unexecuted instantiation: getversion.c:Py_DECREF Unexecuted instantiation: optimizer.c:Py_DECREF Unexecuted instantiation: pathconfig.c:Py_DECREF Line | Count | Source | 411 | 1.17k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 1.17k | if (_Py_IsImmortal(op)) { | 415 | 931 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 931 | return; | 417 | 931 | } | 418 | 248 | _Py_DECREF_STAT_INC(); | 419 | 248 | if (--op->ob_refcnt == 0) { | 420 | 28 | _Py_Dealloc(op); | 421 | 28 | } | 422 | 248 | } |
Line | Count | Source | 411 | 128k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 128k | if (_Py_IsImmortal(op)) { | 415 | 47.4k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 47.4k | return; | 417 | 47.4k | } | 418 | 81.3k | _Py_DECREF_STAT_INC(); | 419 | 81.3k | if (--op->ob_refcnt == 0) { | 420 | 62.8k | _Py_Dealloc(op); | 421 | 62.8k | } | 422 | 81.3k | } |
Line | Count | Source | 411 | 41.4k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 41.4k | if (_Py_IsImmortal(op)) { | 415 | 2.32k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 2.32k | return; | 417 | 2.32k | } | 418 | 39.1k | _Py_DECREF_STAT_INC(); | 419 | 39.1k | if (--op->ob_refcnt == 0) { | 420 | 3.13k | _Py_Dealloc(op); | 421 | 3.13k | } | 422 | 39.1k | } |
Unexecuted instantiation: parser.c:Py_DECREF Unexecuted instantiation: buffer.c:Py_DECREF Line | Count | Source | 411 | 12.8k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 12.8k | if (_Py_IsImmortal(op)) { | 415 | 655 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 655 | return; | 417 | 655 | } | 418 | 12.2k | _Py_DECREF_STAT_INC(); | 419 | 12.2k | if (--op->ob_refcnt == 0) { | 420 | 12.2k | _Py_Dealloc(op); | 421 | 12.2k | } | 422 | 12.2k | } |
Line | Count | Source | 411 | 21.2k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 21.2k | if (_Py_IsImmortal(op)) { | 415 | 155 | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 155 | return; | 417 | 155 | } | 418 | 21.0k | _Py_DECREF_STAT_INC(); | 419 | 21.0k | if (--op->ob_refcnt == 0) { | 420 | 2.44k | _Py_Dealloc(op); | 421 | 2.44k | } | 422 | 21.0k | } |
Unexecuted instantiation: readline_tokenizer.c:Py_DECREF Unexecuted instantiation: string_tokenizer.c:Py_DECREF Unexecuted instantiation: utf8_tokenizer.c:Py_DECREF Unexecuted instantiation: getcompiler.c:Py_DECREF Unexecuted instantiation: mystrtoul.c:Py_DECREF Unexecuted instantiation: token.c:Py_DECREF Unexecuted instantiation: action_helpers.c:Py_DECREF string_parser.c:Py_DECREF Line | Count | Source | 411 | 39.4k | { | 412 | | // Non-limited C API and limited C API for Python 3.9 and older access | 413 | | // directly PyObject.ob_refcnt. | 414 | 39.4k | if (_Py_IsImmortal(op)) { | 415 | 2.54k | _Py_DECREF_IMMORTAL_STAT_INC(); | 416 | 2.54k | return; | 417 | 2.54k | } | 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.96G | #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.44G | do { \ |
478 | 1.44G | _Py_TYPEOF(op)* _tmp_op_ptr = &(op); \ |
479 | 1.44G | _Py_TYPEOF(op) _tmp_old_op = (*_tmp_op_ptr); \ |
480 | 1.44G | if (_tmp_old_op != NULL) { \ |
481 | 397M | *_tmp_op_ptr = _Py_NULL; \ |
482 | 397M | Py_DECREF(_tmp_old_op); \ |
483 | 397M | } \ |
484 | 1.44G | } 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.86G | { |
502 | 1.86G | if (op != _Py_NULL) { |
503 | 814M | Py_INCREF(op); |
504 | 814M | } |
505 | 1.86G | } Unexecuted instantiation: bytesobject.c:Py_XINCREF Unexecuted instantiation: call.c:Py_XINCREF Line | Count | Source | 501 | 62.3M | { | 502 | 62.3M | if (op != _Py_NULL) { | 503 | 1.18M | Py_INCREF(op); | 504 | 1.18M | } | 505 | 62.3M | } |
Unexecuted instantiation: genericaliasobject.c:Py_XINCREF Unexecuted instantiation: floatobject.c:Py_XINCREF Line | Count | Source | 501 | 1.01M | { | 502 | 1.01M | if (op != _Py_NULL) { | 503 | 1.01M | Py_INCREF(op); | 504 | 1.01M | } | 505 | 1.01M | } |
Unexecuted instantiation: longobject.c:Py_XINCREF Line | Count | Source | 501 | 812M | { | 502 | 812M | if (op != _Py_NULL) { | 503 | 306M | Py_INCREF(op); | 504 | 306M | } | 505 | 812M | } |
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 | 44.7M | { | 502 | 44.7M | if (op != _Py_NULL) { | 503 | 44.4M | Py_INCREF(op); | 504 | 44.4M | } | 505 | 44.7M | } |
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 | 283k | { | 502 | 283k | if (op != _Py_NULL) { | 503 | 7.03k | Py_INCREF(op); | 504 | 7.03k | } | 505 | 283k | } |
Unexecuted instantiation: _warnings.c:Py_XINCREF Line | Count | Source | 501 | 341 | { | 502 | 341 | if (op != _Py_NULL) { | 503 | 341 | Py_INCREF(op); | 504 | 341 | } | 505 | 341 | } |
Line | Count | Source | 501 | 215M | { | 502 | 215M | if (op != _Py_NULL) { | 503 | 76.8M | Py_INCREF(op); | 504 | 76.8M | } | 505 | 215M | } |
Unexecuted instantiation: codecs.c:Py_XINCREF Unexecuted instantiation: codegen.c:Py_XINCREF Line | Count | Source | 501 | 9.80k | { | 502 | 9.80k | if (op != _Py_NULL) { | 503 | 4.47k | Py_INCREF(op); | 504 | 4.47k | } | 505 | 9.80k | } |
Line | Count | Source | 501 | 14.3k | { | 502 | 14.3k | if (op != _Py_NULL) { | 503 | 0 | Py_INCREF(op); | 504 | 0 | } | 505 | 14.3k | } |
Line | Count | Source | 501 | 30.4M | { | 502 | 30.4M | if (op != _Py_NULL) { | 503 | 30.3M | Py_INCREF(op); | 504 | 30.3M | } | 505 | 30.4M | } |
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.38k | { | 502 | 3.38k | if (op != _Py_NULL) { | 503 | 1.77k | Py_INCREF(op); | 504 | 1.77k | } | 505 | 3.38k | } |
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 Unexecuted instantiation: pystate.c:Py_XINCREF 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 | 16 | { | 502 | 16 | if (op != _Py_NULL) { | 503 | 16 | Py_INCREF(op); | 504 | 16 | } | 505 | 16 | } |
Unexecuted instantiation: thread.c:Py_XINCREF Line | Count | Source | 501 | 62.8M | { | 502 | 62.8M | if (op != _Py_NULL) { | 503 | 32.4M | Py_INCREF(op); | 504 | 32.4M | } | 505 | 62.8M | } |
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 | 32 | { | 502 | 32 | if (op != _Py_NULL) { | 503 | 0 | Py_INCREF(op); | 504 | 0 | } | 505 | 32 | } |
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.02k | { | 502 | 1.02k | if (op != _Py_NULL) { | 503 | 1.02k | Py_INCREF(op); | 504 | 1.02k | } | 505 | 1.02k | } |
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 Unexecuted instantiation: _threadmodule.c:Py_XINCREF 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 | 640 | { | 502 | 640 | if (op != _Py_NULL) { | 503 | 640 | Py_INCREF(op); | 504 | 640 | } | 505 | 640 | } |
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 | 48 | { | 502 | 48 | if (op != _Py_NULL) { | 503 | 48 | Py_INCREF(op); | 504 | 48 | } | 505 | 48 | } |
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 | 15.0M | { | 502 | 15.0M | if (op != _Py_NULL) { | 503 | 14.7M | Py_INCREF(op); | 504 | 14.7M | } | 505 | 15.0M | } |
Unexecuted instantiation: boolobject.c:Py_XINCREF Unexecuted instantiation: bytes_methods.c:Py_XINCREF Unexecuted instantiation: bytearrayobject.c:Py_XINCREF Unexecuted instantiation: capsule.c:Py_XINCREF Line | Count | Source | 501 | 6.69M | { | 502 | 6.69M | if (op != _Py_NULL) { | 503 | 60.5k | Py_INCREF(op); | 504 | 60.5k | } | 505 | 6.69M | } |
Unexecuted instantiation: classobject.c:Py_XINCREF Line | Count | Source | 501 | 6.60k | { | 502 | 6.60k | if (op != _Py_NULL) { | 503 | 6.60k | Py_INCREF(op); | 504 | 6.60k | } | 505 | 6.60k | } |
Unexecuted instantiation: complexobject.c:Py_XINCREF Line | Count | Source | 501 | 45.9k | { | 502 | 45.9k | if (op != _Py_NULL) { | 503 | 43.9k | Py_INCREF(op); | 504 | 43.9k | } | 505 | 45.9k | } |
Unexecuted instantiation: enumobject.c:Py_XINCREF Line | Count | Source | 501 | 1.96k | { | 502 | 1.96k | if (op != _Py_NULL) { | 503 | 0 | Py_INCREF(op); | 504 | 0 | } | 505 | 1.96k | } |
Unexecuted instantiation: fileobject.c:Py_XINCREF Unexecuted instantiation: frameobject.c:Py_XINCREF Line | Count | Source | 501 | 3.41k | { | 502 | 3.41k | if (op != _Py_NULL) { | 503 | 12 | Py_INCREF(op); | 504 | 12 | } | 505 | 3.41k | } |
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 | 614M | { | 502 | 614M | if (op != _Py_NULL) { | 503 | 307M | Py_INCREF(op); | 504 | 307M | } | 505 | 614M | } |
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 | 29.8k | { | 502 | 29.8k | if (op != _Py_NULL) { | 503 | 29.8k | Py_INCREF(op); | 504 | 29.8k | } | 505 | 29.8k | } |
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.86G | # define Py_XINCREF(op) Py_XINCREF(_PyObject_CAST(op)) |
508 | | #endif |
509 | | |
510 | | static inline void Py_XDECREF(PyObject *op) |
511 | 4.73G | { |
512 | 4.73G | if (op != _Py_NULL) { |
513 | 3.79G | Py_DECREF(op); |
514 | 3.79G | } |
515 | 4.73G | } Line | Count | Source | 511 | 7.51M | { | 512 | 7.51M | if (op != _Py_NULL) { | 513 | 67.3k | Py_DECREF(op); | 514 | 67.3k | } | 515 | 7.51M | } |
Unexecuted instantiation: call.c:Py_XDECREF Line | Count | Source | 511 | 52.1M | { | 512 | 52.1M | if (op != _Py_NULL) { | 513 | 20.4M | Py_DECREF(op); | 514 | 20.4M | } | 515 | 52.1M | } |
genericaliasobject.c:Py_XDECREF Line | Count | Source | 511 | 132 | { | 512 | 132 | if (op != _Py_NULL) { | 513 | 88 | Py_DECREF(op); | 514 | 88 | } | 515 | 132 | } |
Line | Count | Source | 511 | 663k | { | 512 | 663k | if (op != _Py_NULL) { | 513 | 8 | Py_DECREF(op); | 514 | 8 | } | 515 | 663k | } |
Line | Count | Source | 511 | 1.40G | { | 512 | 1.40G | if (op != _Py_NULL) { | 513 | 1.37G | Py_DECREF(op); | 514 | 1.37G | } | 515 | 1.40G | } |
Line | Count | Source | 511 | 1.21k | { | 512 | 1.21k | if (op != _Py_NULL) { | 513 | 418 | Py_DECREF(op); | 514 | 418 | } | 515 | 1.21k | } |
Line | Count | Source | 511 | 1.11G | { | 512 | 1.11G | if (op != _Py_NULL) { | 513 | 1.10G | Py_DECREF(op); | 514 | 1.10G | } | 515 | 1.11G | } |
Unexecuted instantiation: memoryobject.c:Py_XDECREF moduleobject.c:Py_XDECREF Line | Count | Source | 511 | 7.38k | { | 512 | 7.38k | if (op != _Py_NULL) { | 513 | 5.69k | Py_DECREF(op); | 514 | 5.69k | } | 515 | 7.38k | } |
Line | Count | Source | 511 | 39.1k | { | 512 | 39.1k | if (op != _Py_NULL) { | 513 | 369 | Py_DECREF(op); | 514 | 369 | } | 515 | 39.1k | } |
Unexecuted instantiation: obmalloc.c:Py_XDECREF Unexecuted instantiation: picklebufobject.c:Py_XDECREF Line | Count | Source | 511 | 48 | { | 512 | 48 | if (op != _Py_NULL) { | 513 | 48 | Py_DECREF(op); | 514 | 48 | } | 515 | 48 | } |
Line | Count | Source | 511 | 290k | { | 512 | 290k | if (op != _Py_NULL) { | 513 | 16 | Py_DECREF(op); | 514 | 16 | } | 515 | 290k | } |
Unexecuted instantiation: sliceobject.c:Py_XDECREF Line | Count | Source | 511 | 95.0k | { | 512 | 95.0k | if (op != _Py_NULL) { | 513 | 95.0k | Py_DECREF(op); | 514 | 95.0k | } | 515 | 95.0k | } |
Unexecuted instantiation: templateobject.c:Py_XDECREF Line | Count | Source | 511 | 665M | { | 512 | 665M | if (op != _Py_NULL) { | 513 | 662M | Py_DECREF(op); | 514 | 662M | } | 515 | 665M | } |
Line | Count | Source | 511 | 18.1M | { | 512 | 18.1M | if (op != _Py_NULL) { | 513 | 14.6M | Py_DECREF(op); | 514 | 14.6M | } | 515 | 18.1M | } |
Unexecuted instantiation: typevarobject.c:Py_XDECREF Unexecuted instantiation: unicode_format.c:Py_XDECREF unicode_formatter.c:Py_XDECREF Line | Count | Source | 511 | 610 | { | 512 | 610 | if (op != _Py_NULL) { | 513 | 256 | Py_DECREF(op); | 514 | 256 | } | 515 | 610 | } |
Unexecuted instantiation: unicode_writer.c:Py_XDECREF Unexecuted instantiation: unicodectype.c:Py_XDECREF unicodeobject.c:Py_XDECREF Line | Count | Source | 511 | 105M | { | 512 | 105M | if (op != _Py_NULL) { | 513 | 81.0M | Py_DECREF(op); | 514 | 81.0M | } | 515 | 105M | } |
Line | Count | Source | 511 | 511 | { | 512 | 511 | if (op != _Py_NULL) { | 513 | 24 | Py_DECREF(op); | 514 | 24 | } | 515 | 511 | } |
weakrefobject.c:Py_XDECREF Line | Count | Source | 511 | 277k | { | 512 | 277k | if (op != _Py_NULL) { | 513 | 188 | Py_DECREF(op); | 514 | 188 | } | 515 | 277k | } |
Line | Count | Source | 511 | 71.6k | { | 512 | 71.6k | if (op != _Py_NULL) { | 513 | 71.6k | Py_DECREF(op); | 514 | 71.6k | } | 515 | 71.6k | } |
Line | Count | Source | 511 | 9.54M | { | 512 | 9.54M | if (op != _Py_NULL) { | 513 | 686k | Py_DECREF(op); | 514 | 686k | } | 515 | 9.54M | } |
Line | Count | Source | 511 | 293k | { | 512 | 293k | if (op != _Py_NULL) { | 513 | 6.16k | Py_DECREF(op); | 514 | 6.16k | } | 515 | 293k | } |
Line | Count | Source | 511 | 141k | { | 512 | 141k | if (op != _Py_NULL) { | 513 | 94.1k | Py_DECREF(op); | 514 | 94.1k | } | 515 | 141k | } |
Unexecuted instantiation: codegen.c:Py_XDECREF Line | Count | Source | 511 | 27.9k | { | 512 | 27.9k | if (op != _Py_NULL) { | 513 | 8.17k | Py_DECREF(op); | 514 | 8.17k | } | 515 | 27.9k | } |
Unexecuted instantiation: context.c:Py_XDECREF Line | Count | Source | 511 | 158M | { | 512 | 158M | if (op != _Py_NULL) { | 513 | 25.3M | Py_DECREF(op); | 514 | 25.3M | } | 515 | 158M | } |
Unexecuted instantiation: flowgraph.c:Py_XDECREF Unexecuted instantiation: frame.c:Py_XDECREF Unexecuted instantiation: future.c:Py_XDECREF Line | Count | Source | 511 | 61.0k | { | 512 | 61.0k | if (op != _Py_NULL) { | 513 | 0 | Py_DECREF(op); | 514 | 0 | } | 515 | 61.0k | } |
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 | 101k | { | 512 | 101k | if (op != _Py_NULL) { | 513 | 72.4k | Py_DECREF(op); | 514 | 72.4k | } | 515 | 101k | } |
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 | 13.9k | { | 512 | 13.9k | if (op != _Py_NULL) { | 513 | 0 | Py_DECREF(op); | 514 | 0 | } | 515 | 13.9k | } |
Line | Count | Source | 511 | 14.0k | { | 512 | 14.0k | if (op != _Py_NULL) { | 513 | 14.0k | Py_DECREF(op); | 514 | 14.0k | } | 515 | 14.0k | } |
Unexecuted instantiation: legacy_tracing.c:Py_XDECREF Unexecuted instantiation: lock.c:Py_XDECREF Line | Count | Source | 511 | 309k | { | 512 | 309k | if (op != _Py_NULL) { | 513 | 309k | Py_DECREF(op); | 514 | 309k | } | 515 | 309k | } |
Line | Count | Source | 511 | 7.05k | { | 512 | 7.05k | if (op != _Py_NULL) { | 513 | 7.05k | Py_DECREF(op); | 514 | 7.05k | } | 515 | 7.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 | 96 | { | 512 | 96 | if (op != _Py_NULL) { | 513 | 96 | Py_DECREF(op); | 514 | 96 | } | 515 | 96 | } |
Unexecuted instantiation: pymath.c:Py_XDECREF Unexecuted instantiation: pystate.c:Py_XDECREF Line | Count | Source | 511 | 126 | { | 512 | 126 | if (op != _Py_NULL) { | 513 | 0 | Py_DECREF(op); | 514 | 0 | } | 515 | 126 | } |
Unexecuted instantiation: pytime.c:Py_XDECREF Unexecuted instantiation: qsbr.c:Py_XDECREF Unexecuted instantiation: bootstrap_hash.c:Py_XDECREF Line | Count | Source | 511 | 989k | { | 512 | 989k | if (op != _Py_NULL) { | 513 | 526k | Py_DECREF(op); | 514 | 526k | } | 515 | 989k | } |
Line | Count | Source | 511 | 171k | { | 512 | 171k | if (op != _Py_NULL) { | 513 | 135k | Py_DECREF(op); | 514 | 135k | } | 515 | 171k | } |
Line | Count | Source | 511 | 3.63k | { | 512 | 3.63k | if (op != _Py_NULL) { | 513 | 3.29k | Py_DECREF(op); | 514 | 3.29k | } | 515 | 3.63k | } |
Unexecuted instantiation: thread.c:Py_XDECREF Line | Count | Source | 511 | 125M | { | 512 | 125M | if (op != _Py_NULL) { | 513 | 64.8M | Py_DECREF(op); | 514 | 64.8M | } | 515 | 125M | } |
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.02k | { | 512 | 1.02k | if (op != _Py_NULL) { | 513 | 0 | Py_DECREF(op); | 514 | 0 | } | 515 | 1.02k | } |
Unexecuted instantiation: _tracemalloc.c:Py_XDECREF Unexecuted instantiation: _suggestions.c:Py_XDECREF _datetimemodule.c:Py_XDECREF Line | Count | Source | 511 | 6 | { | 512 | 6 | if (op != _Py_NULL) { | 513 | 0 | Py_DECREF(op); | 514 | 0 | } | 515 | 6 | } |
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.44k | { | 512 | 9.44k | if (op != _Py_NULL) { | 513 | 9.44k | Py_DECREF(op); | 514 | 9.44k | } | 515 | 9.44k | } |
Line | Count | Source | 511 | 4.15k | { | 512 | 4.15k | if (op != _Py_NULL) { | 513 | 1.02k | Py_DECREF(op); | 514 | 1.02k | } | 515 | 4.15k | } |
Line | Count | Source | 511 | 31.9k | { | 512 | 31.9k | if (op != _Py_NULL) { | 513 | 32 | Py_DECREF(op); | 514 | 32 | } | 515 | 31.9k | } |
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 | 65.1M | { | 512 | 65.1M | if (op != _Py_NULL) { | 513 | 65.1M | Py_DECREF(op); | 514 | 65.1M | } | 515 | 65.1M | } |
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 | 3.48k | { | 512 | 3.48k | if (op != _Py_NULL) { | 513 | 2.53k | Py_DECREF(op); | 514 | 2.53k | } | 515 | 3.48k | } |
_functoolsmodule.c:Py_XDECREF Line | Count | Source | 511 | 31 | { | 512 | 31 | if (op != _Py_NULL) { | 513 | 0 | Py_DECREF(op); | 514 | 0 | } | 515 | 31 | } |
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.06k | { | 512 | 3.06k | if (op != _Py_NULL) { | 513 | 3.06k | Py_DECREF(op); | 514 | 3.06k | } | 515 | 3.06k | } |
Unexecuted instantiation: myreadline.c:Py_XDECREF Line | Count | Source | 511 | 203k | { | 512 | 203k | if (op != _Py_NULL) { | 513 | 0 | Py_DECREF(op); | 514 | 0 | } | 515 | 203k | } |
Unexecuted instantiation: boolobject.c:Py_XDECREF Unexecuted instantiation: bytes_methods.c:Py_XDECREF bytearrayobject.c:Py_XDECREF Line | Count | Source | 511 | 16 | { | 512 | 16 | if (op != _Py_NULL) { | 513 | 16 | Py_DECREF(op); | 514 | 16 | } | 515 | 16 | } |
Line | Count | Source | 511 | 5 | { | 512 | 5 | if (op != _Py_NULL) { | 513 | 5 | Py_DECREF(op); | 514 | 5 | } | 515 | 5 | } |
Line | Count | Source | 511 | 6.69M | { | 512 | 6.69M | if (op != _Py_NULL) { | 513 | 346k | Py_DECREF(op); | 514 | 346k | } | 515 | 6.69M | } |
Line | Count | Source | 511 | 22.9M | { | 512 | 22.9M | if (op != _Py_NULL) { | 513 | 22.9M | Py_DECREF(op); | 514 | 22.9M | } | 515 | 22.9M | } |
Line | Count | Source | 511 | 116k | { | 512 | 116k | if (op != _Py_NULL) { | 513 | 77.7k | Py_DECREF(op); | 514 | 77.7k | } | 515 | 116k | } |
Unexecuted instantiation: complexobject.c:Py_XDECREF Line | Count | Source | 511 | 31.4M | { | 512 | 31.4M | if (op != _Py_NULL) { | 513 | 22.4M | Py_DECREF(op); | 514 | 22.4M | } | 515 | 31.4M | } |
Line | Count | Source | 511 | 20.7M | { | 512 | 20.7M | if (op != _Py_NULL) { | 513 | 13.8M | Py_DECREF(op); | 514 | 13.8M | } | 515 | 20.7M | } |
Line | Count | Source | 511 | 982 | { | 512 | 982 | if (op != _Py_NULL) { | 513 | 0 | Py_DECREF(op); | 514 | 0 | } | 515 | 982 | } |
Unexecuted instantiation: fileobject.c:Py_XDECREF Unexecuted instantiation: frameobject.c:Py_XDECREF Line | Count | Source | 511 | 2.81k | { | 512 | 2.81k | if (op != _Py_NULL) { | 513 | 1.07k | Py_DECREF(op); | 514 | 1.07k | } | 515 | 2.81k | } |
Unexecuted instantiation: interpolationobject.c:Py_XDECREF Line | Count | Source | 511 | 1.38M | { | 512 | 1.38M | if (op != _Py_NULL) { | 513 | 460k | Py_DECREF(op); | 514 | 460k | } | 515 | 1.38M | } |
Line | Count | Source | 511 | 294 | { | 512 | 294 | if (op != _Py_NULL) { | 513 | 246 | Py_DECREF(op); | 514 | 246 | } | 515 | 294 | } |
methodobject.c:Py_XDECREF Line | Count | Source | 511 | 922M | { | 512 | 922M | if (op != _Py_NULL) { | 513 | 314M | Py_DECREF(op); | 514 | 314M | } | 515 | 922M | } |
Unexecuted instantiation: namespaceobject.c:Py_XDECREF Unexecuted instantiation: _contextvars.c:Py_XDECREF Line | Count | Source | 511 | 210 | { | 512 | 210 | if (op != _Py_NULL) { | 513 | 140 | Py_DECREF(op); | 514 | 140 | } | 515 | 210 | } |
Unexecuted instantiation: Python-tokenize.c:Py_XDECREF Unexecuted instantiation: asdl.c:Py_XDECREF Line | Count | Source | 511 | 48.9k | { | 512 | 48.9k | if (op != _Py_NULL) { | 513 | 48.9k | Py_DECREF(op); | 514 | 48.9k | } | 515 | 48.9k | } |
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 | 29.3k | { | 512 | 29.3k | if (op != _Py_NULL) { | 513 | 1.17k | Py_DECREF(op); | 514 | 1.17k | } | 515 | 29.3k | } |
Line | Count | Source | 511 | 30.8k | { | 512 | 30.8k | if (op != _Py_NULL) { | 513 | 1.45k | Py_DECREF(op); | 514 | 1.45k | } | 515 | 30.8k | } |
pegen_errors.c:Py_XDECREF Line | Count | Source | 511 | 10.6k | { | 512 | 10.6k | if (op != _Py_NULL) { | 513 | 9.06k | Py_DECREF(op); | 514 | 9.06k | } | 515 | 10.6k | } |
Unexecuted instantiation: parser.c:Py_XDECREF Unexecuted instantiation: buffer.c:Py_XDECREF Unexecuted instantiation: lexer.c:Py_XDECREF Line | Count | Source | 511 | 92.9k | { | 512 | 92.9k | if (op != _Py_NULL) { | 513 | 21.2k | Py_DECREF(op); | 514 | 21.2k | } | 515 | 92.9k | } |
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.5k | { | 512 | 30.5k | if (op != _Py_NULL) { | 513 | 30.5k | Py_DECREF(op); | 514 | 30.5k | } | 515 | 30.5k | } |
|
516 | | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000 |
517 | 4.74G | # 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.40G | { |
529 | 5.40G | Py_INCREF(obj); |
530 | 5.40G | return obj; |
531 | 5.40G | } Line | Count | Source | 528 | 379k | { | 529 | 379k | Py_INCREF(obj); | 530 | 379k | return obj; | 531 | 379k | } |
Line | Count | Source | 528 | 25.0M | { | 529 | 25.0M | Py_INCREF(obj); | 530 | 25.0M | return obj; | 531 | 25.0M | } |
Line | Count | Source | 528 | 84.7M | { | 529 | 84.7M | Py_INCREF(obj); | 530 | 84.7M | return obj; | 531 | 84.7M | } |
genericaliasobject.c:_Py_NewRef Line | Count | Source | 528 | 860 | { | 529 | 860 | Py_INCREF(obj); | 530 | 860 | return obj; | 531 | 860 | } |
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 | 8.57M | { | 529 | 8.57M | Py_INCREF(obj); | 530 | 8.57M | return obj; | 531 | 8.57M | } |
Line | Count | Source | 528 | 804M | { | 529 | 804M | Py_INCREF(obj); | 530 | 804M | return obj; | 531 | 804M | } |
memoryobject.c:_Py_NewRef Line | Count | Source | 528 | 597k | { | 529 | 597k | Py_INCREF(obj); | 530 | 597k | return obj; | 531 | 597k | } |
moduleobject.c:_Py_NewRef Line | Count | Source | 528 | 1.47k | { | 529 | 1.47k | Py_INCREF(obj); | 530 | 1.47k | return obj; | 531 | 1.47k | } |
Line | Count | Source | 528 | 130M | { | 529 | 130M | Py_INCREF(obj); | 530 | 130M | return obj; | 531 | 130M | } |
Unexecuted instantiation: obmalloc.c:_Py_NewRef Unexecuted instantiation: picklebufobject.c:_Py_NewRef Line | Count | Source | 528 | 48 | { | 529 | 48 | Py_INCREF(obj); | 530 | 48 | return obj; | 531 | 48 | } |
Line | Count | Source | 528 | 1.39M | { | 529 | 1.39M | Py_INCREF(obj); | 530 | 1.39M | return obj; | 531 | 1.39M | } |
Line | Count | Source | 528 | 30.9M | { | 529 | 30.9M | Py_INCREF(obj); | 530 | 30.9M | return obj; | 531 | 30.9M | } |
Unexecuted instantiation: structseq.c:_Py_NewRef templateobject.c:_Py_NewRef Line | Count | Source | 528 | 4 | { | 529 | 4 | Py_INCREF(obj); | 530 | 4 | return obj; | 531 | 4 | } |
Line | Count | Source | 528 | 500M | { | 529 | 500M | Py_INCREF(obj); | 530 | 500M | return obj; | 531 | 500M | } |
Line | Count | Source | 528 | 70.0M | { | 529 | 70.0M | Py_INCREF(obj); | 530 | 70.0M | return obj; | 531 | 70.0M | } |
Unexecuted instantiation: typevarobject.c:_Py_NewRef unicode_format.c:_Py_NewRef Line | Count | Source | 528 | 50.8M | { | 529 | 50.8M | Py_INCREF(obj); | 530 | 50.8M | return obj; | 531 | 50.8M | } |
Unexecuted instantiation: unicode_formatter.c:_Py_NewRef unicode_writer.c:_Py_NewRef Line | Count | Source | 528 | 8.17k | { | 529 | 8.17k | Py_INCREF(obj); | 530 | 8.17k | return obj; | 531 | 8.17k | } |
Unexecuted instantiation: unicodectype.c:_Py_NewRef unicodeobject.c:_Py_NewRef Line | Count | Source | 528 | 177M | { | 529 | 177M | Py_INCREF(obj); | 530 | 177M | return obj; | 531 | 177M | } |
Unexecuted instantiation: unionobject.c:_Py_NewRef Unexecuted instantiation: weakrefobject.c:_Py_NewRef Line | Count | Source | 528 | 14.3k | { | 529 | 14.3k | Py_INCREF(obj); | 530 | 14.3k | return obj; | 531 | 14.3k | } |
Line | Count | Source | 528 | 18.1M | { | 529 | 18.1M | Py_INCREF(obj); | 530 | 18.1M | return obj; | 531 | 18.1M | } |
Line | Count | Source | 528 | 1.56G | { | 529 | 1.56G | Py_INCREF(obj); | 530 | 1.56G | return obj; | 531 | 1.56G | } |
Line | Count | Source | 528 | 2.42M | { | 529 | 2.42M | Py_INCREF(obj); | 530 | 2.42M | return obj; | 531 | 2.42M | } |
Line | Count | Source | 528 | 2.73k | { | 529 | 2.73k | Py_INCREF(obj); | 530 | 2.73k | return obj; | 531 | 2.73k | } |
Line | Count | Source | 528 | 108k | { | 529 | 108k | Py_INCREF(obj); | 530 | 108k | return obj; | 531 | 108k | } |
Line | Count | Source | 528 | 24 | { | 529 | 24 | Py_INCREF(obj); | 530 | 24 | return obj; | 531 | 24 | } |
Line | Count | Source | 528 | 30.4M | { | 529 | 30.4M | Py_INCREF(obj); | 530 | 30.4M | return obj; | 531 | 30.4M | } |
Line | Count | Source | 528 | 96.3k | { | 529 | 96.3k | Py_INCREF(obj); | 530 | 96.3k | return obj; | 531 | 96.3k | } |
Line | Count | Source | 528 | 12.9M | { | 529 | 12.9M | Py_INCREF(obj); | 530 | 12.9M | return obj; | 531 | 12.9M | } |
Unexecuted instantiation: future.c:_Py_NewRef Unexecuted instantiation: gc.c:_Py_NewRef Unexecuted instantiation: gc_gil.c:_Py_NewRef Line | Count | Source | 528 | 749k | { | 529 | 749k | Py_INCREF(obj); | 530 | 749k | return obj; | 531 | 749k | } |
Unexecuted instantiation: ceval_gil.c:_Py_NewRef Unexecuted instantiation: hamt.c:_Py_NewRef Unexecuted instantiation: hashtable.c:_Py_NewRef Line | Count | Source | 528 | 43.7k | { | 529 | 43.7k | Py_INCREF(obj); | 530 | 43.7k | return obj; | 531 | 43.7k | } |
Line | Count | Source | 528 | 468 | { | 529 | 468 | Py_INCREF(obj); | 530 | 468 | return obj; | 531 | 468 | } |
Line | Count | Source | 528 | 272 | { | 529 | 272 | Py_INCREF(obj); | 530 | 272 | return obj; | 531 | 272 | } |
Unexecuted instantiation: instrumentation.c:_Py_NewRef Unexecuted instantiation: instruction_sequence.c:_Py_NewRef Line | Count | Source | 528 | 29.3k | { | 529 | 29.3k | Py_INCREF(obj); | 530 | 29.3k | return obj; | 531 | 29.3k | } |
Unexecuted instantiation: legacy_tracing.c:_Py_NewRef Unexecuted instantiation: lock.c:_Py_NewRef Line | Count | Source | 528 | 327k | { | 529 | 327k | Py_INCREF(obj); | 530 | 327k | return obj; | 531 | 327k | } |
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 | 16 | { | 529 | 16 | Py_INCREF(obj); | 530 | 16 | return obj; | 531 | 16 | } |
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 | 275k | { | 529 | 275k | Py_INCREF(obj); | 530 | 275k | return obj; | 531 | 275k | } |
Line | Count | Source | 528 | 786 | { | 529 | 786 | Py_INCREF(obj); | 530 | 786 | return obj; | 531 | 786 | } |
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 | 36.4k | { | 529 | 36.4k | Py_INCREF(obj); | 530 | 36.4k | return obj; | 531 | 36.4k | } |
signalmodule.c:_Py_NewRef Line | Count | Source | 528 | 1.02k | { | 529 | 1.02k | Py_INCREF(obj); | 530 | 1.02k | return obj; | 531 | 1.02k | } |
Unexecuted instantiation: _tracemalloc.c:_Py_NewRef Unexecuted instantiation: _suggestions.c:_Py_NewRef _datetimemodule.c:_Py_NewRef Line | Count | Source | 528 | 38 | { | 529 | 38 | Py_INCREF(obj); | 530 | 38 | return obj; | 531 | 38 | } |
Unexecuted instantiation: _codecsmodule.c:_Py_NewRef _collectionsmodule.c:_Py_NewRef Line | Count | Source | 528 | 19.9M | { | 529 | 19.9M | Py_INCREF(obj); | 530 | 19.9M | return obj; | 531 | 19.9M | } |
Unexecuted instantiation: errnomodule.c:_Py_NewRef Line | Count | Source | 528 | 48 | { | 529 | 48 | Py_INCREF(obj); | 530 | 48 | return obj; | 531 | 48 | } |
Line | Count | Source | 528 | 40.1k | { | 529 | 40.1k | Py_INCREF(obj); | 530 | 40.1k | return obj; | 531 | 40.1k | } |
Unexecuted instantiation: fileio.c:_Py_NewRef Line | Count | Source | 528 | 10.0k | { | 529 | 10.0k | Py_INCREF(obj); | 530 | 10.0k | return obj; | 531 | 10.0k | } |
Line | Count | Source | 528 | 1.04k | { | 529 | 1.04k | Py_INCREF(obj); | 530 | 1.04k | return obj; | 531 | 1.04k | } |
Line | Count | Source | 528 | 81.5k | { | 529 | 81.5k | Py_INCREF(obj); | 530 | 81.5k | return obj; | 531 | 81.5k | } |
Line | Count | Source | 528 | 15.9k | { | 529 | 15.9k | Py_INCREF(obj); | 530 | 15.9k | return obj; | 531 | 15.9k | } |
itertoolsmodule.c:_Py_NewRef Line | Count | Source | 528 | 270 | { | 529 | 270 | Py_INCREF(obj); | 530 | 270 | return obj; | 531 | 270 | } |
Line | Count | Source | 528 | 144M | { | 529 | 144M | Py_INCREF(obj); | 530 | 144M | return obj; | 531 | 144M | } |
Unexecuted instantiation: _sysconfig.c:_Py_NewRef Unexecuted instantiation: _threadmodule.c:_Py_NewRef 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 | 640 | { | 529 | 640 | Py_INCREF(obj); | 530 | 640 | return obj; | 531 | 640 | } |
_functoolsmodule.c:_Py_NewRef Line | Count | Source | 528 | 505 | { | 529 | 505 | Py_INCREF(obj); | 530 | 505 | return obj; | 531 | 505 | } |
Unexecuted instantiation: _localemodule.c:_Py_NewRef Unexecuted instantiation: _opcode.c:_Py_NewRef Line | Count | Source | 528 | 1.48M | { | 529 | 1.48M | Py_INCREF(obj); | 530 | 1.48M | return obj; | 531 | 1.48M | } |
Unexecuted instantiation: _stat.c:_Py_NewRef Unexecuted instantiation: symtablemodule.c:_Py_NewRef Unexecuted instantiation: pwdmodule.c:_Py_NewRef Line | Count | Source | 528 | 128 | { | 529 | 128 | Py_INCREF(obj); | 530 | 128 | return obj; | 531 | 128 | } |
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 | 455M | { | 529 | 455M | Py_INCREF(obj); | 530 | 455M | return obj; | 531 | 455M | } |
Unexecuted instantiation: boolobject.c:_Py_NewRef Unexecuted instantiation: bytes_methods.c:_Py_NewRef bytearrayobject.c:_Py_NewRef Line | Count | Source | 528 | 36 | { | 529 | 36 | Py_INCREF(obj); | 530 | 36 | return obj; | 531 | 36 | } |
Unexecuted instantiation: capsule.c:_Py_NewRef Unexecuted instantiation: cellobject.c:_Py_NewRef Line | Count | Source | 528 | 45.8M | { | 529 | 45.8M | Py_INCREF(obj); | 530 | 45.8M | return obj; | 531 | 45.8M | } |
Line | Count | Source | 528 | 497k | { | 529 | 497k | Py_INCREF(obj); | 530 | 497k | return obj; | 531 | 497k | } |
Unexecuted instantiation: complexobject.c:_Py_NewRef Line | Count | Source | 528 | 22.4M | { | 529 | 22.4M | Py_INCREF(obj); | 530 | 22.4M | return obj; | 531 | 22.4M | } |
Line | Count | Source | 528 | 4 | { | 529 | 4 | Py_INCREF(obj); | 530 | 4 | return obj; | 531 | 4 | } |
Line | Count | Source | 528 | 44.0M | { | 529 | 44.0M | Py_INCREF(obj); | 530 | 44.0M | return obj; | 531 | 44.0M | } |
Unexecuted instantiation: fileobject.c:_Py_NewRef Line | Count | Source | 528 | 3.57k | { | 529 | 3.57k | Py_INCREF(obj); | 530 | 3.57k | return obj; | 531 | 3.57k | } |
Line | Count | Source | 528 | 26.3M | { | 529 | 26.3M | Py_INCREF(obj); | 530 | 26.3M | return obj; | 531 | 26.3M | } |
Unexecuted instantiation: interpolationobject.c:_Py_NewRef Line | Count | Source | 528 | 922k | { | 529 | 922k | Py_INCREF(obj); | 530 | 922k | return obj; | 531 | 922k | } |
Line | Count | Source | 528 | 172 | { | 529 | 172 | Py_INCREF(obj); | 530 | 172 | return obj; | 531 | 172 | } |
methodobject.c:_Py_NewRef Line | Count | Source | 528 | 7.02M | { | 529 | 7.02M | Py_INCREF(obj); | 530 | 7.02M | return obj; | 531 | 7.02M | } |
Unexecuted instantiation: namespaceobject.c:_Py_NewRef Unexecuted instantiation: _contextvars.c:_Py_NewRef Line | Count | Source | 528 | 405k | { | 529 | 405k | Py_INCREF(obj); | 530 | 405k | return obj; | 531 | 405k | } |
Unexecuted instantiation: Python-tokenize.c:_Py_NewRef Unexecuted instantiation: asdl.c:_Py_NewRef Line | Count | Source | 528 | 45.7k | { | 529 | 45.7k | Py_INCREF(obj); | 530 | 45.7k | return obj; | 531 | 45.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.7k | { | 529 | 18.7k | Py_INCREF(obj); | 530 | 18.7k | return obj; | 531 | 18.7k | } |
Unexecuted instantiation: pegen_errors.c:_Py_NewRef Unexecuted instantiation: parser.c:_Py_NewRef Unexecuted instantiation: buffer.c:_Py_NewRef Unexecuted instantiation: lexer.c:_Py_NewRef Unexecuted instantiation: state.c:_Py_NewRef Unexecuted instantiation: readline_tokenizer.c:_Py_NewRef Unexecuted instantiation: string_tokenizer.c:_Py_NewRef Unexecuted instantiation: utf8_tokenizer.c:_Py_NewRef Unexecuted instantiation: getcompiler.c:_Py_NewRef Unexecuted instantiation: mystrtoul.c:_Py_NewRef Unexecuted instantiation: token.c:_Py_NewRef Unexecuted instantiation: action_helpers.c:_Py_NewRef Unexecuted instantiation: string_parser.c:_Py_NewRef |
532 | | |
533 | | static inline PyObject* _Py_XNewRef(PyObject *obj) |
534 | 1.65G | { |
535 | 1.65G | Py_XINCREF(obj); |
536 | 1.65G | return obj; |
537 | 1.65G | } Unexecuted instantiation: bytesobject.c:_Py_XNewRef Unexecuted instantiation: call.c:_Py_XNewRef Line | Count | Source | 534 | 62.3M | { | 535 | 62.3M | Py_XINCREF(obj); | 536 | 62.3M | return obj; | 537 | 62.3M | } |
Unexecuted instantiation: genericaliasobject.c:_Py_XNewRef Unexecuted instantiation: floatobject.c:_Py_XNewRef Line | Count | Source | 534 | 1.01M | { | 535 | 1.01M | Py_XINCREF(obj); | 536 | 1.01M | return obj; | 537 | 1.01M | } |
Unexecuted instantiation: longobject.c:_Py_XNewRef Line | Count | Source | 534 | 812M | { | 535 | 812M | Py_XINCREF(obj); | 536 | 812M | return obj; | 537 | 812M | } |
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 | 278k | { | 535 | 278k | Py_XINCREF(obj); | 536 | 278k | return obj; | 537 | 278k | } |
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 | 283k | { | 535 | 283k | Py_XINCREF(obj); | 536 | 283k | return obj; | 537 | 283k | } |
Unexecuted instantiation: _warnings.c:_Py_XNewRef bltinmodule.c:_Py_XNewRef Line | Count | Source | 534 | 341 | { | 535 | 341 | Py_XINCREF(obj); | 536 | 341 | return obj; | 537 | 341 | } |
Line | Count | Source | 534 | 76.8M | { | 535 | 76.8M | Py_XINCREF(obj); | 536 | 76.8M | return obj; | 537 | 76.8M | } |
Unexecuted instantiation: codecs.c:_Py_XNewRef Unexecuted instantiation: codegen.c:_Py_XNewRef Line | Count | Source | 534 | 9.80k | { | 535 | 9.80k | Py_XINCREF(obj); | 536 | 9.80k | return obj; | 537 | 9.80k | } |
Line | Count | Source | 534 | 24 | { | 535 | 24 | Py_XINCREF(obj); | 536 | 24 | return obj; | 537 | 24 | } |
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.38k | { | 535 | 3.38k | Py_XINCREF(obj); | 536 | 3.38k | return obj; | 537 | 3.38k | } |
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 Unexecuted instantiation: pystate.c:_Py_XNewRef 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 | 16 | { | 535 | 16 | Py_XINCREF(obj); | 536 | 16 | return obj; | 537 | 16 | } |
Unexecuted instantiation: thread.c:_Py_XNewRef Line | Count | Source | 534 | 62.8M | { | 535 | 62.8M | Py_XINCREF(obj); | 536 | 62.8M | return obj; | 537 | 62.8M | } |
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 | 32 | { | 535 | 32 | Py_XINCREF(obj); | 536 | 32 | return obj; | 537 | 32 | } |
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 Unexecuted instantiation: _threadmodule.c:_Py_XNewRef 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 | 640 | { | 535 | 640 | Py_XINCREF(obj); | 536 | 640 | return obj; | 537 | 640 | } |
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 | 48 | { | 535 | 48 | Py_XINCREF(obj); | 536 | 48 | return obj; | 537 | 48 | } |
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 | 15.0M | { | 535 | 15.0M | Py_XINCREF(obj); | 536 | 15.0M | return obj; | 537 | 15.0M | } |
Unexecuted instantiation: boolobject.c:_Py_XNewRef Unexecuted instantiation: bytes_methods.c:_Py_XNewRef Unexecuted instantiation: bytearrayobject.c:_Py_XNewRef Unexecuted instantiation: capsule.c:_Py_XNewRef Line | Count | Source | 534 | 6.69M | { | 535 | 6.69M | Py_XINCREF(obj); | 536 | 6.69M | return obj; | 537 | 6.69M | } |
Unexecuted instantiation: classobject.c:_Py_XNewRef Line | Count | Source | 534 | 6.60k | { | 535 | 6.60k | Py_XINCREF(obj); | 536 | 6.60k | return obj; | 537 | 6.60k | } |
Unexecuted instantiation: complexobject.c:_Py_XNewRef descrobject.c:_Py_XNewRef Line | Count | Source | 534 | 45.9k | { | 535 | 45.9k | Py_XINCREF(obj); | 536 | 45.9k | return obj; | 537 | 45.9k | } |
Unexecuted instantiation: enumobject.c:_Py_XNewRef Unexecuted instantiation: genobject.c:_Py_XNewRef Unexecuted instantiation: fileobject.c:_Py_XNewRef Unexecuted instantiation: frameobject.c:_Py_XNewRef Line | Count | Source | 534 | 3.41k | { | 535 | 3.41k | Py_XINCREF(obj); | 536 | 3.41k | return obj; | 537 | 3.41k | } |
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 | 614M | { | 535 | 614M | Py_XINCREF(obj); | 536 | 614M | return obj; | 537 | 614M | } |
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 | 29.3k | { | 535 | 29.3k | Py_XINCREF(obj); | 536 | 29.3k | return obj; | 537 | 29.3k | } |
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 | 5.30G | # define Py_NewRef(obj) _Py_NewRef(_PyObject_CAST(obj)) |
544 | 1.63G | # 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 |