/src/cpython/Include/refcount.h
Line | Count | Source (jump to first uncovered line) |
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.26G | #define _Py_IMMORTAL_INITIAL_REFCNT (3ULL << 30) |
47 | 0 | #define _Py_IMMORTAL_MINIMUM_REFCNT (1ULL << 31) |
48 | 255M | #define _Py_STATIC_FLAG_BITS ((Py_ssize_t)(_Py_STATICALLY_ALLOCATED_FLAG | _Py_IMMORTAL_FLAGS)) |
49 | 255M | #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 | 890M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { |
103 | 890M | #if !defined(Py_GIL_DISABLED) |
104 | 890M | 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 | 890M | } Line | Count | Source | 102 | 239k | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 239k | #if !defined(Py_GIL_DISABLED) | 104 | 239k | 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 | 239k | } |
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 | 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 | } |
Line | Count | Source | 102 | 541M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 541M | #if !defined(Py_GIL_DISABLED) | 104 | 541M | 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 | 541M | } |
Unexecuted instantiation: memoryobject.c:_Py_REFCNT Unexecuted instantiation: moduleobject.c:_Py_REFCNT Line | Count | Source | 102 | 56.9M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 56.9M | #if !defined(Py_GIL_DISABLED) | 104 | 56.9M | return ob->ob_refcnt; | 105 | | #else | 106 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 107 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 108 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 109 | | } | 110 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 111 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 112 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 113 | | #endif | 114 | 56.9M | } |
Unexecuted instantiation: obmalloc.c:_Py_REFCNT Unexecuted instantiation: picklebufobject.c:_Py_REFCNT Unexecuted instantiation: rangeobject.c:_Py_REFCNT Line | Count | Source | 102 | 1.32k | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 1.32k | #if !defined(Py_GIL_DISABLED) | 104 | 1.32k | 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.32k | } |
Unexecuted instantiation: sliceobject.c:_Py_REFCNT Unexecuted instantiation: structseq.c:_Py_REFCNT Unexecuted instantiation: templateobject.c:_Py_REFCNT Line | Count | Source | 102 | 70.9k | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 70.9k | #if !defined(Py_GIL_DISABLED) | 104 | 70.9k | 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 | 70.9k | } |
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 unicodeobject.c:_Py_REFCNT Line | Count | Source | 102 | 58.7M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 58.7M | #if !defined(Py_GIL_DISABLED) | 104 | 58.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 | 58.7M | } |
Unexecuted instantiation: unicodectype.c:_Py_REFCNT Unexecuted instantiation: unionobject.c:_Py_REFCNT weakrefobject.c:_Py_REFCNT Line | Count | Source | 102 | 35.2M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 35.2M | #if !defined(Py_GIL_DISABLED) | 104 | 35.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 | 35.2M | } |
Unexecuted instantiation: _warnings.c:_Py_REFCNT Line | Count | Source | 102 | 20.4M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 20.4M | #if !defined(Py_GIL_DISABLED) | 104 | 20.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 | 20.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 | 22.0M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 22.0M | #if !defined(Py_GIL_DISABLED) | 104 | 22.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 | 22.0M | } |
Unexecuted instantiation: future.c:_Py_REFCNT Line | Count | Source | 102 | 40.6M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 40.6M | #if !defined(Py_GIL_DISABLED) | 104 | 40.6M | return ob->ob_refcnt; | 105 | | #else | 106 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 107 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 108 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 109 | | } | 110 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 111 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 112 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 113 | | #endif | 114 | 40.6M | } |
Unexecuted instantiation: gc_gil.c:_Py_REFCNT Unexecuted instantiation: getargs.c:_Py_REFCNT Unexecuted instantiation: ceval_gil.c:_Py_REFCNT Unexecuted instantiation: hamt.c:_Py_REFCNT Unexecuted instantiation: hashtable.c:_Py_REFCNT Line | Count | Source | 102 | 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 | 157k | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 157k | #if !defined(Py_GIL_DISABLED) | 104 | 157k | 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 | 157k | } |
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: formatter_unicode.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.1k | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 16.1k | #if !defined(Py_GIL_DISABLED) | 104 | 16.1k | return ob->ob_refcnt; | 105 | | #else | 106 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 107 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 108 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 109 | | } | 110 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 111 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 112 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 113 | | #endif | 114 | 16.1k | } |
Unexecuted instantiation: complexobject.c:_Py_REFCNT Unexecuted instantiation: descrobject.c:_Py_REFCNT Line | Count | Source | 102 | 88.8M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 88.8M | #if !defined(Py_GIL_DISABLED) | 104 | 88.8M | return ob->ob_refcnt; | 105 | | #else | 106 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local); | 107 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { | 108 | | return _Py_IMMORTAL_INITIAL_REFCNT; | 109 | | } | 110 | | Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared); | 111 | | return _Py_STATIC_CAST(Py_ssize_t, local) + | 112 | | Py_ARITHMETIC_RIGHT_SHIFT(Py_ssize_t, shared, _Py_REF_SHARED_SHIFT); | 113 | | #endif | 114 | 88.8M | } |
Unexecuted instantiation: genobject.c:_Py_REFCNT Unexecuted instantiation: fileobject.c:_Py_REFCNT Unexecuted instantiation: frameobject.c:_Py_REFCNT Line | Count | Source | 102 | 25.4M | static inline Py_ssize_t _Py_REFCNT(PyObject *ob) { | 103 | 25.4M | #if !defined(Py_GIL_DISABLED) | 104 | 25.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 | 25.4M | } |
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 | 588M | # define Py_REFCNT(ob) _Py_REFCNT(_PyObject_CAST(ob)) |
117 | | #endif |
118 | | #endif |
119 | | |
120 | | #ifndef _Py_OPAQUE_PYOBJECT |
121 | | static inline Py_ALWAYS_INLINE int _Py_IsImmortal(PyObject *op) |
122 | 14.8G | { |
123 | | #if defined(Py_GIL_DISABLED) |
124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == |
125 | | _Py_IMMORTAL_REFCNT_LOCAL); |
126 | | #elif SIZEOF_VOID_P > 4 |
127 | 14.8G | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; |
128 | | #else |
129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; |
130 | | #endif |
131 | 14.8G | } bytesobject.c:_Py_IsImmortal Line | Count | Source | 122 | 5.33M | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 5.33M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 5.33M | } |
Line | Count | Source | 122 | 123M | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 123M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 123M | } |
exceptions.c:_Py_IsImmortal Line | Count | Source | 122 | 103M | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 103M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 103M | } |
genericaliasobject.c:_Py_IsImmortal Line | Count | Source | 122 | 88 | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 88 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 88 | } |
floatobject.c:_Py_IsImmortal Line | Count | Source | 122 | 8 | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 8 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 8 | } |
listobject.c:_Py_IsImmortal Line | Count | Source | 122 | 1.49G | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 1.49G | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 1.49G | } |
longobject.c:_Py_IsImmortal Line | Count | Source | 122 | 19.2M | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 19.2M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 19.2M | } |
dictobject.c:_Py_IsImmortal Line | Count | Source | 122 | 1.58G | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 1.58G | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 1.58G | } |
memoryobject.c:_Py_IsImmortal Line | Count | Source | 122 | 666k | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 666k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 666k | } |
moduleobject.c:_Py_IsImmortal Line | Count | Source | 122 | 46.0k | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 46.0k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 46.0k | } |
Line | Count | Source | 122 | 438M | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 438M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 438M | } |
Unexecuted instantiation: obmalloc.c:_Py_IsImmortal Unexecuted instantiation: picklebufobject.c:_Py_IsImmortal rangeobject.c:_Py_IsImmortal Line | Count | Source | 122 | 32.9M | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 32.9M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 32.9M | } |
setobject.c:_Py_IsImmortal Line | Count | Source | 122 | 1.18M | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 1.18M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 1.18M | } |
sliceobject.c:_Py_IsImmortal Line | Count | Source | 122 | 137M | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 137M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 137M | } |
structseq.c:_Py_IsImmortal Line | Count | Source | 122 | 92.4k | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 92.4k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 92.4k | } |
templateobject.c:_Py_IsImmortal Line | Count | Source | 122 | 4 | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 4 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 4 | } |
tupleobject.c:_Py_IsImmortal Line | Count | Source | 122 | 924M | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 924M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 924M | } |
typeobject.c:_Py_IsImmortal Line | Count | Source | 122 | 750M | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 750M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 750M | } |
Unexecuted instantiation: typevarobject.c:_Py_IsImmortal unicodeobject.c:_Py_IsImmortal Line | Count | Source | 122 | 205M | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 205M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 205M | } |
Unexecuted instantiation: unicodectype.c:_Py_IsImmortal unionobject.c:_Py_IsImmortal Line | Count | Source | 122 | 950 | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 950 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 950 | } |
weakrefobject.c:_Py_IsImmortal Line | Count | Source | 122 | 12.0k | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 12.0k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 12.0k | } |
_warnings.c:_Py_IsImmortal Line | Count | Source | 122 | 163k | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 163k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 163k | } |
bltinmodule.c:_Py_IsImmortal Line | Count | Source | 122 | 116M | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 116M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 116M | } |
Line | Count | Source | 122 | 5.56G | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 5.56G | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 5.56G | } |
Line | Count | Source | 122 | 6.14M | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 6.14M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 6.14M | } |
Line | Count | Source | 122 | 145k | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 145k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 145k | } |
Line | Count | Source | 122 | 590k | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 590k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 590k | } |
Line | Count | Source | 122 | 32 | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 32 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 32 | } |
Line | Count | Source | 122 | 72.1M | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 72.1M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 72.1M | } |
flowgraph.c:_Py_IsImmortal Line | Count | Source | 122 | 70.5k | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 70.5k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 70.5k | } |
Line | Count | Source | 122 | 33.0M | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 33.0M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 33.0M | } |
Unexecuted instantiation: future.c:_Py_IsImmortal Line | Count | Source | 122 | 1.19G | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 1.19G | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 1.19G | } |
Unexecuted instantiation: gc_gil.c:_Py_IsImmortal Line | Count | Source | 122 | 1.56M | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 1.56M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 1.56M | } |
Unexecuted instantiation: ceval_gil.c:_Py_IsImmortal Unexecuted instantiation: hamt.c:_Py_IsImmortal Unexecuted instantiation: hashtable.c:_Py_IsImmortal Line | Count | Source | 122 | 165k | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 165k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 165k | } |
importdl.c:_Py_IsImmortal Line | Count | Source | 122 | 1.20k | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 1.20k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 1.20k | } |
initconfig.c:_Py_IsImmortal Line | Count | Source | 122 | 2.20k | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 2.20k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 2.20k | } |
instrumentation.c:_Py_IsImmortal Line | Count | Source | 122 | 384 | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 384 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 384 | } |
instruction_sequence.c:_Py_IsImmortal Line | Count | Source | 122 | 1 | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 1 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 1 | } |
intrinsics.c:_Py_IsImmortal Line | Count | Source | 122 | 28.6k | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 28.6k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 28.6k | } |
Unexecuted instantiation: legacy_tracing.c:_Py_IsImmortal Unexecuted instantiation: lock.c:_Py_IsImmortal Line | Count | Source | 122 | 316k | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 316k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 316k | } |
modsupport.c:_Py_IsImmortal Line | Count | Source | 122 | 17.7k | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 17.7k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 17.7k | } |
Unexecuted instantiation: mysnprintf.c:_Py_IsImmortal Unexecuted instantiation: parking_lot.c:_Py_IsImmortal Unexecuted instantiation: preconfig.c:_Py_IsImmortal Line | Count | Source | 122 | 4.47M | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 4.47M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 4.47M | } |
Unexecuted instantiation: pyctype.c:_Py_IsImmortal Unexecuted instantiation: pyhash.c:_Py_IsImmortal pylifecycle.c:_Py_IsImmortal Line | Count | Source | 122 | 576 | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 576 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 576 | } |
Unexecuted instantiation: pymath.c:_Py_IsImmortal Unexecuted instantiation: pystate.c:_Py_IsImmortal pythonrun.c:_Py_IsImmortal Line | Count | Source | 122 | 190 | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 190 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 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 | 122 | 506k | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 506k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 506k | } |
symtable.c:_Py_IsImmortal Line | Count | Source | 122 | 775k | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 775k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 775k | } |
sysmodule.c:_Py_IsImmortal Line | Count | Source | 122 | 1.90k | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 1.90k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 1.90k | } |
Unexecuted instantiation: thread.c:_Py_IsImmortal traceback.c:_Py_IsImmortal Line | Count | Source | 122 | 62.8M | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 62.8M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 62.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 formatter_unicode.c:_Py_IsImmortal Line | Count | Source | 122 | 256 | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 256 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 256 | } |
fileutils.c:_Py_IsImmortal Line | Count | Source | 122 | 11.6k | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 11.6k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 11.6k | } |
Unexecuted instantiation: suggestions.c:_Py_IsImmortal Unexecuted instantiation: perf_trampoline.c:_Py_IsImmortal Unexecuted instantiation: perf_jit_trampoline.c:_Py_IsImmortal Unexecuted instantiation: remote_debugging.c:_Py_IsImmortal 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 | 122 | 50.1k | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 50.1k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 50.1k | } |
signalmodule.c:_Py_IsImmortal Line | Count | Source | 122 | 32 | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 32 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 32 | } |
Unexecuted instantiation: _tracemalloc.c:_Py_IsImmortal Unexecuted instantiation: _suggestions.c:_Py_IsImmortal _datetimemodule.c:_Py_IsImmortal Line | Count | Source | 122 | 262 | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 262 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 262 | } |
Unexecuted instantiation: _codecsmodule.c:_Py_IsImmortal _collectionsmodule.c:_Py_IsImmortal Line | Count | Source | 122 | 110k | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 110k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 110k | } |
Unexecuted instantiation: errnomodule.c:_Py_IsImmortal _iomodule.c:_Py_IsImmortal Line | Count | Source | 122 | 6.34k | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 6.34k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 6.34k | } |
Line | Count | Source | 122 | 119k | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 119k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 119k | } |
Line | Count | Source | 122 | 3.48k | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 3.48k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 3.48k | } |
Line | Count | Source | 122 | 28.5k | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 28.5k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 28.5k | } |
bufferedio.c:_Py_IsImmortal Line | Count | Source | 122 | 7.17k | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 7.17k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 7.17k | } |
Line | Count | Source | 122 | 47.8k | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 47.8k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 47.8k | } |
stringio.c:_Py_IsImmortal Line | Count | Source | 122 | 288k | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 288k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 288k | } |
itertoolsmodule.c:_Py_IsImmortal Line | Count | Source | 122 | 928 | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 928 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 928 | } |
Line | Count | Source | 122 | 537M | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 537M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 537M | } |
Unexecuted instantiation: _sysconfig.c:_Py_IsImmortal _threadmodule.c:_Py_IsImmortal Line | Count | Source | 122 | 5.08k | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 5.08k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 5.08k | } |
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 | 122 | 29.2k | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 29.2k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 29.2k | } |
_functoolsmodule.c:_Py_IsImmortal Line | Count | Source | 122 | 251 | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 251 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 251 | } |
Unexecuted instantiation: _localemodule.c:_Py_IsImmortal Unexecuted instantiation: _opcode.c:_Py_IsImmortal _operator.c:_Py_IsImmortal Line | Count | Source | 122 | 541k | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 541k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 541k | } |
Unexecuted instantiation: _stat.c:_Py_IsImmortal Unexecuted instantiation: symtablemodule.c:_Py_IsImmortal Unexecuted instantiation: pwdmodule.c:_Py_IsImmortal Line | Count | Source | 122 | 528 | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 528 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 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 | 122 | 21.6k | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 21.6k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 21.6k | } |
Unexecuted instantiation: myreadline.c:_Py_IsImmortal abstract.c:_Py_IsImmortal Line | Count | Source | 122 | 449M | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 449M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 449M | } |
Unexecuted instantiation: boolobject.c:_Py_IsImmortal Unexecuted instantiation: bytes_methods.c:_Py_IsImmortal bytearrayobject.c:_Py_IsImmortal Line | Count | Source | 122 | 16 | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 16 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 16 | } |
Line | Count | Source | 122 | 10 | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 10 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 10 | } |
cellobject.c:_Py_IsImmortal Line | Count | Source | 122 | 329k | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 329k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 329k | } |
classobject.c:_Py_IsImmortal Line | Count | Source | 122 | 39.0M | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 39.0M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 39.0M | } |
codeobject.c:_Py_IsImmortal Line | Count | Source | 122 | 121k | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 121k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 121k | } |
Unexecuted instantiation: complexobject.c:_Py_IsImmortal descrobject.c:_Py_IsImmortal Line | Count | Source | 122 | 112M | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 112M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 112M | } |
enumobject.c:_Py_IsImmortal Line | Count | Source | 122 | 225M | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 225M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 225M | } |
genobject.c:_Py_IsImmortal Line | Count | Source | 122 | 127M | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 127M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 127M | } |
fileobject.c:_Py_IsImmortal Line | Count | Source | 122 | 12.7k | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 12.7k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 12.7k | } |
frameobject.c:_Py_IsImmortal Line | Count | Source | 122 | 10.9M | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 10.9M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 10.9M | } |
funcobject.c:_Py_IsImmortal Line | Count | Source | 122 | 140M | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 140M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 140M | } |
interpolationobject.c:_Py_IsImmortal Line | Count | Source | 122 | 16 | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 16 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 16 | } |
iterobject.c:_Py_IsImmortal Line | Count | Source | 122 | 1.03M | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 1.03M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 1.03M | } |
odictobject.c:_Py_IsImmortal Line | Count | Source | 122 | 672 | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 672 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 672 | } |
methodobject.c:_Py_IsImmortal Line | Count | Source | 122 | 279M | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 279M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 279M | } |
namespaceobject.c:_Py_IsImmortal Line | Count | Source | 122 | 16 | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 16 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 16 | } |
Unexecuted instantiation: _contextvars.c:_Py_IsImmortal Python-ast.c:_Py_IsImmortal Line | Count | Source | 122 | 3.93M | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 3.93M | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 3.93M | } |
Unexecuted instantiation: Python-tokenize.c:_Py_IsImmortal Unexecuted instantiation: asdl.c:_Py_IsImmortal assemble.c:_Py_IsImmortal Line | Count | Source | 122 | 47.2k | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 47.2k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 47.2k | } |
Unexecuted instantiation: ast.c:_Py_IsImmortal ast_preprocess.c:_Py_IsImmortal Line | Count | Source | 122 | 2.23k | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 2.23k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 2.23k | } |
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 | 122 | 592 | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 592 | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 592 | } |
Line | Count | Source | 122 | 132k | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 132k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 132k | } |
pegen_errors.c:_Py_IsImmortal Line | Count | Source | 122 | 48.7k | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 48.7k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 48.7k | } |
Unexecuted instantiation: parser.c:_Py_IsImmortal Unexecuted instantiation: buffer.c:_Py_IsImmortal Line | Count | Source | 122 | 13.3k | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 13.3k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 13.3k | } |
Line | Count | Source | 122 | 23.3k | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 23.3k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 23.3k | } |
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 | 122 | 40.2k | { | 123 | | #if defined(Py_GIL_DISABLED) | 124 | | return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) == | 125 | | _Py_IMMORTAL_REFCNT_LOCAL); | 126 | | #elif SIZEOF_VOID_P > 4 | 127 | 40.2k | return _Py_CAST(PY_INT32_T, op->ob_refcnt) < 0; | 128 | | #else | 129 | | return op->ob_refcnt >= _Py_IMMORTAL_MINIMUM_REFCNT; | 130 | | #endif | 131 | 40.2k | } |
|
132 | 16.7G | #define _Py_IsImmortal(op) _Py_IsImmortal(_PyObject_CAST(op)) |
133 | | |
134 | | |
135 | | static inline Py_ALWAYS_INLINE int _Py_IsStaticImmortal(PyObject *op) |
136 | 0 | { |
137 | 0 | #if defined(Py_GIL_DISABLED) || SIZEOF_VOID_P > 4 |
138 | 0 | return (op->ob_flags & _Py_STATICALLY_ALLOCATED_FLAG) != 0; |
139 | 0 | #else |
140 | 0 | return op->ob_refcnt >= _Py_STATIC_IMMORTAL_MINIMUM_REFCNT; |
141 | 0 | #endif |
142 | 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: unicodeobject.c:_Py_IsStaticImmortal Unexecuted instantiation: unicodectype.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: formatter_unicode.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 |
143 | | #define _Py_IsStaticImmortal(op) _Py_IsStaticImmortal(_PyObject_CAST(op)) |
144 | | #endif // !defined(_Py_OPAQUE_PYOBJECT) |
145 | | |
146 | | // Py_SET_REFCNT() implementation for stable ABI |
147 | | PyAPI_FUNC(void) _Py_SetRefcnt(PyObject *ob, Py_ssize_t refcnt); |
148 | | |
149 | 603M | static inline void Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) { |
150 | 603M | assert(refcnt >= 0); |
151 | | #if defined(Py_LIMITED_API) && Py_LIMITED_API+0 >= 0x030d0000 |
152 | | // Stable ABI implements Py_SET_REFCNT() as a function call |
153 | | // on limited C API version 3.13 and newer. |
154 | | _Py_SetRefcnt(ob, refcnt); |
155 | | #else |
156 | | // This immortal check is for code that is unaware of immortal objects. |
157 | | // The runtime tracks these objects and we should avoid as much |
158 | | // as possible having extensions inadvertently change the refcnt |
159 | | // of an immortalized object. |
160 | 603M | if (_Py_IsImmortal(ob)) { |
161 | 447 | return; |
162 | 447 | } |
163 | 603M | #ifndef Py_GIL_DISABLED |
164 | 603M | #if SIZEOF_VOID_P > 4 |
165 | 603M | ob->ob_refcnt = (PY_UINT32_T)refcnt; |
166 | | #else |
167 | | ob->ob_refcnt = refcnt; |
168 | | #endif |
169 | | #else |
170 | | if (_Py_IsOwnedByCurrentThread(ob)) { |
171 | | if ((size_t)refcnt > (size_t)UINT32_MAX) { |
172 | | // On overflow, make the object immortal |
173 | | ob->ob_tid = _Py_UNOWNED_TID; |
174 | | ob->ob_ref_local = _Py_IMMORTAL_REFCNT_LOCAL; |
175 | | ob->ob_ref_shared = 0; |
176 | | } |
177 | | else { |
178 | | // Set local refcount to desired refcount and shared refcount |
179 | | // to zero, but preserve the shared refcount flags. |
180 | | ob->ob_ref_local = _Py_STATIC_CAST(uint32_t, refcnt); |
181 | | ob->ob_ref_shared &= _Py_REF_SHARED_FLAG_MASK; |
182 | | } |
183 | | } |
184 | | else { |
185 | | // Set local refcount to zero and shared refcount to desired refcount. |
186 | | // Mark the object as merged. |
187 | | ob->ob_tid = _Py_UNOWNED_TID; |
188 | | ob->ob_ref_local = 0; |
189 | | ob->ob_ref_shared = _Py_REF_SHARED(refcnt, _Py_REF_MERGED); |
190 | | } |
191 | | #endif // Py_GIL_DISABLED |
192 | 603M | #endif // Py_LIMITED_API+0 < 0x030d0000 |
193 | 603M | } 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 | 149 | 538M | static inline void Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) { | 150 | 538M | assert(refcnt >= 0); | 151 | | #if defined(Py_LIMITED_API) && Py_LIMITED_API+0 >= 0x030d0000 | 152 | | // Stable ABI implements Py_SET_REFCNT() as a function call | 153 | | // on limited C API version 3.13 and newer. | 154 | | _Py_SetRefcnt(ob, refcnt); | 155 | | #else | 156 | | // This immortal check is for code that is unaware of immortal objects. | 157 | | // The runtime tracks these objects and we should avoid as much | 158 | | // as possible having extensions inadvertently change the refcnt | 159 | | // of an immortalized object. | 160 | 538M | if (_Py_IsImmortal(ob)) { | 161 | 0 | return; | 162 | 0 | } | 163 | 538M | #ifndef Py_GIL_DISABLED | 164 | 538M | #if SIZEOF_VOID_P > 4 | 165 | 538M | ob->ob_refcnt = (PY_UINT32_T)refcnt; | 166 | | #else | 167 | | ob->ob_refcnt = refcnt; | 168 | | #endif | 169 | | #else | 170 | | if (_Py_IsOwnedByCurrentThread(ob)) { | 171 | | if ((size_t)refcnt > (size_t)UINT32_MAX) { | 172 | | // On overflow, make the object immortal | 173 | | ob->ob_tid = _Py_UNOWNED_TID; | 174 | | ob->ob_ref_local = _Py_IMMORTAL_REFCNT_LOCAL; | 175 | | ob->ob_ref_shared = 0; | 176 | | } | 177 | | else { | 178 | | // Set local refcount to desired refcount and shared refcount | 179 | | // to zero, but preserve the shared refcount flags. | 180 | | ob->ob_ref_local = _Py_STATIC_CAST(uint32_t, refcnt); | 181 | | ob->ob_ref_shared &= _Py_REF_SHARED_FLAG_MASK; | 182 | | } | 183 | | } | 184 | | else { | 185 | | // Set local refcount to zero and shared refcount to desired refcount. | 186 | | // Mark the object as merged. | 187 | | ob->ob_tid = _Py_UNOWNED_TID; | 188 | | ob->ob_ref_local = 0; | 189 | | ob->ob_ref_shared = _Py_REF_SHARED(refcnt, _Py_REF_MERGED); | 190 | | } | 191 | | #endif // Py_GIL_DISABLED | 192 | 538M | #endif // Py_LIMITED_API+0 < 0x030d0000 | 193 | 538M | } |
Unexecuted instantiation: memoryobject.c:Py_SET_REFCNT moduleobject.c:Py_SET_REFCNT Line | Count | Source | 149 | 447 | static inline void Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) { | 150 | 447 | assert(refcnt >= 0); | 151 | | #if defined(Py_LIMITED_API) && Py_LIMITED_API+0 >= 0x030d0000 | 152 | | // Stable ABI implements Py_SET_REFCNT() as a function call | 153 | | // on limited C API version 3.13 and newer. | 154 | | _Py_SetRefcnt(ob, refcnt); | 155 | | #else | 156 | | // This immortal check is for code that is unaware of immortal objects. | 157 | | // The runtime tracks these objects and we should avoid as much | 158 | | // as possible having extensions inadvertently change the refcnt | 159 | | // of an immortalized object. | 160 | 447 | if (_Py_IsImmortal(ob)) { | 161 | 447 | return; | 162 | 447 | } | 163 | 0 | #ifndef Py_GIL_DISABLED | 164 | 0 | #if SIZEOF_VOID_P > 4 | 165 | 0 | ob->ob_refcnt = (PY_UINT32_T)refcnt; | 166 | | #else | 167 | | ob->ob_refcnt = refcnt; | 168 | | #endif | 169 | | #else | 170 | | if (_Py_IsOwnedByCurrentThread(ob)) { | 171 | | if ((size_t)refcnt > (size_t)UINT32_MAX) { | 172 | | // On overflow, make the object immortal | 173 | | ob->ob_tid = _Py_UNOWNED_TID; | 174 | | ob->ob_ref_local = _Py_IMMORTAL_REFCNT_LOCAL; | 175 | | ob->ob_ref_shared = 0; | 176 | | } | 177 | | else { | 178 | | // Set local refcount to desired refcount and shared refcount | 179 | | // to zero, but preserve the shared refcount flags. | 180 | | ob->ob_ref_local = _Py_STATIC_CAST(uint32_t, refcnt); | 181 | | ob->ob_ref_shared &= _Py_REF_SHARED_FLAG_MASK; | 182 | | } | 183 | | } | 184 | | else { | 185 | | // Set local refcount to zero and shared refcount to desired refcount. | 186 | | // Mark the object as merged. | 187 | | ob->ob_tid = _Py_UNOWNED_TID; | 188 | | ob->ob_ref_local = 0; | 189 | | ob->ob_ref_shared = _Py_REF_SHARED(refcnt, _Py_REF_MERGED); | 190 | | } | 191 | | #endif // Py_GIL_DISABLED | 192 | 0 | #endif // Py_LIMITED_API+0 < 0x030d0000 | 193 | 0 | } |
Line | Count | Source | 149 | 37.9M | static inline void Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) { | 150 | 37.9M | assert(refcnt >= 0); | 151 | | #if defined(Py_LIMITED_API) && Py_LIMITED_API+0 >= 0x030d0000 | 152 | | // Stable ABI implements Py_SET_REFCNT() as a function call | 153 | | // on limited C API version 3.13 and newer. | 154 | | _Py_SetRefcnt(ob, refcnt); | 155 | | #else | 156 | | // This immortal check is for code that is unaware of immortal objects. | 157 | | // The runtime tracks these objects and we should avoid as much | 158 | | // as possible having extensions inadvertently change the refcnt | 159 | | // of an immortalized object. | 160 | 37.9M | if (_Py_IsImmortal(ob)) { | 161 | 0 | return; | 162 | 0 | } | 163 | 37.9M | #ifndef Py_GIL_DISABLED | 164 | 37.9M | #if SIZEOF_VOID_P > 4 | 165 | 37.9M | ob->ob_refcnt = (PY_UINT32_T)refcnt; | 166 | | #else | 167 | | ob->ob_refcnt = refcnt; | 168 | | #endif | 169 | | #else | 170 | | if (_Py_IsOwnedByCurrentThread(ob)) { | 171 | | if ((size_t)refcnt > (size_t)UINT32_MAX) { | 172 | | // On overflow, make the object immortal | 173 | | ob->ob_tid = _Py_UNOWNED_TID; | 174 | | ob->ob_ref_local = _Py_IMMORTAL_REFCNT_LOCAL; | 175 | | ob->ob_ref_shared = 0; | 176 | | } | 177 | | else { | 178 | | // Set local refcount to desired refcount and shared refcount | 179 | | // to zero, but preserve the shared refcount flags. | 180 | | ob->ob_ref_local = _Py_STATIC_CAST(uint32_t, refcnt); | 181 | | ob->ob_ref_shared &= _Py_REF_SHARED_FLAG_MASK; | 182 | | } | 183 | | } | 184 | | else { | 185 | | // Set local refcount to zero and shared refcount to desired refcount. | 186 | | // Mark the object as merged. | 187 | | ob->ob_tid = _Py_UNOWNED_TID; | 188 | | ob->ob_ref_local = 0; | 189 | | ob->ob_ref_shared = _Py_REF_SHARED(refcnt, _Py_REF_MERGED); | 190 | | } | 191 | | #endif // Py_GIL_DISABLED | 192 | 37.9M | #endif // Py_LIMITED_API+0 < 0x030d0000 | 193 | 37.9M | } |
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 unicodeobject.c:Py_SET_REFCNT Line | Count | Source | 149 | 841k | static inline void Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) { | 150 | 841k | assert(refcnt >= 0); | 151 | | #if defined(Py_LIMITED_API) && Py_LIMITED_API+0 >= 0x030d0000 | 152 | | // Stable ABI implements Py_SET_REFCNT() as a function call | 153 | | // on limited C API version 3.13 and newer. | 154 | | _Py_SetRefcnt(ob, refcnt); | 155 | | #else | 156 | | // This immortal check is for code that is unaware of immortal objects. | 157 | | // The runtime tracks these objects and we should avoid as much | 158 | | // as possible having extensions inadvertently change the refcnt | 159 | | // of an immortalized object. | 160 | 841k | if (_Py_IsImmortal(ob)) { | 161 | 0 | return; | 162 | 0 | } | 163 | 841k | #ifndef Py_GIL_DISABLED | 164 | 841k | #if SIZEOF_VOID_P > 4 | 165 | 841k | ob->ob_refcnt = (PY_UINT32_T)refcnt; | 166 | | #else | 167 | | ob->ob_refcnt = refcnt; | 168 | | #endif | 169 | | #else | 170 | | if (_Py_IsOwnedByCurrentThread(ob)) { | 171 | | if ((size_t)refcnt > (size_t)UINT32_MAX) { | 172 | | // On overflow, make the object immortal | 173 | | ob->ob_tid = _Py_UNOWNED_TID; | 174 | | ob->ob_ref_local = _Py_IMMORTAL_REFCNT_LOCAL; | 175 | | ob->ob_ref_shared = 0; | 176 | | } | 177 | | else { | 178 | | // Set local refcount to desired refcount and shared refcount | 179 | | // to zero, but preserve the shared refcount flags. | 180 | | ob->ob_ref_local = _Py_STATIC_CAST(uint32_t, refcnt); | 181 | | ob->ob_ref_shared &= _Py_REF_SHARED_FLAG_MASK; | 182 | | } | 183 | | } | 184 | | else { | 185 | | // Set local refcount to zero and shared refcount to desired refcount. | 186 | | // Mark the object as merged. | 187 | | ob->ob_tid = _Py_UNOWNED_TID; | 188 | | ob->ob_ref_local = 0; | 189 | | ob->ob_ref_shared = _Py_REF_SHARED(refcnt, _Py_REF_MERGED); | 190 | | } | 191 | | #endif // Py_GIL_DISABLED | 192 | 841k | #endif // Py_LIMITED_API+0 < 0x030d0000 | 193 | 841k | } |
Unexecuted instantiation: unicodectype.c:Py_SET_REFCNT 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: formatter_unicode.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 | 149 | 16.1k | static inline void Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) { | 150 | 16.1k | assert(refcnt >= 0); | 151 | | #if defined(Py_LIMITED_API) && Py_LIMITED_API+0 >= 0x030d0000 | 152 | | // Stable ABI implements Py_SET_REFCNT() as a function call | 153 | | // on limited C API version 3.13 and newer. | 154 | | _Py_SetRefcnt(ob, refcnt); | 155 | | #else | 156 | | // This immortal check is for code that is unaware of immortal objects. | 157 | | // The runtime tracks these objects and we should avoid as much | 158 | | // as possible having extensions inadvertently change the refcnt | 159 | | // of an immortalized object. | 160 | 16.1k | if (_Py_IsImmortal(ob)) { | 161 | 0 | return; | 162 | 0 | } | 163 | 16.1k | #ifndef Py_GIL_DISABLED | 164 | 16.1k | #if SIZEOF_VOID_P > 4 | 165 | 16.1k | ob->ob_refcnt = (PY_UINT32_T)refcnt; | 166 | | #else | 167 | | ob->ob_refcnt = refcnt; | 168 | | #endif | 169 | | #else | 170 | | if (_Py_IsOwnedByCurrentThread(ob)) { | 171 | | if ((size_t)refcnt > (size_t)UINT32_MAX) { | 172 | | // On overflow, make the object immortal | 173 | | ob->ob_tid = _Py_UNOWNED_TID; | 174 | | ob->ob_ref_local = _Py_IMMORTAL_REFCNT_LOCAL; | 175 | | ob->ob_ref_shared = 0; | 176 | | } | 177 | | else { | 178 | | // Set local refcount to desired refcount and shared refcount | 179 | | // to zero, but preserve the shared refcount flags. | 180 | | ob->ob_ref_local = _Py_STATIC_CAST(uint32_t, refcnt); | 181 | | ob->ob_ref_shared &= _Py_REF_SHARED_FLAG_MASK; | 182 | | } | 183 | | } | 184 | | else { | 185 | | // Set local refcount to zero and shared refcount to desired refcount. | 186 | | // Mark the object as merged. | 187 | | ob->ob_tid = _Py_UNOWNED_TID; | 188 | | ob->ob_ref_local = 0; | 189 | | ob->ob_ref_shared = _Py_REF_SHARED(refcnt, _Py_REF_MERGED); | 190 | | } | 191 | | #endif // Py_GIL_DISABLED | 192 | 16.1k | #endif // Py_LIMITED_API+0 < 0x030d0000 | 193 | 16.1k | } |
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 | 149 | 25.4M | static inline void Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt) { | 150 | 25.4M | assert(refcnt >= 0); | 151 | | #if defined(Py_LIMITED_API) && Py_LIMITED_API+0 >= 0x030d0000 | 152 | | // Stable ABI implements Py_SET_REFCNT() as a function call | 153 | | // on limited C API version 3.13 and newer. | 154 | | _Py_SetRefcnt(ob, refcnt); | 155 | | #else | 156 | | // This immortal check is for code that is unaware of immortal objects. | 157 | | // The runtime tracks these objects and we should avoid as much | 158 | | // as possible having extensions inadvertently change the refcnt | 159 | | // of an immortalized object. | 160 | 25.4M | if (_Py_IsImmortal(ob)) { | 161 | 0 | return; | 162 | 0 | } | 163 | 25.4M | #ifndef Py_GIL_DISABLED | 164 | 25.4M | #if SIZEOF_VOID_P > 4 | 165 | 25.4M | ob->ob_refcnt = (PY_UINT32_T)refcnt; | 166 | | #else | 167 | | ob->ob_refcnt = refcnt; | 168 | | #endif | 169 | | #else | 170 | | if (_Py_IsOwnedByCurrentThread(ob)) { | 171 | | if ((size_t)refcnt > (size_t)UINT32_MAX) { | 172 | | // On overflow, make the object immortal | 173 | | ob->ob_tid = _Py_UNOWNED_TID; | 174 | | ob->ob_ref_local = _Py_IMMORTAL_REFCNT_LOCAL; | 175 | | ob->ob_ref_shared = 0; | 176 | | } | 177 | | else { | 178 | | // Set local refcount to desired refcount and shared refcount | 179 | | // to zero, but preserve the shared refcount flags. | 180 | | ob->ob_ref_local = _Py_STATIC_CAST(uint32_t, refcnt); | 181 | | ob->ob_ref_shared &= _Py_REF_SHARED_FLAG_MASK; | 182 | | } | 183 | | } | 184 | | else { | 185 | | // Set local refcount to zero and shared refcount to desired refcount. | 186 | | // Mark the object as merged. | 187 | | ob->ob_tid = _Py_UNOWNED_TID; | 188 | | ob->ob_ref_local = 0; | 189 | | ob->ob_ref_shared = _Py_REF_SHARED(refcnt, _Py_REF_MERGED); | 190 | | } | 191 | | #endif // Py_GIL_DISABLED | 192 | 25.4M | #endif // Py_LIMITED_API+0 < 0x030d0000 | 193 | 25.4M | } |
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 |
194 | | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000 |
195 | 603M | # define Py_SET_REFCNT(ob, refcnt) Py_SET_REFCNT(_PyObject_CAST(ob), (refcnt)) |
196 | | #endif |
197 | | |
198 | | |
199 | | /* |
200 | | The macros Py_INCREF(op) and Py_DECREF(op) are used to increment or decrement |
201 | | reference counts. Py_DECREF calls the object's deallocator function when |
202 | | the refcount falls to 0; for |
203 | | objects that don't contain references to other objects or heap memory |
204 | | this can be the standard function free(). Both macros can be used |
205 | | wherever a void expression is allowed. The argument must not be a |
206 | | NULL pointer. If it may be NULL, use Py_XINCREF/Py_XDECREF instead. |
207 | | The macro _Py_NewReference(op) initialize reference counts to 1, and |
208 | | in special builds (Py_REF_DEBUG, Py_TRACE_REFS) performs additional |
209 | | bookkeeping appropriate to the special build. |
210 | | |
211 | | We assume that the reference count field can never overflow; this can |
212 | | be proven when the size of the field is the same as the pointer size, so |
213 | | we ignore the possibility. Provided a C int is at least 32 bits (which |
214 | | is implicitly assumed in many parts of this code), that's enough for |
215 | | about 2**31 references to an object. |
216 | | |
217 | | XXX The following became out of date in Python 2.2, but I'm not sure |
218 | | XXX what the full truth is now. Certainly, heap-allocated type objects |
219 | | XXX can and should be deallocated. |
220 | | Type objects should never be deallocated; the type pointer in an object |
221 | | is not considered to be a reference to the type object, to save |
222 | | complications in the deallocation function. (This is actually a |
223 | | decision that's up to the implementer of each new type so if you want, |
224 | | you can count such references to the type object.) |
225 | | */ |
226 | | |
227 | | #if defined(Py_REF_DEBUG) && !defined(Py_LIMITED_API) |
228 | | PyAPI_FUNC(void) _Py_NegativeRefcount(const char *filename, int lineno, |
229 | | PyObject *op); |
230 | | PyAPI_FUNC(void) _Py_INCREF_IncRefTotal(void); |
231 | | PyAPI_FUNC(void) _Py_DECREF_DecRefTotal(void); |
232 | | #endif // Py_REF_DEBUG && !Py_LIMITED_API |
233 | | |
234 | | PyAPI_FUNC(void) _Py_Dealloc(PyObject *); |
235 | | |
236 | | |
237 | | /* |
238 | | These are provided as conveniences to Python runtime embedders, so that |
239 | | they can have object code that is not dependent on Python compilation flags. |
240 | | */ |
241 | | PyAPI_FUNC(void) Py_IncRef(PyObject *); |
242 | | PyAPI_FUNC(void) Py_DecRef(PyObject *); |
243 | | |
244 | | // Similar to Py_IncRef() and Py_DecRef() but the argument must be non-NULL. |
245 | | // Private functions used by Py_INCREF() and Py_DECREF(). |
246 | | PyAPI_FUNC(void) _Py_IncRef(PyObject *); |
247 | | PyAPI_FUNC(void) _Py_DecRef(PyObject *); |
248 | | |
249 | | static inline Py_ALWAYS_INLINE void Py_INCREF(PyObject *op) |
250 | 8.01G | { |
251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) |
252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API |
253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() |
254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. |
255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. |
256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 |
257 | | _Py_IncRef(op); |
258 | | # else |
259 | | Py_IncRef(op); |
260 | | # endif |
261 | | #else |
262 | | // Non-limited C API and limited C API for Python 3.9 and older access |
263 | | // directly PyObject.ob_refcnt. |
264 | | #if defined(Py_GIL_DISABLED) |
265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); |
266 | | uint32_t new_local = local + 1; |
267 | | if (new_local == 0) { |
268 | | _Py_INCREF_IMMORTAL_STAT_INC(); |
269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing |
270 | | return; |
271 | | } |
272 | | if (_Py_IsOwnedByCurrentThread(op)) { |
273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); |
274 | | } |
275 | | else { |
276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); |
277 | | } |
278 | | #elif SIZEOF_VOID_P > 4 |
279 | 8.01G | PY_UINT32_T cur_refcnt = op->ob_refcnt; |
280 | 8.01G | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { |
281 | | // the object is immortal |
282 | 4.08G | _Py_INCREF_IMMORTAL_STAT_INC(); |
283 | 4.08G | return; |
284 | 4.08G | } |
285 | 3.93G | op->ob_refcnt = cur_refcnt + 1; |
286 | | #else |
287 | | if (_Py_IsImmortal(op)) { |
288 | | _Py_INCREF_IMMORTAL_STAT_INC(); |
289 | | return; |
290 | | } |
291 | | op->ob_refcnt++; |
292 | | #endif |
293 | 3.93G | _Py_INCREF_STAT_INC(); |
294 | | #ifdef Py_REF_DEBUG |
295 | | // Don't count the incref if the object is immortal. |
296 | | if (!_Py_IsImmortal(op)) { |
297 | | _Py_INCREF_IncRefTotal(); |
298 | | } |
299 | | #endif |
300 | 3.93G | #endif |
301 | 3.93G | } Line | Count | Source | 250 | 21.1M | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 21.1M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 21.1M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 19.5M | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 19.5M | return; | 284 | 19.5M | } | 285 | 1.54M | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 1.54M | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 1.54M | #endif | 301 | 1.54M | } |
Line | Count | Source | 250 | 21.2M | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 21.2M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 21.2M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 7.51M | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 7.51M | return; | 284 | 7.51M | } | 285 | 13.7M | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 13.7M | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 13.7M | #endif | 301 | 13.7M | } |
Line | Count | Source | 250 | 78.4M | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 78.4M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 78.4M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 31.2M | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 31.2M | return; | 284 | 31.2M | } | 285 | 47.2M | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 47.2M | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 47.2M | #endif | 301 | 47.2M | } |
genericaliasobject.c:Py_INCREF Line | Count | Source | 250 | 862 | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 862 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 862 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 858 | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 858 | return; | 284 | 858 | } | 285 | 4 | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 4 | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 4 | #endif | 301 | 4 | } |
Line | Count | Source | 250 | 501k | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 501k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 501k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 501k | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 501k | return; | 284 | 501k | } | 285 | 0 | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 0 | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 0 | #endif | 301 | 0 | } |
Line | Count | Source | 250 | 1.12G | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 1.12G | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 1.12G | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 227M | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 227M | return; | 284 | 227M | } | 285 | 898M | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 898M | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 898M | #endif | 301 | 898M | } |
Line | Count | Source | 250 | 92.4M | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 92.4M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 92.4M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 92.4M | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 92.4M | return; | 284 | 92.4M | } | 285 | 4.80k | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 4.80k | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 4.80k | #endif | 301 | 4.80k | } |
Line | Count | Source | 250 | 1.02G | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 1.02G | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 1.02G | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 381M | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 381M | return; | 284 | 381M | } | 285 | 645M | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 645M | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 645M | #endif | 301 | 645M | } |
Line | Count | Source | 250 | 571k | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 571k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 571k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 0 | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 0 | return; | 284 | 0 | } | 285 | 571k | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 571k | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 571k | #endif | 301 | 571k | } |
Line | Count | Source | 250 | 1.44k | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 1.44k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 1.44k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 861 | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 861 | return; | 284 | 861 | } | 285 | 587 | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 587 | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 587 | #endif | 301 | 587 | } |
Line | Count | Source | 250 | 538M | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 538M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 538M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 392M | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 392M | return; | 284 | 392M | } | 285 | 146M | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 146M | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 146M | #endif | 301 | 146M | } |
Unexecuted instantiation: obmalloc.c:Py_INCREF Unexecuted instantiation: picklebufobject.c:Py_INCREF Line | Count | Source | 250 | 64 | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 64 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 64 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 48 | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 48 | return; | 284 | 48 | } | 285 | 16 | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 16 | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 16 | #endif | 301 | 16 | } |
Line | Count | Source | 250 | 1.42M | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 1.42M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 1.42M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 525k | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 525k | return; | 284 | 525k | } | 285 | 899k | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 899k | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 899k | #endif | 301 | 899k | } |
Line | Count | Source | 250 | 45.7M | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 45.7M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 45.7M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 45.7M | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 45.7M | return; | 284 | 45.7M | } | 285 | 0 | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 0 | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 0 | #endif | 301 | 0 | } |
Unexecuted instantiation: structseq.c:Py_INCREF templateobject.c:Py_INCREF Line | Count | Source | 250 | 4 | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 4 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 4 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 2 | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 2 | return; | 284 | 2 | } | 285 | 2 | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 2 | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 2 | #endif | 301 | 2 | } |
Line | Count | Source | 250 | 614M | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 614M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 614M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 436M | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 436M | return; | 284 | 436M | } | 285 | 177M | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 177M | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 177M | #endif | 301 | 177M | } |
Line | Count | Source | 250 | 268M | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 268M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 268M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 87.9M | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 87.9M | return; | 284 | 87.9M | } | 285 | 180M | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 180M | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 180M | #endif | 301 | 180M | } |
Unexecuted instantiation: typevarobject.c:Py_INCREF unicodeobject.c:Py_INCREF Line | Count | Source | 250 | 731M | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 731M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 731M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 637M | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 637M | return; | 284 | 637M | } | 285 | 94.7M | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 94.7M | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 94.7M | #endif | 301 | 94.7M | } |
Unexecuted instantiation: unicodectype.c:Py_INCREF Unexecuted instantiation: unionobject.c:Py_INCREF weakrefobject.c:Py_INCREF Line | Count | Source | 250 | 271k | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 271k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 271k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 1.25k | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 1.25k | return; | 284 | 1.25k | } | 285 | 269k | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 269k | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 269k | #endif | 301 | 269k | } |
Line | Count | Source | 250 | 68.9k | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 68.9k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 68.9k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 21.1k | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 21.1k | return; | 284 | 21.1k | } | 285 | 47.7k | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 47.7k | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 47.7k | #endif | 301 | 47.7k | } |
Line | Count | Source | 250 | 53.4M | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 53.4M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 53.4M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 20.2M | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 20.2M | return; | 284 | 20.2M | } | 285 | 33.1M | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 33.1M | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 33.1M | #endif | 301 | 33.1M | } |
Line | Count | Source | 250 | 1.41G | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 1.41G | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 1.41G | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 801M | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 801M | return; | 284 | 801M | } | 285 | 608M | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 608M | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 608M | #endif | 301 | 608M | } |
Line | Count | Source | 250 | 2.88M | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 2.88M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 2.88M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 513k | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 513k | return; | 284 | 513k | } | 285 | 2.36M | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 2.36M | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 2.36M | #endif | 301 | 2.36M | } |
Line | Count | Source | 250 | 2.72k | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 2.72k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 2.72k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 2.72k | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 2.72k | return; | 284 | 2.72k | } | 285 | 0 | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 0 | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 0 | #endif | 301 | 0 | } |
Line | Count | Source | 250 | 109k | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 109k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 109k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 47.2k | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 47.2k | return; | 284 | 47.2k | } | 285 | 62.7k | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 62.7k | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 62.7k | #endif | 301 | 62.7k | } |
Line | Count | Source | 250 | 24 | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 24 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 24 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 7 | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 7 | return; | 284 | 7 | } | 285 | 17 | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 17 | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 17 | #endif | 301 | 17 | } |
Line | Count | Source | 250 | 58.6M | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 58.6M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 58.6M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 28.7M | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 28.7M | return; | 284 | 28.7M | } | 285 | 29.8M | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 29.8M | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 29.8M | #endif | 301 | 29.8M | } |
Line | Count | Source | 250 | 94.9k | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 94.9k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 94.9k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 44.1k | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 44.1k | return; | 284 | 44.1k | } | 285 | 50.8k | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 50.8k | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 50.8k | #endif | 301 | 50.8k | } |
Line | Count | Source | 250 | 11.5M | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 11.5M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 11.5M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 0 | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 0 | return; | 284 | 0 | } | 285 | 11.5M | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 11.5M | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 11.5M | #endif | 301 | 11.5M | } |
Unexecuted instantiation: future.c:Py_INCREF Line | Count | Source | 250 | 344M | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 344M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 344M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 253M | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 253M | return; | 284 | 253M | } | 285 | 90.6M | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 90.6M | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 90.6M | #endif | 301 | 90.6M | } |
Unexecuted instantiation: gc_gil.c:Py_INCREF Line | Count | Source | 250 | 709k | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 709k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 709k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 120k | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 120k | return; | 284 | 120k | } | 285 | 589k | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 589k | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 589k | #endif | 301 | 589k | } |
Unexecuted instantiation: ceval_gil.c:Py_INCREF Unexecuted instantiation: hamt.c:Py_INCREF Unexecuted instantiation: hashtable.c:Py_INCREF Line | Count | Source | 250 | 81.7k | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 81.7k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 81.7k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 12.3k | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 12.3k | return; | 284 | 12.3k | } | 285 | 69.4k | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 69.4k | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 69.4k | #endif | 301 | 69.4k | } |
Line | Count | Source | 250 | 529 | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 529 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 529 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 422 | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 422 | return; | 284 | 422 | } | 285 | 107 | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 107 | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 107 | #endif | 301 | 107 | } |
Line | Count | Source | 250 | 272 | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 272 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 272 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 272 | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 272 | return; | 284 | 272 | } | 285 | 0 | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 0 | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 0 | #endif | 301 | 0 | } |
Unexecuted instantiation: instrumentation.c:Py_INCREF Unexecuted instantiation: instruction_sequence.c:Py_INCREF Line | Count | Source | 250 | 20.3k | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 20.3k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 20.3k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 0 | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 0 | return; | 284 | 0 | } | 285 | 20.3k | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 20.3k | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 20.3k | #endif | 301 | 20.3k | } |
Unexecuted instantiation: legacy_tracing.c:Py_INCREF Unexecuted instantiation: lock.c:Py_INCREF Line | Count | Source | 250 | 323k | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 323k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 323k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 280k | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 280k | return; | 284 | 280k | } | 285 | 43.8k | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 43.8k | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 43.8k | #endif | 301 | 43.8k | } |
Line | Count | Source | 250 | 291k | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 291k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 291k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 16.8k | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 16.8k | return; | 284 | 16.8k | } | 285 | 274k | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 274k | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 274k | #endif | 301 | 274k | } |
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 | 250 | 16 | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 16 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 16 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 0 | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 0 | return; | 284 | 0 | } | 285 | 16 | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 16 | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 16 | #endif | 301 | 16 | } |
Unexecuted instantiation: pymath.c:Py_INCREF Line | Count | Source | 250 | 2.23k | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 2.23k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 2.23k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 0 | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 0 | return; | 284 | 0 | } | 285 | 2.23k | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 2.23k | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 2.23k | #endif | 301 | 2.23k | } |
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 | 250 | 259k | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 259k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 259k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 258k | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 258k | return; | 284 | 258k | } | 285 | 687 | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 687 | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 687 | #endif | 301 | 687 | } |
Line | Count | Source | 250 | 1.46k | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 1.46k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 1.46k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 897 | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 897 | return; | 284 | 897 | } | 285 | 571 | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 571 | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 571 | #endif | 301 | 571 | } |
Unexecuted instantiation: thread.c:Py_INCREF Line | Count | Source | 250 | 31.4M | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 31.4M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 31.4M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 0 | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 0 | return; | 284 | 0 | } | 285 | 31.4M | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 31.4M | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 31.4M | #endif | 301 | 31.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: formatter_unicode.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 | 250 | 44.7k | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 44.7k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 44.7k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 96 | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 96 | return; | 284 | 96 | } | 285 | 44.6k | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 44.6k | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 44.6k | #endif | 301 | 44.6k | } |
Line | Count | Source | 250 | 1.02k | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 1.02k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 1.02k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 1.02k | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 1.02k | return; | 284 | 1.02k | } | 285 | 0 | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 0 | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 0 | #endif | 301 | 0 | } |
Unexecuted instantiation: _tracemalloc.c:Py_INCREF Unexecuted instantiation: _suggestions.c:Py_INCREF _datetimemodule.c:Py_INCREF Line | Count | Source | 250 | 108 | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 108 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 108 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 76 | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 76 | return; | 284 | 76 | } | 285 | 32 | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 32 | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 32 | #endif | 301 | 32 | } |
Unexecuted instantiation: _codecsmodule.c:Py_INCREF _collectionsmodule.c:Py_INCREF Line | Count | Source | 250 | 16.4M | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 16.4M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 16.4M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 14.0M | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 14.0M | return; | 284 | 14.0M | } | 285 | 2.40M | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 2.40M | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 2.40M | #endif | 301 | 2.40M | } |
Unexecuted instantiation: errnomodule.c:Py_INCREF Line | Count | Source | 250 | 48 | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 48 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 48 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 48 | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 48 | return; | 284 | 48 | } | 285 | 0 | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 0 | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 0 | #endif | 301 | 0 | } |
Line | Count | Source | 250 | 39.4k | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 39.4k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 39.4k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 0 | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 0 | return; | 284 | 0 | } | 285 | 39.4k | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 39.4k | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 39.4k | #endif | 301 | 39.4k | } |
Unexecuted instantiation: fileio.c:Py_INCREF Line | Count | Source | 250 | 10.2k | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 10.2k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 10.2k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 20 | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 20 | return; | 284 | 20 | } | 285 | 10.1k | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 10.1k | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 10.1k | #endif | 301 | 10.1k | } |
Line | Count | Source | 250 | 2.05k | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 2.05k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 2.05k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 3 | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 3 | return; | 284 | 3 | } | 285 | 2.04k | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 2.04k | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 2.04k | #endif | 301 | 2.04k | } |
Line | Count | Source | 250 | 79.0k | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 79.0k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 79.0k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 19.7k | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 19.7k | return; | 284 | 19.7k | } | 285 | 59.3k | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 59.3k | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 59.3k | #endif | 301 | 59.3k | } |
Line | Count | Source | 250 | 15.8k | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 15.8k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 15.8k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 42 | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 42 | return; | 284 | 42 | } | 285 | 15.7k | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 15.7k | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 15.7k | #endif | 301 | 15.7k | } |
itertoolsmodule.c:Py_INCREF Line | Count | Source | 250 | 758 | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 758 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 758 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 350 | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 350 | return; | 284 | 350 | } | 285 | 408 | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 408 | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 408 | #endif | 301 | 408 | } |
Line | Count | Source | 250 | 387M | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 387M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 387M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 128M | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 128M | return; | 284 | 128M | } | 285 | 258M | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 258M | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 258M | #endif | 301 | 258M | } |
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 | 250 | 9.59k | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 9.59k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 9.59k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 9.48k | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 9.48k | return; | 284 | 9.48k | } | 285 | 114 | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 114 | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 114 | #endif | 301 | 114 | } |
_functoolsmodule.c:Py_INCREF Line | Count | Source | 250 | 525 | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 525 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 525 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 157 | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 157 | return; | 284 | 157 | } | 285 | 368 | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 368 | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 368 | #endif | 301 | 368 | } |
Unexecuted instantiation: _localemodule.c:Py_INCREF Unexecuted instantiation: _opcode.c:Py_INCREF Line | Count | Source | 250 | 1.37M | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 1.37M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 1.37M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 1.33M | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 1.33M | return; | 284 | 1.33M | } | 285 | 45.5k | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 45.5k | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 45.5k | #endif | 301 | 45.5k | } |
Unexecuted instantiation: _stat.c:Py_INCREF Unexecuted instantiation: symtablemodule.c:Py_INCREF Unexecuted instantiation: pwdmodule.c:Py_INCREF Line | Count | Source | 250 | 176 | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 176 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 176 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 176 | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 176 | return; | 284 | 176 | } | 285 | 0 | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 0 | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 0 | #endif | 301 | 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 | 250 | 581M | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 581M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 581M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 391M | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 391M | return; | 284 | 391M | } | 285 | 190M | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 190M | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 190M | #endif | 301 | 190M | } |
Unexecuted instantiation: boolobject.c:Py_INCREF Unexecuted instantiation: bytes_methods.c:Py_INCREF bytearrayobject.c:Py_INCREF Line | Count | Source | 250 | 36 | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 36 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 36 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 0 | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 0 | return; | 284 | 0 | } | 285 | 36 | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 36 | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 36 | #endif | 301 | 36 | } |
Unexecuted instantiation: capsule.c:Py_INCREF Line | Count | Source | 250 | 69.4k | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 69.4k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 69.4k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 22.3k | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 22.3k | return; | 284 | 22.3k | } | 285 | 47.1k | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 47.1k | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 47.1k | #endif | 301 | 47.1k | } |
Line | Count | Source | 250 | 39.0M | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 39.0M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 39.0M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 2 | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 2 | return; | 284 | 2 | } | 285 | 39.0M | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 39.0M | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 39.0M | #endif | 301 | 39.0M | } |
Line | Count | Source | 250 | 494k | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 494k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 494k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 257k | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 257k | return; | 284 | 257k | } | 285 | 237k | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 237k | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 237k | #endif | 301 | 237k | } |
complexobject.c:Py_INCREF Line | Count | Source | 250 | 4.04k | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 4.04k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 4.04k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 4.04k | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 4.04k | return; | 284 | 4.04k | } | 285 | 0 | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 0 | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 0 | #endif | 301 | 0 | } |
Line | Count | Source | 250 | 20.9M | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 20.9M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 20.9M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 30.5k | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 30.5k | return; | 284 | 30.5k | } | 285 | 20.9M | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 20.9M | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 20.9M | #endif | 301 | 20.9M | } |
Line | Count | Source | 250 | 88.8M | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 88.8M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 88.8M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 0 | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 0 | return; | 284 | 0 | } | 285 | 88.8M | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 88.8M | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 88.8M | #endif | 301 | 88.8M | } |
Line | Count | Source | 250 | 38.3M | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 38.3M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 38.3M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 38.2M | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 38.2M | return; | 284 | 38.2M | } | 285 | 85.6k | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 85.6k | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 85.6k | #endif | 301 | 85.6k | } |
Unexecuted instantiation: fileobject.c:Py_INCREF Line | Count | Source | 250 | 4.98k | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 4.98k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 4.98k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 0 | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 0 | return; | 284 | 0 | } | 285 | 4.98k | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 4.98k | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 4.98k | #endif | 301 | 4.98k | } |
Line | Count | Source | 250 | 75.1M | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 75.1M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 75.1M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 38.2M | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 38.2M | return; | 284 | 38.2M | } | 285 | 36.9M | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 36.9M | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 36.9M | #endif | 301 | 36.9M | } |
Unexecuted instantiation: interpolationobject.c:Py_INCREF Line | Count | Source | 250 | 690k | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 690k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 690k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 344k | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 344k | return; | 284 | 344k | } | 285 | 345k | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 345k | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 345k | #endif | 301 | 345k | } |
Line | Count | Source | 250 | 480 | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 480 | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 480 | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 304 | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 304 | return; | 284 | 304 | } | 285 | 176 | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 176 | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 176 | #endif | 301 | 176 | } |
Line | Count | Source | 250 | 279M | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 279M | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 279M | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 4.43M | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 4.43M | return; | 284 | 4.43M | } | 285 | 275M | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 275M | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 275M | #endif | 301 | 275M | } |
Unexecuted instantiation: namespaceobject.c:Py_INCREF Unexecuted instantiation: _contextvars.c:Py_INCREF Line | Count | Source | 250 | 553k | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 553k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 553k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 225k | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 225k | return; | 284 | 225k | } | 285 | 327k | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 327k | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 327k | #endif | 301 | 327k | } |
Unexecuted instantiation: Python-tokenize.c:Py_INCREF Unexecuted instantiation: asdl.c:Py_INCREF Line | Count | Source | 250 | 44.0k | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 44.0k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 44.0k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 43.8k | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 43.8k | return; | 284 | 43.8k | } | 285 | 159 | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 159 | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 159 | #endif | 301 | 159 | } |
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 | 250 | 95.1k | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 95.1k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 95.1k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 36.7k | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 36.7k | return; | 284 | 36.7k | } | 285 | 58.4k | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 58.4k | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 58.4k | #endif | 301 | 58.4k | } |
Line | Count | Source | 250 | 22.1k | { | 251 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) | 252 | | // Stable ABI implements Py_INCREF() as a function call on limited C API | 253 | | // version 3.12 and newer, and on Python built in debug mode. _Py_IncRef() | 254 | | // was added to Python 3.10.0a7, use Py_IncRef() on older Python versions. | 255 | | // Py_IncRef() accepts NULL whereas _Py_IncRef() doesn't. | 256 | | # if Py_LIMITED_API+0 >= 0x030a00A7 | 257 | | _Py_IncRef(op); | 258 | | # else | 259 | | Py_IncRef(op); | 260 | | # endif | 261 | | #else | 262 | | // Non-limited C API and limited C API for Python 3.9 and older access | 263 | | // directly PyObject.ob_refcnt. | 264 | | #if defined(Py_GIL_DISABLED) | 265 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); | 266 | | uint32_t new_local = local + 1; | 267 | | if (new_local == 0) { | 268 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 269 | | // local is equal to _Py_IMMORTAL_REFCNT_LOCAL: do nothing | 270 | | return; | 271 | | } | 272 | | if (_Py_IsOwnedByCurrentThread(op)) { | 273 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, new_local); | 274 | | } | 275 | | else { | 276 | | _Py_atomic_add_ssize(&op->ob_ref_shared, (1 << _Py_REF_SHARED_SHIFT)); | 277 | | } | 278 | | #elif SIZEOF_VOID_P > 4 | 279 | 22.1k | PY_UINT32_T cur_refcnt = op->ob_refcnt; | 280 | 22.1k | if (cur_refcnt >= _Py_IMMORTAL_INITIAL_REFCNT) { | 281 | | // the object is immortal | 282 | 1.51k | _Py_INCREF_IMMORTAL_STAT_INC(); | 283 | 1.51k | return; | 284 | 1.51k | } | 285 | 20.6k | op->ob_refcnt = cur_refcnt + 1; | 286 | | #else | 287 | | if (_Py_IsImmortal(op)) { | 288 | | _Py_INCREF_IMMORTAL_STAT_INC(); | 289 | | return; | 290 | | } | 291 | | op->ob_refcnt++; | 292 | | #endif | 293 | 20.6k | _Py_INCREF_STAT_INC(); | 294 | | #ifdef Py_REF_DEBUG | 295 | | // Don't count the incref if the object is immortal. | 296 | | if (!_Py_IsImmortal(op)) { | 297 | | _Py_INCREF_IncRefTotal(); | 298 | | } | 299 | | #endif | 300 | 20.6k | #endif | 301 | 20.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 |
302 | | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000 |
303 | 8.01G | # define Py_INCREF(op) Py_INCREF(_PyObject_CAST(op)) |
304 | | #endif |
305 | | |
306 | | |
307 | | #if !defined(Py_LIMITED_API) && defined(Py_GIL_DISABLED) |
308 | | // Implements Py_DECREF on objects not owned by the current thread. |
309 | | PyAPI_FUNC(void) _Py_DecRefShared(PyObject *); |
310 | | PyAPI_FUNC(void) _Py_DecRefSharedDebug(PyObject *, const char *, int); |
311 | | |
312 | | // Called from Py_DECREF by the owning thread when the local refcount reaches |
313 | | // zero. The call will deallocate the object if the shared refcount is also |
314 | | // zero. Otherwise, the thread gives up ownership and merges the reference |
315 | | // count fields. |
316 | | PyAPI_FUNC(void) _Py_MergeZeroLocalRefcount(PyObject *); |
317 | | #endif |
318 | | |
319 | | #if defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG)) |
320 | | // Stable ABI implements Py_DECREF() as a function call on limited C API |
321 | | // version 3.12 and newer, and on Python built in debug mode. _Py_DecRef() was |
322 | | // added to Python 3.10.0a7, use Py_DecRef() on older Python versions. |
323 | | // Py_DecRef() accepts NULL whereas _Py_DecRef() doesn't. |
324 | 4.40k | static inline void Py_DECREF(PyObject *op) { |
325 | 4.40k | # if Py_LIMITED_API+0 >= 0x030a00A7 |
326 | 4.40k | _Py_DecRef(op); |
327 | | # else |
328 | | Py_DecRef(op); |
329 | | # endif |
330 | 4.40k | } Line | Count | Source | 324 | 4.40k | static inline void Py_DECREF(PyObject *op) { | 325 | 4.40k | # if Py_LIMITED_API+0 >= 0x030a00A7 | 326 | 4.40k | _Py_DecRef(op); | 327 | | # else | 328 | | Py_DecRef(op); | 329 | | # endif | 330 | 4.40k | } |
Unexecuted instantiation: _stat.c:Py_DECREF |
331 | 4.40k | #define Py_DECREF(op) Py_DECREF(_PyObject_CAST(op)) |
332 | | |
333 | | #elif defined(Py_GIL_DISABLED) && defined(Py_REF_DEBUG) |
334 | | static inline void Py_DECREF(const char *filename, int lineno, PyObject *op) |
335 | | { |
336 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); |
337 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { |
338 | | _Py_DECREF_IMMORTAL_STAT_INC(); |
339 | | return; |
340 | | } |
341 | | _Py_DECREF_STAT_INC(); |
342 | | _Py_DECREF_DecRefTotal(); |
343 | | if (_Py_IsOwnedByCurrentThread(op)) { |
344 | | if (local == 0) { |
345 | | _Py_NegativeRefcount(filename, lineno, op); |
346 | | } |
347 | | local--; |
348 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, local); |
349 | | if (local == 0) { |
350 | | _Py_MergeZeroLocalRefcount(op); |
351 | | } |
352 | | } |
353 | | else { |
354 | | _Py_DecRefSharedDebug(op, filename, lineno); |
355 | | } |
356 | | } |
357 | | #define Py_DECREF(op) Py_DECREF(__FILE__, __LINE__, _PyObject_CAST(op)) |
358 | | |
359 | | #elif defined(Py_GIL_DISABLED) |
360 | | static inline void Py_DECREF(PyObject *op) |
361 | | { |
362 | | uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local); |
363 | | if (local == _Py_IMMORTAL_REFCNT_LOCAL) { |
364 | | _Py_DECREF_IMMORTAL_STAT_INC(); |
365 | | return; |
366 | | } |
367 | | _Py_DECREF_STAT_INC(); |
368 | | if (_Py_IsOwnedByCurrentThread(op)) { |
369 | | local--; |
370 | | _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, local); |
371 | | if (local == 0) { |
372 | | _Py_MergeZeroLocalRefcount(op); |
373 | | } |
374 | | } |
375 | | else { |
376 | | _Py_DecRefShared(op); |
377 | | } |
378 | | } |
379 | | #define Py_DECREF(op) Py_DECREF(_PyObject_CAST(op)) |
380 | | |
381 | | #elif defined(Py_REF_DEBUG) |
382 | | |
383 | | static inline void Py_DECREF(const char *filename, int lineno, PyObject *op) |
384 | | { |
385 | | #if SIZEOF_VOID_P > 4 |
386 | | /* If an object has been freed, it will have a negative full refcnt |
387 | | * If it has not it been freed, will have a very large refcnt */ |
388 | | if (op->ob_refcnt_full <= 0 || op->ob_refcnt > (((PY_UINT32_T)-1) - (1<<20))) { |
389 | | #else |
390 | | if (op->ob_refcnt <= 0) { |
391 | | #endif |
392 | | _Py_NegativeRefcount(filename, lineno, op); |
393 | | } |
394 | | if (_Py_IsImmortal(op)) { |
395 | | _Py_DECREF_IMMORTAL_STAT_INC(); |
396 | | return; |
397 | | } |
398 | | _Py_DECREF_STAT_INC(); |
399 | | _Py_DECREF_DecRefTotal(); |
400 | | if (--op->ob_refcnt == 0) { |
401 | | _Py_Dealloc(op); |
402 | | } |
403 | | } |
404 | | #define Py_DECREF(op) Py_DECREF(__FILE__, __LINE__, _PyObject_CAST(op)) |
405 | | |
406 | | #else |
407 | | |
408 | | static inline Py_ALWAYS_INLINE void Py_DECREF(PyObject *op) |
409 | 6.92G | { |
410 | | // Non-limited C API and limited C API for Python 3.9 and older access |
411 | | // directly PyObject.ob_refcnt. |
412 | 6.92G | if (_Py_IsImmortal(op)) { |
413 | 3.03G | _Py_DECREF_IMMORTAL_STAT_INC(); |
414 | 3.03G | return; |
415 | 3.03G | } |
416 | 3.88G | _Py_DECREF_STAT_INC(); |
417 | 3.88G | if (--op->ob_refcnt == 0) { |
418 | 1.01G | _Py_Dealloc(op); |
419 | 1.01G | } |
420 | 3.88G | } Line | Count | Source | 409 | 5.33M | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 5.33M | if (_Py_IsImmortal(op)) { | 413 | 5.15M | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 5.15M | return; | 415 | 5.15M | } | 416 | 179k | _Py_DECREF_STAT_INC(); | 417 | 179k | if (--op->ob_refcnt == 0) { | 418 | 109k | _Py_Dealloc(op); | 419 | 109k | } | 420 | 179k | } |
Line | Count | Source | 409 | 123M | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 123M | if (_Py_IsImmortal(op)) { | 413 | 50.7M | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 50.7M | return; | 415 | 50.7M | } | 416 | 72.6M | _Py_DECREF_STAT_INC(); | 417 | 72.6M | if (--op->ob_refcnt == 0) { | 418 | 57.2M | _Py_Dealloc(op); | 419 | 57.2M | } | 420 | 72.6M | } |
Line | Count | Source | 409 | 103M | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 103M | if (_Py_IsImmortal(op)) { | 413 | 31.2M | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 31.2M | return; | 415 | 31.2M | } | 416 | 72.5M | _Py_DECREF_STAT_INC(); | 417 | 72.5M | if (--op->ob_refcnt == 0) { | 418 | 62.9M | _Py_Dealloc(op); | 419 | 62.9M | } | 420 | 72.5M | } |
genericaliasobject.c:Py_DECREF Line | Count | Source | 409 | 88 | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 88 | if (_Py_IsImmortal(op)) { | 413 | 44 | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 44 | return; | 415 | 44 | } | 416 | 44 | _Py_DECREF_STAT_INC(); | 417 | 44 | if (--op->ob_refcnt == 0) { | 418 | 44 | _Py_Dealloc(op); | 419 | 44 | } | 420 | 44 | } |
Line | Count | Source | 409 | 8 | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 8 | if (_Py_IsImmortal(op)) { | 413 | 5 | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 5 | return; | 415 | 5 | } | 416 | 3 | _Py_DECREF_STAT_INC(); | 417 | 3 | if (--op->ob_refcnt == 0) { | 418 | 0 | _Py_Dealloc(op); | 419 | 0 | } | 420 | 3 | } |
Line | Count | Source | 409 | 1.49G | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 1.49G | if (_Py_IsImmortal(op)) { | 413 | 403M | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 403M | return; | 415 | 403M | } | 416 | 1.09G | _Py_DECREF_STAT_INC(); | 417 | 1.09G | if (--op->ob_refcnt == 0) { | 418 | 257M | _Py_Dealloc(op); | 419 | 257M | } | 420 | 1.09G | } |
Line | Count | Source | 409 | 4.47M | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 4.47M | if (_Py_IsImmortal(op)) { | 413 | 3.96M | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 3.96M | return; | 415 | 3.96M | } | 416 | 513k | _Py_DECREF_STAT_INC(); | 417 | 513k | if (--op->ob_refcnt == 0) { | 418 | 2.67k | _Py_Dealloc(op); | 419 | 2.67k | } | 420 | 513k | } |
Line | Count | Source | 409 | 1.03G | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 1.03G | if (_Py_IsImmortal(op)) { | 413 | 508M | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 508M | return; | 415 | 508M | } | 416 | 527M | _Py_DECREF_STAT_INC(); | 417 | 527M | if (--op->ob_refcnt == 0) { | 418 | 73.9M | _Py_Dealloc(op); | 419 | 73.9M | } | 420 | 527M | } |
Line | Count | Source | 409 | 666k | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 666k | if (_Py_IsImmortal(op)) { | 413 | 4 | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 4 | return; | 415 | 4 | } | 416 | 666k | _Py_DECREF_STAT_INC(); | 417 | 666k | if (--op->ob_refcnt == 0) { | 418 | 333k | _Py_Dealloc(op); | 419 | 333k | } | 420 | 666k | } |
Line | Count | Source | 409 | 45.5k | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 45.5k | if (_Py_IsImmortal(op)) { | 413 | 34.0k | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 34.0k | return; | 415 | 34.0k | } | 416 | 11.5k | _Py_DECREF_STAT_INC(); | 417 | 11.5k | if (--op->ob_refcnt == 0) { | 418 | 8 | _Py_Dealloc(op); | 419 | 8 | } | 420 | 11.5k | } |
Line | Count | Source | 409 | 400M | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 400M | if (_Py_IsImmortal(op)) { | 413 | 361M | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 361M | return; | 415 | 361M | } | 416 | 39.0M | _Py_DECREF_STAT_INC(); | 417 | 39.0M | if (--op->ob_refcnt == 0) { | 418 | 238 | _Py_Dealloc(op); | 419 | 238 | } | 420 | 39.0M | } |
Unexecuted instantiation: obmalloc.c:Py_DECREF Unexecuted instantiation: picklebufobject.c:Py_DECREF Line | Count | Source | 409 | 32.9M | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 32.9M | if (_Py_IsImmortal(op)) { | 413 | 30.3M | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 30.3M | return; | 415 | 30.3M | } | 416 | 2.62M | _Py_DECREF_STAT_INC(); | 417 | 2.62M | if (--op->ob_refcnt == 0) { | 418 | 1.19M | _Py_Dealloc(op); | 419 | 1.19M | } | 420 | 2.62M | } |
Line | Count | Source | 409 | 1.18M | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 1.18M | if (_Py_IsImmortal(op)) { | 413 | 380k | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 380k | return; | 415 | 380k | } | 416 | 804k | _Py_DECREF_STAT_INC(); | 417 | 804k | if (--op->ob_refcnt == 0) { | 418 | 34.5k | _Py_Dealloc(op); | 419 | 34.5k | } | 420 | 804k | } |
Line | Count | Source | 409 | 137M | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 137M | if (_Py_IsImmortal(op)) { | 413 | 124M | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 124M | return; | 415 | 124M | } | 416 | 12.8M | _Py_DECREF_STAT_INC(); | 417 | 12.8M | if (--op->ob_refcnt == 0) { | 418 | 1.36M | _Py_Dealloc(op); | 419 | 1.36M | } | 420 | 12.8M | } |
Line | Count | Source | 409 | 92.4k | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 92.4k | if (_Py_IsImmortal(op)) { | 413 | 23.6k | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 23.6k | return; | 415 | 23.6k | } | 416 | 68.8k | _Py_DECREF_STAT_INC(); | 417 | 68.8k | if (--op->ob_refcnt == 0) { | 418 | 59.9k | _Py_Dealloc(op); | 419 | 59.9k | } | 420 | 68.8k | } |
templateobject.c:Py_DECREF Line | Count | Source | 409 | 4 | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 4 | if (_Py_IsImmortal(op)) { | 413 | 2 | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 2 | return; | 415 | 2 | } | 416 | 2 | _Py_DECREF_STAT_INC(); | 417 | 2 | if (--op->ob_refcnt == 0) { | 418 | 0 | _Py_Dealloc(op); | 419 | 0 | } | 420 | 2 | } |
Line | Count | Source | 409 | 924M | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 924M | if (_Py_IsImmortal(op)) { | 413 | 570M | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 570M | return; | 415 | 570M | } | 416 | 354M | _Py_DECREF_STAT_INC(); | 417 | 354M | if (--op->ob_refcnt == 0) { | 418 | 103M | _Py_Dealloc(op); | 419 | 103M | } | 420 | 354M | } |
Line | Count | Source | 409 | 336M | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 336M | if (_Py_IsImmortal(op)) { | 413 | 40.5M | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 40.5M | return; | 415 | 40.5M | } | 416 | 296M | _Py_DECREF_STAT_INC(); | 417 | 296M | if (--op->ob_refcnt == 0) { | 418 | 14.7M | _Py_Dealloc(op); | 419 | 14.7M | } | 420 | 296M | } |
Unexecuted instantiation: typevarobject.c:Py_DECREF unicodeobject.c:Py_DECREF Line | Count | Source | 409 | 200M | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 200M | if (_Py_IsImmortal(op)) { | 413 | 118M | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 118M | return; | 415 | 118M | } | 416 | 82.1M | _Py_DECREF_STAT_INC(); | 417 | 82.1M | if (--op->ob_refcnt == 0) { | 418 | 20.2M | _Py_Dealloc(op); | 419 | 20.2M | } | 420 | 82.1M | } |
Unexecuted instantiation: unicodectype.c:Py_DECREF Line | Count | Source | 409 | 950 | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 950 | if (_Py_IsImmortal(op)) { | 413 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 0 | return; | 415 | 0 | } | 416 | 950 | _Py_DECREF_STAT_INC(); | 417 | 950 | if (--op->ob_refcnt == 0) { | 418 | 950 | _Py_Dealloc(op); | 419 | 950 | } | 420 | 950 | } |
weakrefobject.c:Py_DECREF Line | Count | Source | 409 | 12.0k | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 12.0k | if (_Py_IsImmortal(op)) { | 413 | 6.30k | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 6.30k | return; | 415 | 6.30k | } | 416 | 5.74k | _Py_DECREF_STAT_INC(); | 417 | 5.74k | if (--op->ob_refcnt == 0) { | 418 | 5.44k | _Py_Dealloc(op); | 419 | 5.44k | } | 420 | 5.74k | } |
Line | Count | Source | 409 | 163k | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 163k | if (_Py_IsImmortal(op)) { | 413 | 41.9k | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 41.9k | return; | 415 | 41.9k | } | 416 | 121k | _Py_DECREF_STAT_INC(); | 417 | 121k | if (--op->ob_refcnt == 0) { | 418 | 33.6k | _Py_Dealloc(op); | 419 | 33.6k | } | 420 | 121k | } |
Line | Count | Source | 409 | 116M | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 116M | if (_Py_IsImmortal(op)) { | 413 | 59.9M | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 59.9M | return; | 415 | 59.9M | } | 416 | 56.6M | _Py_DECREF_STAT_INC(); | 417 | 56.6M | if (--op->ob_refcnt == 0) { | 418 | 32.9M | _Py_Dealloc(op); | 419 | 32.9M | } | 420 | 56.6M | } |
Line | Count | Source | 409 | 5.53k | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 5.53k | if (_Py_IsImmortal(op)) { | 413 | 683 | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 683 | return; | 415 | 683 | } | 416 | 4.85k | _Py_DECREF_STAT_INC(); | 417 | 4.85k | if (--op->ob_refcnt == 0) { | 418 | 372 | _Py_Dealloc(op); | 419 | 372 | } | 420 | 4.85k | } |
Line | Count | Source | 409 | 6.14M | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 6.14M | if (_Py_IsImmortal(op)) { | 413 | 2.12M | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 2.12M | return; | 415 | 2.12M | } | 416 | 4.02M | _Py_DECREF_STAT_INC(); | 417 | 4.02M | if (--op->ob_refcnt == 0) { | 418 | 1.91M | _Py_Dealloc(op); | 419 | 1.91M | } | 420 | 4.02M | } |
Line | Count | Source | 409 | 145k | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 145k | if (_Py_IsImmortal(op)) { | 413 | 128k | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 128k | return; | 415 | 128k | } | 416 | 16.4k | _Py_DECREF_STAT_INC(); | 417 | 16.4k | if (--op->ob_refcnt == 0) { | 418 | 990 | _Py_Dealloc(op); | 419 | 990 | } | 420 | 16.4k | } |
Line | Count | Source | 409 | 590k | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 590k | if (_Py_IsImmortal(op)) { | 413 | 301k | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 301k | return; | 415 | 301k | } | 416 | 289k | _Py_DECREF_STAT_INC(); | 417 | 289k | if (--op->ob_refcnt == 0) { | 418 | 96.1k | _Py_Dealloc(op); | 419 | 96.1k | } | 420 | 289k | } |
Line | Count | Source | 409 | 32 | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 32 | if (_Py_IsImmortal(op)) { | 413 | 16 | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 16 | return; | 415 | 16 | } | 416 | 16 | _Py_DECREF_STAT_INC(); | 417 | 16 | if (--op->ob_refcnt == 0) { | 418 | 0 | _Py_Dealloc(op); | 419 | 0 | } | 420 | 16 | } |
Line | Count | Source | 409 | 72.1M | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 72.1M | if (_Py_IsImmortal(op)) { | 413 | 28.7M | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 28.7M | return; | 415 | 28.7M | } | 416 | 43.4M | _Py_DECREF_STAT_INC(); | 417 | 43.4M | if (--op->ob_refcnt == 0) { | 418 | 9.81M | _Py_Dealloc(op); | 419 | 9.81M | } | 420 | 43.4M | } |
Line | Count | Source | 409 | 70.5k | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 70.5k | if (_Py_IsImmortal(op)) { | 413 | 38.1k | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 38.1k | return; | 415 | 38.1k | } | 416 | 32.4k | _Py_DECREF_STAT_INC(); | 417 | 32.4k | if (--op->ob_refcnt == 0) { | 418 | 51 | _Py_Dealloc(op); | 419 | 51 | } | 420 | 32.4k | } |
Line | Count | Source | 409 | 22.0M | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 22.0M | if (_Py_IsImmortal(op)) { | 413 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 0 | return; | 415 | 0 | } | 416 | 22.0M | _Py_DECREF_STAT_INC(); | 417 | 22.0M | if (--op->ob_refcnt == 0) { | 418 | 11.1M | _Py_Dealloc(op); | 419 | 11.1M | } | 420 | 22.0M | } |
Unexecuted instantiation: future.c:Py_DECREF Line | Count | Source | 409 | 619k | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 619k | if (_Py_IsImmortal(op)) { | 413 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 0 | return; | 415 | 0 | } | 416 | 619k | _Py_DECREF_STAT_INC(); | 417 | 619k | if (--op->ob_refcnt == 0) { | 418 | 373k | _Py_Dealloc(op); | 419 | 373k | } | 420 | 619k | } |
Unexecuted instantiation: gc_gil.c:Py_DECREF Line | Count | Source | 409 | 1.56M | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 1.56M | if (_Py_IsImmortal(op)) { | 413 | 857k | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 857k | return; | 415 | 857k | } | 416 | 705k | _Py_DECREF_STAT_INC(); | 417 | 705k | if (--op->ob_refcnt == 0) { | 418 | 0 | _Py_Dealloc(op); | 419 | 0 | } | 420 | 705k | } |
Unexecuted instantiation: ceval_gil.c:Py_DECREF Unexecuted instantiation: hamt.c:Py_DECREF Unexecuted instantiation: hashtable.c:Py_DECREF Line | Count | Source | 409 | 165k | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 165k | if (_Py_IsImmortal(op)) { | 413 | 12.8k | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 12.8k | return; | 415 | 12.8k | } | 416 | 153k | _Py_DECREF_STAT_INC(); | 417 | 153k | if (--op->ob_refcnt == 0) { | 418 | 11.3k | _Py_Dealloc(op); | 419 | 11.3k | } | 420 | 153k | } |
Line | Count | Source | 409 | 1.20k | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 1.20k | if (_Py_IsImmortal(op)) { | 413 | 494 | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 494 | return; | 415 | 494 | } | 416 | 710 | _Py_DECREF_STAT_INC(); | 417 | 710 | if (--op->ob_refcnt == 0) { | 418 | 456 | _Py_Dealloc(op); | 419 | 456 | } | 420 | 710 | } |
Line | Count | Source | 409 | 2.20k | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 2.20k | if (_Py_IsImmortal(op)) { | 413 | 1.77k | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 1.77k | return; | 415 | 1.77k | } | 416 | 432 | _Py_DECREF_STAT_INC(); | 417 | 432 | if (--op->ob_refcnt == 0) { | 418 | 0 | _Py_Dealloc(op); | 419 | 0 | } | 420 | 432 | } |
instrumentation.c:Py_DECREF Line | Count | Source | 409 | 384 | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 384 | if (_Py_IsImmortal(op)) { | 413 | 208 | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 208 | return; | 415 | 208 | } | 416 | 176 | _Py_DECREF_STAT_INC(); | 417 | 176 | if (--op->ob_refcnt == 0) { | 418 | 0 | _Py_Dealloc(op); | 419 | 0 | } | 420 | 176 | } |
instruction_sequence.c:Py_DECREF Line | Count | Source | 409 | 1 | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 1 | if (_Py_IsImmortal(op)) { | 413 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 0 | return; | 415 | 0 | } | 416 | 1 | _Py_DECREF_STAT_INC(); | 417 | 1 | if (--op->ob_refcnt == 0) { | 418 | 1 | _Py_Dealloc(op); | 419 | 1 | } | 420 | 1 | } |
Line | Count | Source | 409 | 28.6k | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 28.6k | if (_Py_IsImmortal(op)) { | 413 | 16.3k | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 16.3k | return; | 415 | 16.3k | } | 416 | 12.3k | _Py_DECREF_STAT_INC(); | 417 | 12.3k | if (--op->ob_refcnt == 0) { | 418 | 124 | _Py_Dealloc(op); | 419 | 124 | } | 420 | 12.3k | } |
Unexecuted instantiation: legacy_tracing.c:Py_DECREF Unexecuted instantiation: lock.c:Py_DECREF Line | Count | Source | 409 | 316k | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 316k | if (_Py_IsImmortal(op)) { | 413 | 137k | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 137k | return; | 415 | 137k | } | 416 | 178k | _Py_DECREF_STAT_INC(); | 417 | 178k | if (--op->ob_refcnt == 0) { | 418 | 2.45k | _Py_Dealloc(op); | 419 | 2.45k | } | 420 | 178k | } |
Line | Count | Source | 409 | 17.7k | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 17.7k | if (_Py_IsImmortal(op)) { | 413 | 11.7k | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 11.7k | return; | 415 | 11.7k | } | 416 | 6.00k | _Py_DECREF_STAT_INC(); | 417 | 6.00k | if (--op->ob_refcnt == 0) { | 418 | 0 | _Py_Dealloc(op); | 419 | 0 | } | 420 | 6.00k | } |
Unexecuted instantiation: mysnprintf.c:Py_DECREF Unexecuted instantiation: parking_lot.c:Py_DECREF Unexecuted instantiation: preconfig.c:Py_DECREF Line | Count | Source | 409 | 4.47M | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 4.47M | if (_Py_IsImmortal(op)) { | 413 | 3.81M | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 3.81M | return; | 415 | 3.81M | } | 416 | 660k | _Py_DECREF_STAT_INC(); | 417 | 660k | if (--op->ob_refcnt == 0) { | 418 | 22.4k | _Py_Dealloc(op); | 419 | 22.4k | } | 420 | 660k | } |
Unexecuted instantiation: pyctype.c:Py_DECREF Unexecuted instantiation: pyhash.c:Py_DECREF Line | Count | Source | 409 | 576 | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 576 | if (_Py_IsImmortal(op)) { | 413 | 112 | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 112 | return; | 415 | 112 | } | 416 | 464 | _Py_DECREF_STAT_INC(); | 417 | 464 | if (--op->ob_refcnt == 0) { | 418 | 48 | _Py_Dealloc(op); | 419 | 48 | } | 420 | 464 | } |
Unexecuted instantiation: pymath.c:Py_DECREF Unexecuted instantiation: pystate.c:Py_DECREF Line | Count | Source | 409 | 190 | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 190 | if (_Py_IsImmortal(op)) { | 413 | 32 | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 32 | return; | 415 | 32 | } | 416 | 158 | _Py_DECREF_STAT_INC(); | 417 | 158 | if (--op->ob_refcnt == 0) { | 418 | 126 | _Py_Dealloc(op); | 419 | 126 | } | 420 | 158 | } |
Unexecuted instantiation: pytime.c:Py_DECREF Unexecuted instantiation: qsbr.c:Py_DECREF Unexecuted instantiation: bootstrap_hash.c:Py_DECREF Line | Count | Source | 409 | 506k | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 506k | if (_Py_IsImmortal(op)) { | 413 | 82.4k | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 82.4k | return; | 415 | 82.4k | } | 416 | 423k | _Py_DECREF_STAT_INC(); | 417 | 423k | if (--op->ob_refcnt == 0) { | 418 | 0 | _Py_Dealloc(op); | 419 | 0 | } | 420 | 423k | } |
Line | Count | Source | 409 | 775k | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 775k | if (_Py_IsImmortal(op)) { | 413 | 353k | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 353k | return; | 415 | 353k | } | 416 | 421k | _Py_DECREF_STAT_INC(); | 417 | 421k | if (--op->ob_refcnt == 0) { | 418 | 199k | _Py_Dealloc(op); | 419 | 199k | } | 420 | 421k | } |
Line | Count | Source | 409 | 1.90k | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 1.90k | if (_Py_IsImmortal(op)) { | 413 | 1.02k | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 1.02k | return; | 415 | 1.02k | } | 416 | 880 | _Py_DECREF_STAT_INC(); | 417 | 880 | if (--op->ob_refcnt == 0) { | 418 | 64 | _Py_Dealloc(op); | 419 | 64 | } | 420 | 880 | } |
Unexecuted instantiation: thread.c:Py_DECREF Line | Count | Source | 409 | 62.8M | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 62.8M | if (_Py_IsImmortal(op)) { | 413 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 0 | return; | 415 | 0 | } | 416 | 62.8M | _Py_DECREF_STAT_INC(); | 417 | 62.8M | if (--op->ob_refcnt == 0) { | 418 | 12.0M | _Py_Dealloc(op); | 419 | 12.0M | } | 420 | 62.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 formatter_unicode.c:Py_DECREF Line | Count | Source | 409 | 256 | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 256 | if (_Py_IsImmortal(op)) { | 413 | 192 | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 192 | return; | 415 | 192 | } | 416 | 64 | _Py_DECREF_STAT_INC(); | 417 | 64 | if (--op->ob_refcnt == 0) { | 418 | 64 | _Py_Dealloc(op); | 419 | 64 | } | 420 | 64 | } |
Line | Count | Source | 409 | 11.6k | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 11.6k | if (_Py_IsImmortal(op)) { | 413 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 0 | return; | 415 | 0 | } | 416 | 11.6k | _Py_DECREF_STAT_INC(); | 417 | 11.6k | if (--op->ob_refcnt == 0) { | 418 | 11.6k | _Py_Dealloc(op); | 419 | 11.6k | } | 420 | 11.6k | } |
Unexecuted instantiation: suggestions.c:Py_DECREF Unexecuted instantiation: perf_trampoline.c:Py_DECREF Unexecuted instantiation: perf_jit_trampoline.c:Py_DECREF Unexecuted instantiation: remote_debugging.c:Py_DECREF 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 | 409 | 50.1k | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 50.1k | if (_Py_IsImmortal(op)) { | 413 | 2.59k | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 2.59k | return; | 415 | 2.59k | } | 416 | 47.5k | _Py_DECREF_STAT_INC(); | 417 | 47.5k | if (--op->ob_refcnt == 0) { | 418 | 33.1k | _Py_Dealloc(op); | 419 | 33.1k | } | 420 | 47.5k | } |
Line | Count | Source | 409 | 32 | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 32 | if (_Py_IsImmortal(op)) { | 413 | 16 | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 16 | return; | 415 | 16 | } | 416 | 16 | _Py_DECREF_STAT_INC(); | 417 | 16 | if (--op->ob_refcnt == 0) { | 418 | 0 | _Py_Dealloc(op); | 419 | 0 | } | 420 | 16 | } |
Unexecuted instantiation: _tracemalloc.c:Py_DECREF Unexecuted instantiation: _suggestions.c:Py_DECREF _datetimemodule.c:Py_DECREF Line | Count | Source | 409 | 262 | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 262 | if (_Py_IsImmortal(op)) { | 413 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 0 | return; | 415 | 0 | } | 416 | 262 | _Py_DECREF_STAT_INC(); | 417 | 262 | if (--op->ob_refcnt == 0) { | 418 | 0 | _Py_Dealloc(op); | 419 | 0 | } | 420 | 262 | } |
Unexecuted instantiation: _codecsmodule.c:Py_DECREF _collectionsmodule.c:Py_DECREF Line | Count | Source | 409 | 110k | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 110k | if (_Py_IsImmortal(op)) { | 413 | 53.2k | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 53.2k | return; | 415 | 53.2k | } | 416 | 57.3k | _Py_DECREF_STAT_INC(); | 417 | 57.3k | if (--op->ob_refcnt == 0) { | 418 | 41.5k | _Py_Dealloc(op); | 419 | 41.5k | } | 420 | 57.3k | } |
Line | Count | Source | 409 | 6.34k | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 6.34k | if (_Py_IsImmortal(op)) { | 413 | 2.16k | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 2.16k | return; | 415 | 2.16k | } | 416 | 4.18k | _Py_DECREF_STAT_INC(); | 417 | 4.18k | if (--op->ob_refcnt == 0) { | 418 | 2.10k | _Py_Dealloc(op); | 419 | 2.10k | } | 420 | 4.18k | } |
Line | Count | Source | 409 | 119k | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 119k | if (_Py_IsImmortal(op)) { | 413 | 99.9k | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 99.9k | return; | 415 | 99.9k | } | 416 | 19.0k | _Py_DECREF_STAT_INC(); | 417 | 19.0k | if (--op->ob_refcnt == 0) { | 418 | 9.51k | _Py_Dealloc(op); | 419 | 9.51k | } | 420 | 19.0k | } |
Line | Count | Source | 409 | 3.48k | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 3.48k | if (_Py_IsImmortal(op)) { | 413 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 0 | return; | 415 | 0 | } | 416 | 3.48k | _Py_DECREF_STAT_INC(); | 417 | 3.48k | if (--op->ob_refcnt == 0) { | 418 | 2.24k | _Py_Dealloc(op); | 419 | 2.24k | } | 420 | 3.48k | } |
Line | Count | Source | 409 | 28.5k | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 28.5k | if (_Py_IsImmortal(op)) { | 413 | 9.53k | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 9.53k | return; | 415 | 9.53k | } | 416 | 19.0k | _Py_DECREF_STAT_INC(); | 417 | 19.0k | if (--op->ob_refcnt == 0) { | 418 | 0 | _Py_Dealloc(op); | 419 | 0 | } | 420 | 19.0k | } |
Line | Count | Source | 409 | 7.17k | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 7.17k | if (_Py_IsImmortal(op)) { | 413 | 2.07k | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 2.07k | return; | 415 | 2.07k | } | 416 | 5.09k | _Py_DECREF_STAT_INC(); | 417 | 5.09k | if (--op->ob_refcnt == 0) { | 418 | 2.04k | _Py_Dealloc(op); | 419 | 2.04k | } | 420 | 5.09k | } |
Line | Count | Source | 409 | 47.8k | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 47.8k | if (_Py_IsImmortal(op)) { | 413 | 31.9k | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 31.9k | return; | 415 | 31.9k | } | 416 | 15.9k | _Py_DECREF_STAT_INC(); | 417 | 15.9k | if (--op->ob_refcnt == 0) { | 418 | 16 | _Py_Dealloc(op); | 419 | 16 | } | 420 | 15.9k | } |
Line | Count | Source | 409 | 288k | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 288k | if (_Py_IsImmortal(op)) { | 413 | 150k | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 150k | return; | 415 | 150k | } | 416 | 138k | _Py_DECREF_STAT_INC(); | 417 | 138k | if (--op->ob_refcnt == 0) { | 418 | 31.6k | _Py_Dealloc(op); | 419 | 31.6k | } | 420 | 138k | } |
itertoolsmodule.c:Py_DECREF Line | Count | Source | 409 | 928 | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 928 | if (_Py_IsImmortal(op)) { | 413 | 178 | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 178 | return; | 415 | 178 | } | 416 | 750 | _Py_DECREF_STAT_INC(); | 417 | 750 | if (--op->ob_refcnt == 0) { | 418 | 228 | _Py_Dealloc(op); | 419 | 228 | } | 420 | 750 | } |
Line | Count | Source | 409 | 537M | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 537M | if (_Py_IsImmortal(op)) { | 413 | 105M | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 105M | return; | 415 | 105M | } | 416 | 432M | _Py_DECREF_STAT_INC(); | 417 | 432M | if (--op->ob_refcnt == 0) { | 418 | 7.59M | _Py_Dealloc(op); | 419 | 7.59M | } | 420 | 432M | } |
Unexecuted instantiation: _sysconfig.c:Py_DECREF _threadmodule.c:Py_DECREF Line | Count | Source | 409 | 5.08k | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 5.08k | if (_Py_IsImmortal(op)) { | 413 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 0 | return; | 415 | 0 | } | 416 | 5.08k | _Py_DECREF_STAT_INC(); | 417 | 5.08k | if (--op->ob_refcnt == 0) { | 418 | 0 | _Py_Dealloc(op); | 419 | 0 | } | 420 | 5.08k | } |
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 | 409 | 29.2k | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 29.2k | if (_Py_IsImmortal(op)) { | 413 | 10.2k | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 10.2k | return; | 415 | 10.2k | } | 416 | 18.9k | _Py_DECREF_STAT_INC(); | 417 | 18.9k | if (--op->ob_refcnt == 0) { | 418 | 2.54k | _Py_Dealloc(op); | 419 | 2.54k | } | 420 | 18.9k | } |
_functoolsmodule.c:Py_DECREF Line | Count | Source | 409 | 251 | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 251 | if (_Py_IsImmortal(op)) { | 413 | 39 | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 39 | return; | 415 | 39 | } | 416 | 212 | _Py_DECREF_STAT_INC(); | 417 | 212 | if (--op->ob_refcnt == 0) { | 418 | 70 | _Py_Dealloc(op); | 419 | 70 | } | 420 | 212 | } |
Unexecuted instantiation: _localemodule.c:Py_DECREF Unexecuted instantiation: _opcode.c:Py_DECREF Line | Count | Source | 409 | 541k | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 541k | if (_Py_IsImmortal(op)) { | 413 | 270k | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 270k | return; | 415 | 270k | } | 416 | 270k | _Py_DECREF_STAT_INC(); | 417 | 270k | if (--op->ob_refcnt == 0) { | 418 | 0 | _Py_Dealloc(op); | 419 | 0 | } | 420 | 270k | } |
Unexecuted instantiation: symtablemodule.c:Py_DECREF Unexecuted instantiation: pwdmodule.c:Py_DECREF Line | Count | Source | 409 | 528 | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 528 | if (_Py_IsImmortal(op)) { | 413 | 192 | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 192 | return; | 415 | 192 | } | 416 | 336 | _Py_DECREF_STAT_INC(); | 417 | 336 | if (--op->ob_refcnt == 0) { | 418 | 16 | _Py_Dealloc(op); | 419 | 16 | } | 420 | 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 | 409 | 21.6k | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 21.6k | if (_Py_IsImmortal(op)) { | 413 | 502 | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 502 | return; | 415 | 502 | } | 416 | 21.1k | _Py_DECREF_STAT_INC(); | 417 | 21.1k | if (--op->ob_refcnt == 0) { | 418 | 15.7k | _Py_Dealloc(op); | 419 | 15.7k | } | 420 | 21.1k | } |
Unexecuted instantiation: myreadline.c:Py_DECREF Line | Count | Source | 409 | 449M | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 449M | if (_Py_IsImmortal(op)) { | 413 | 364M | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 364M | return; | 415 | 364M | } | 416 | 85.8M | _Py_DECREF_STAT_INC(); | 417 | 85.8M | if (--op->ob_refcnt == 0) { | 418 | 1.55M | _Py_Dealloc(op); | 419 | 1.55M | } | 420 | 85.8M | } |
Unexecuted instantiation: boolobject.c:Py_DECREF Unexecuted instantiation: bytes_methods.c:Py_DECREF bytearrayobject.c:Py_DECREF Line | Count | Source | 409 | 16 | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 16 | if (_Py_IsImmortal(op)) { | 413 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 0 | return; | 415 | 0 | } | 416 | 16 | _Py_DECREF_STAT_INC(); | 417 | 16 | if (--op->ob_refcnt == 0) { | 418 | 16 | _Py_Dealloc(op); | 419 | 16 | } | 420 | 16 | } |
Line | Count | Source | 409 | 10 | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 10 | if (_Py_IsImmortal(op)) { | 413 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 0 | return; | 415 | 0 | } | 416 | 10 | _Py_DECREF_STAT_INC(); | 417 | 10 | if (--op->ob_refcnt == 0) { | 418 | 0 | _Py_Dealloc(op); | 419 | 0 | } | 420 | 10 | } |
Line | Count | Source | 409 | 329k | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 329k | if (_Py_IsImmortal(op)) { | 413 | 27.8k | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 27.8k | return; | 415 | 27.8k | } | 416 | 301k | _Py_DECREF_STAT_INC(); | 417 | 301k | if (--op->ob_refcnt == 0) { | 418 | 205k | _Py_Dealloc(op); | 419 | 205k | } | 420 | 301k | } |
Line | Count | Source | 409 | 39.0M | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 39.0M | if (_Py_IsImmortal(op)) { | 413 | 2 | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 2 | return; | 415 | 2 | } | 416 | 39.0M | _Py_DECREF_STAT_INC(); | 417 | 39.0M | if (--op->ob_refcnt == 0) { | 418 | 0 | _Py_Dealloc(op); | 419 | 0 | } | 420 | 39.0M | } |
Line | Count | Source | 409 | 105k | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 105k | if (_Py_IsImmortal(op)) { | 413 | 41.3k | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 41.3k | return; | 415 | 41.3k | } | 416 | 63.6k | _Py_DECREF_STAT_INC(); | 417 | 63.6k | if (--op->ob_refcnt == 0) { | 418 | 30.1k | _Py_Dealloc(op); | 419 | 30.1k | } | 420 | 63.6k | } |
Unexecuted instantiation: complexobject.c:Py_DECREF Line | Count | Source | 409 | 112M | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 112M | if (_Py_IsImmortal(op)) { | 413 | 9.87M | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 9.87M | return; | 415 | 9.87M | } | 416 | 102M | _Py_DECREF_STAT_INC(); | 417 | 102M | if (--op->ob_refcnt == 0) { | 418 | 75.3M | _Py_Dealloc(op); | 419 | 75.3M | } | 420 | 102M | } |
Line | Count | Source | 409 | 225M | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 225M | if (_Py_IsImmortal(op)) { | 413 | 87.9M | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 87.9M | return; | 415 | 87.9M | } | 416 | 137M | _Py_DECREF_STAT_INC(); | 417 | 137M | if (--op->ob_refcnt == 0) { | 418 | 47.8M | _Py_Dealloc(op); | 419 | 47.8M | } | 420 | 137M | } |
Line | Count | Source | 409 | 50.2M | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 50.2M | if (_Py_IsImmortal(op)) { | 413 | 50.1M | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 50.1M | return; | 415 | 50.1M | } | 416 | 83.5k | _Py_DECREF_STAT_INC(); | 417 | 83.5k | if (--op->ob_refcnt == 0) { | 418 | 0 | _Py_Dealloc(op); | 419 | 0 | } | 420 | 83.5k | } |
Line | Count | Source | 409 | 12.7k | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 12.7k | if (_Py_IsImmortal(op)) { | 413 | 11.7k | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 11.7k | return; | 415 | 11.7k | } | 416 | 1.00k | _Py_DECREF_STAT_INC(); | 417 | 1.00k | if (--op->ob_refcnt == 0) { | 418 | 0 | _Py_Dealloc(op); | 419 | 0 | } | 420 | 1.00k | } |
Line | Count | Source | 409 | 10.9M | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 10.9M | if (_Py_IsImmortal(op)) { | 413 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 0 | return; | 415 | 0 | } | 416 | 10.9M | _Py_DECREF_STAT_INC(); | 417 | 10.9M | if (--op->ob_refcnt == 0) { | 418 | 17.1k | _Py_Dealloc(op); | 419 | 17.1k | } | 420 | 10.9M | } |
Line | Count | Source | 409 | 115M | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 115M | if (_Py_IsImmortal(op)) { | 413 | 65.5M | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 65.5M | return; | 415 | 65.5M | } | 416 | 49.5M | _Py_DECREF_STAT_INC(); | 417 | 49.5M | if (--op->ob_refcnt == 0) { | 418 | 398k | _Py_Dealloc(op); | 419 | 398k | } | 420 | 49.5M | } |
interpolationobject.c:Py_DECREF Line | Count | Source | 409 | 16 | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 16 | if (_Py_IsImmortal(op)) { | 413 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 0 | return; | 415 | 0 | } | 416 | 16 | _Py_DECREF_STAT_INC(); | 417 | 16 | if (--op->ob_refcnt == 0) { | 418 | 0 | _Py_Dealloc(op); | 419 | 0 | } | 420 | 16 | } |
Line | Count | Source | 409 | 1.03M | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 1.03M | if (_Py_IsImmortal(op)) { | 413 | 689k | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 689k | return; | 415 | 689k | } | 416 | 345k | _Py_DECREF_STAT_INC(); | 417 | 345k | if (--op->ob_refcnt == 0) { | 418 | 344k | _Py_Dealloc(op); | 419 | 344k | } | 420 | 345k | } |
Line | Count | Source | 409 | 672 | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 672 | if (_Py_IsImmortal(op)) { | 413 | 400 | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 400 | return; | 415 | 400 | } | 416 | 272 | _Py_DECREF_STAT_INC(); | 417 | 272 | if (--op->ob_refcnt == 0) { | 418 | 160 | _Py_Dealloc(op); | 419 | 160 | } | 420 | 272 | } |
Line | Count | Source | 409 | 279M | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 279M | if (_Py_IsImmortal(op)) { | 413 | 4.42M | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 4.42M | return; | 415 | 4.42M | } | 416 | 275M | _Py_DECREF_STAT_INC(); | 417 | 275M | if (--op->ob_refcnt == 0) { | 418 | 214M | _Py_Dealloc(op); | 419 | 214M | } | 420 | 275M | } |
namespaceobject.c:Py_DECREF Line | Count | Source | 409 | 16 | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 16 | if (_Py_IsImmortal(op)) { | 413 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 0 | return; | 415 | 0 | } | 416 | 16 | _Py_DECREF_STAT_INC(); | 417 | 16 | if (--op->ob_refcnt == 0) { | 418 | 16 | _Py_Dealloc(op); | 419 | 16 | } | 420 | 16 | } |
Unexecuted instantiation: _contextvars.c:Py_DECREF Line | Count | Source | 409 | 3.93M | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 3.93M | if (_Py_IsImmortal(op)) { | 413 | 1.76M | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 1.76M | return; | 415 | 1.76M | } | 416 | 2.16M | _Py_DECREF_STAT_INC(); | 417 | 2.16M | if (--op->ob_refcnt == 0) { | 418 | 490k | _Py_Dealloc(op); | 419 | 490k | } | 420 | 2.16M | } |
Unexecuted instantiation: Python-tokenize.c:Py_DECREF Unexecuted instantiation: asdl.c:Py_DECREF Line | Count | Source | 409 | 47.2k | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 47.2k | if (_Py_IsImmortal(op)) { | 413 | 8.05k | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 8.05k | return; | 415 | 8.05k | } | 416 | 39.1k | _Py_DECREF_STAT_INC(); | 417 | 39.1k | if (--op->ob_refcnt == 0) { | 418 | 0 | _Py_Dealloc(op); | 419 | 0 | } | 420 | 39.1k | } |
Unexecuted instantiation: ast.c:Py_DECREF ast_preprocess.c:Py_DECREF Line | Count | Source | 409 | 2.23k | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 2.23k | if (_Py_IsImmortal(op)) { | 413 | 0 | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 0 | return; | 415 | 0 | } | 416 | 2.23k | _Py_DECREF_STAT_INC(); | 417 | 2.23k | if (--op->ob_refcnt == 0) { | 418 | 2.23k | _Py_Dealloc(op); | 419 | 2.23k | } | 420 | 2.23k | } |
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 | 409 | 592 | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 592 | if (_Py_IsImmortal(op)) { | 413 | 380 | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 380 | return; | 415 | 380 | } | 416 | 212 | _Py_DECREF_STAT_INC(); | 417 | 212 | if (--op->ob_refcnt == 0) { | 418 | 28 | _Py_Dealloc(op); | 419 | 28 | } | 420 | 212 | } |
Line | Count | Source | 409 | 132k | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 132k | if (_Py_IsImmortal(op)) { | 413 | 46.5k | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 46.5k | return; | 415 | 46.5k | } | 416 | 85.9k | _Py_DECREF_STAT_INC(); | 417 | 85.9k | if (--op->ob_refcnt == 0) { | 418 | 68.3k | _Py_Dealloc(op); | 419 | 68.3k | } | 420 | 85.9k | } |
Line | Count | Source | 409 | 48.7k | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 48.7k | if (_Py_IsImmortal(op)) { | 413 | 3.57k | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 3.57k | return; | 415 | 3.57k | } | 416 | 45.1k | _Py_DECREF_STAT_INC(); | 417 | 45.1k | if (--op->ob_refcnt == 0) { | 418 | 5.61k | _Py_Dealloc(op); | 419 | 5.61k | } | 420 | 45.1k | } |
Unexecuted instantiation: parser.c:Py_DECREF Unexecuted instantiation: buffer.c:Py_DECREF Line | Count | Source | 409 | 13.3k | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 13.3k | if (_Py_IsImmortal(op)) { | 413 | 675 | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 675 | return; | 415 | 675 | } | 416 | 12.6k | _Py_DECREF_STAT_INC(); | 417 | 12.6k | if (--op->ob_refcnt == 0) { | 418 | 12.6k | _Py_Dealloc(op); | 419 | 12.6k | } | 420 | 12.6k | } |
Line | Count | Source | 409 | 23.3k | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 23.3k | if (_Py_IsImmortal(op)) { | 413 | 153 | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 153 | return; | 415 | 153 | } | 416 | 23.2k | _Py_DECREF_STAT_INC(); | 417 | 23.2k | if (--op->ob_refcnt == 0) { | 418 | 2.54k | _Py_Dealloc(op); | 419 | 2.54k | } | 420 | 23.2k | } |
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 | 409 | 40.2k | { | 410 | | // Non-limited C API and limited C API for Python 3.9 and older access | 411 | | // directly PyObject.ob_refcnt. | 412 | 40.2k | if (_Py_IsImmortal(op)) { | 413 | 2.51k | _Py_DECREF_IMMORTAL_STAT_INC(); | 414 | 2.51k | return; | 415 | 2.51k | } | 416 | 37.7k | _Py_DECREF_STAT_INC(); | 417 | 37.7k | if (--op->ob_refcnt == 0) { | 418 | 37.7k | _Py_Dealloc(op); | 419 | 37.7k | } | 420 | 37.7k | } |
|
421 | 6.92G | #define Py_DECREF(op) Py_DECREF(_PyObject_CAST(op)) |
422 | | #endif |
423 | | |
424 | | |
425 | | /* Safely decref `op` and set `op` to NULL, especially useful in tp_clear |
426 | | * and tp_dealloc implementations. |
427 | | * |
428 | | * Note that "the obvious" code can be deadly: |
429 | | * |
430 | | * Py_XDECREF(op); |
431 | | * op = NULL; |
432 | | * |
433 | | * Typically, `op` is something like self->containee, and `self` is done |
434 | | * using its `containee` member. In the code sequence above, suppose |
435 | | * `containee` is non-NULL with a refcount of 1. Its refcount falls to |
436 | | * 0 on the first line, which can trigger an arbitrary amount of code, |
437 | | * possibly including finalizers (like __del__ methods or weakref callbacks) |
438 | | * coded in Python, which in turn can release the GIL and allow other threads |
439 | | * to run, etc. Such code may even invoke methods of `self` again, or cause |
440 | | * cyclic gc to trigger, but-- oops! --self->containee still points to the |
441 | | * object being torn down, and it may be in an insane state while being torn |
442 | | * down. This has in fact been a rich historic source of miserable (rare & |
443 | | * hard-to-diagnose) segfaulting (and other) bugs. |
444 | | * |
445 | | * The safe way is: |
446 | | * |
447 | | * Py_CLEAR(op); |
448 | | * |
449 | | * That arranges to set `op` to NULL _before_ decref'ing, so that any code |
450 | | * triggered as a side-effect of `op` getting torn down no longer believes |
451 | | * `op` points to a valid object. |
452 | | * |
453 | | * There are cases where it's safe to use the naive code, but they're brittle. |
454 | | * For example, if `op` points to a Python integer, you know that destroying |
455 | | * one of those can't cause problems -- but in part that relies on that |
456 | | * Python integers aren't currently weakly referencable. Best practice is |
457 | | * to use Py_CLEAR() even if you can't think of a reason for why you need to. |
458 | | * |
459 | | * gh-98724: Use a temporary variable to only evaluate the macro argument once, |
460 | | * to avoid the duplication of side effects if the argument has side effects. |
461 | | * |
462 | | * gh-99701: If the PyObject* type is used with casting arguments to PyObject*, |
463 | | * the code can be miscompiled with strict aliasing because of type punning. |
464 | | * With strict aliasing, a compiler considers that two pointers of different |
465 | | * types cannot read or write the same memory which enables optimization |
466 | | * opportunities. |
467 | | * |
468 | | * If available, use _Py_TYPEOF() to use the 'op' type for temporary variables, |
469 | | * and so avoid type punning. Otherwise, use memcpy() which causes type erasure |
470 | | * and so prevents the compiler to reuse an old cached 'op' value after |
471 | | * Py_CLEAR(). |
472 | | */ |
473 | | #ifdef _Py_TYPEOF |
474 | | #define Py_CLEAR(op) \ |
475 | 1.42G | do { \ |
476 | 1.42G | _Py_TYPEOF(op)* _tmp_op_ptr = &(op); \ |
477 | 1.42G | _Py_TYPEOF(op) _tmp_old_op = (*_tmp_op_ptr); \ |
478 | 1.42G | if (_tmp_old_op != NULL) { \ |
479 | 442M | *_tmp_op_ptr = _Py_NULL; \ |
480 | 442M | Py_DECREF(_tmp_old_op); \ |
481 | 442M | } \ |
482 | 1.42G | } while (0) |
483 | | #else |
484 | | #define Py_CLEAR(op) \ |
485 | | do { \ |
486 | | PyObject **_tmp_op_ptr = _Py_CAST(PyObject**, &(op)); \ |
487 | | PyObject *_tmp_old_op = (*_tmp_op_ptr); \ |
488 | | if (_tmp_old_op != NULL) { \ |
489 | | PyObject *_null_ptr = _Py_NULL; \ |
490 | | memcpy(_tmp_op_ptr, &_null_ptr, sizeof(PyObject*)); \ |
491 | | Py_DECREF(_tmp_old_op); \ |
492 | | } \ |
493 | | } while (0) |
494 | | #endif |
495 | | |
496 | | |
497 | | /* Function to use in case the object pointer can be NULL: */ |
498 | | static inline void Py_XINCREF(PyObject *op) |
499 | 1.55G | { |
500 | 1.55G | if (op != _Py_NULL) { |
501 | 672M | Py_INCREF(op); |
502 | 672M | } |
503 | 1.55G | } Unexecuted instantiation: bytesobject.c:Py_XINCREF Unexecuted instantiation: call.c:Py_XINCREF Line | Count | Source | 499 | 60.0M | { | 500 | 60.0M | if (op != _Py_NULL) { | 501 | 1.33M | Py_INCREF(op); | 502 | 1.33M | } | 503 | 60.0M | } |
Unexecuted instantiation: genericaliasobject.c:Py_XINCREF Unexecuted instantiation: floatobject.c:Py_XINCREF Line | Count | Source | 499 | 945k | { | 500 | 945k | if (op != _Py_NULL) { | 501 | 945k | Py_INCREF(op); | 502 | 945k | } | 503 | 945k | } |
Unexecuted instantiation: longobject.c:Py_XINCREF Line | Count | Source | 499 | 600M | { | 500 | 600M | if (op != _Py_NULL) { | 501 | 211M | Py_INCREF(op); | 502 | 211M | } | 503 | 600M | } |
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 | 499 | 42.5M | { | 500 | 42.5M | if (op != _Py_NULL) { | 501 | 42.2M | Py_INCREF(op); | 502 | 42.2M | } | 503 | 42.5M | } |
Unexecuted instantiation: typevarobject.c:Py_XINCREF Unexecuted instantiation: unicodeobject.c:Py_XINCREF Unexecuted instantiation: unicodectype.c:Py_XINCREF Unexecuted instantiation: unionobject.c:Py_XINCREF weakrefobject.c:Py_XINCREF Line | Count | Source | 499 | 270k | { | 500 | 270k | if (op != _Py_NULL) { | 501 | 6.23k | Py_INCREF(op); | 502 | 6.23k | } | 503 | 270k | } |
Unexecuted instantiation: _warnings.c:Py_XINCREF Line | Count | Source | 499 | 317 | { | 500 | 317 | if (op != _Py_NULL) { | 501 | 317 | Py_INCREF(op); | 502 | 317 | } | 503 | 317 | } |
Line | Count | Source | 499 | 196M | { | 500 | 196M | if (op != _Py_NULL) { | 501 | 67.8M | Py_INCREF(op); | 502 | 67.8M | } | 503 | 196M | } |
Unexecuted instantiation: codecs.c:Py_XINCREF Unexecuted instantiation: codegen.c:Py_XINCREF Line | Count | Source | 499 | 9.58k | { | 500 | 9.58k | if (op != _Py_NULL) { | 501 | 4.50k | Py_INCREF(op); | 502 | 4.50k | } | 503 | 9.58k | } |
Line | Count | Source | 499 | 16.6k | { | 500 | 16.6k | if (op != _Py_NULL) { | 501 | 0 | Py_INCREF(op); | 502 | 0 | } | 503 | 16.6k | } |
Line | Count | Source | 499 | 29.2M | { | 500 | 29.2M | if (op != _Py_NULL) { | 501 | 29.1M | Py_INCREF(op); | 502 | 29.1M | } | 503 | 29.2M | } |
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 | 499 | 2.58k | { | 500 | 2.58k | if (op != _Py_NULL) { | 501 | 1.31k | Py_INCREF(op); | 502 | 1.31k | } | 503 | 2.58k | } |
Unexecuted instantiation: importdl.c:Py_XINCREF Unexecuted instantiation: initconfig.c:Py_XINCREF Unexecuted instantiation: instrumentation.c:Py_XINCREF Unexecuted instantiation: instruction_sequence.c:Py_XINCREF Unexecuted instantiation: intrinsics.c:Py_XINCREF Unexecuted instantiation: legacy_tracing.c:Py_XINCREF Unexecuted instantiation: lock.c:Py_XINCREF Unexecuted instantiation: marshal.c:Py_XINCREF Unexecuted instantiation: modsupport.c:Py_XINCREF Unexecuted instantiation: mysnprintf.c:Py_XINCREF Unexecuted instantiation: parking_lot.c:Py_XINCREF Unexecuted instantiation: preconfig.c:Py_XINCREF Unexecuted instantiation: pyarena.c:Py_XINCREF Unexecuted instantiation: pyctype.c:Py_XINCREF Unexecuted instantiation: pyhash.c:Py_XINCREF Unexecuted instantiation: pylifecycle.c:Py_XINCREF Unexecuted instantiation: pymath.c:Py_XINCREF Line | Count | Source | 499 | 2.23k | { | 500 | 2.23k | if (op != _Py_NULL) { | 501 | 2.23k | Py_INCREF(op); | 502 | 2.23k | } | 503 | 2.23k | } |
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 | 499 | 16 | { | 500 | 16 | if (op != _Py_NULL) { | 501 | 16 | Py_INCREF(op); | 502 | 16 | } | 503 | 16 | } |
Unexecuted instantiation: thread.c:Py_XINCREF Line | Count | Source | 499 | 60.6M | { | 500 | 60.6M | if (op != _Py_NULL) { | 501 | 31.4M | Py_INCREF(op); | 502 | 31.4M | } | 503 | 60.6M | } |
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: formatter_unicode.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 | 499 | 32 | { | 500 | 32 | if (op != _Py_NULL) { | 501 | 0 | Py_INCREF(op); | 502 | 0 | } | 503 | 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 | 499 | 1.00k | { | 500 | 1.00k | if (op != _Py_NULL) { | 501 | 1.00k | Py_INCREF(op); | 502 | 1.00k | } | 503 | 1.00k | } |
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 | 499 | 608 | { | 500 | 608 | if (op != _Py_NULL) { | 501 | 608 | Py_INCREF(op); | 502 | 608 | } | 503 | 608 | } |
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 | 499 | 48 | { | 500 | 48 | if (op != _Py_NULL) { | 501 | 48 | Py_INCREF(op); | 502 | 48 | } | 503 | 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 | 499 | 14.0M | { | 500 | 14.0M | if (op != _Py_NULL) { | 501 | 13.7M | Py_INCREF(op); | 502 | 13.7M | } | 503 | 14.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 | 499 | 5.55M | { | 500 | 5.55M | if (op != _Py_NULL) { | 501 | 69.4k | Py_INCREF(op); | 502 | 69.4k | } | 503 | 5.55M | } |
Unexecuted instantiation: classobject.c:Py_XINCREF Line | Count | Source | 499 | 6.37k | { | 500 | 6.37k | if (op != _Py_NULL) { | 501 | 6.37k | Py_INCREF(op); | 502 | 6.37k | } | 503 | 6.37k | } |
Unexecuted instantiation: complexobject.c:Py_XINCREF Line | Count | Source | 499 | 45.5k | { | 500 | 45.5k | if (op != _Py_NULL) { | 501 | 43.5k | Py_INCREF(op); | 502 | 43.5k | } | 503 | 45.5k | } |
Unexecuted instantiation: enumobject.c:Py_XINCREF Line | Count | Source | 499 | 4.10k | { | 500 | 4.10k | if (op != _Py_NULL) { | 501 | 0 | Py_INCREF(op); | 502 | 0 | } | 503 | 4.10k | } |
Unexecuted instantiation: fileobject.c:Py_XINCREF Unexecuted instantiation: frameobject.c:Py_XINCREF Line | Count | Source | 499 | 3.34k | { | 500 | 3.34k | if (op != _Py_NULL) { | 501 | 12 | Py_INCREF(op); | 502 | 12 | } | 503 | 3.34k | } |
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 | 499 | 548M | { | 500 | 548M | if (op != _Py_NULL) { | 501 | 274M | Py_INCREF(op); | 502 | 274M | } | 503 | 548M | } |
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 | 499 | 6.98k | { | 500 | 6.98k | if (op != _Py_NULL) { | 501 | 6.98k | Py_INCREF(op); | 502 | 6.98k | } | 503 | 6.98k | } |
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 |
504 | | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000 |
505 | 1.55G | # define Py_XINCREF(op) Py_XINCREF(_PyObject_CAST(op)) |
506 | | #endif |
507 | | |
508 | | static inline void Py_XDECREF(PyObject *op) |
509 | 4.54G | { |
510 | 4.54G | if (op != _Py_NULL) { |
511 | 3.68G | Py_DECREF(op); |
512 | 3.68G | } |
513 | 4.54G | } Line | Count | Source | 509 | 52 | { | 510 | 52 | if (op != _Py_NULL) { | 511 | 16 | Py_DECREF(op); | 512 | 16 | } | 513 | 52 | } |
Unexecuted instantiation: call.c:Py_XDECREF Line | Count | Source | 509 | 48.7M | { | 510 | 48.7M | if (op != _Py_NULL) { | 511 | 18.3M | Py_DECREF(op); | 512 | 18.3M | } | 513 | 48.7M | } |
genericaliasobject.c:Py_XDECREF Line | Count | Source | 509 | 132 | { | 510 | 132 | if (op != _Py_NULL) { | 511 | 88 | Py_DECREF(op); | 512 | 88 | } | 513 | 132 | } |
Line | Count | Source | 509 | 522k | { | 510 | 522k | if (op != _Py_NULL) { | 511 | 8 | Py_DECREF(op); | 512 | 8 | } | 513 | 522k | } |
Line | Count | Source | 509 | 1.43G | { | 510 | 1.43G | if (op != _Py_NULL) { | 511 | 1.40G | Py_DECREF(op); | 512 | 1.40G | } | 513 | 1.43G | } |
Line | Count | Source | 509 | 1.24k | { | 510 | 1.24k | if (op != _Py_NULL) { | 511 | 416 | Py_DECREF(op); | 512 | 416 | } | 513 | 1.24k | } |
Line | Count | Source | 509 | 759M | { | 510 | 759M | if (op != _Py_NULL) { | 511 | 753M | Py_DECREF(op); | 512 | 753M | } | 513 | 759M | } |
Unexecuted instantiation: memoryobject.c:Py_XDECREF moduleobject.c:Py_XDECREF Line | Count | Source | 509 | 2.13k | { | 510 | 2.13k | if (op != _Py_NULL) { | 511 | 480 | Py_DECREF(op); | 512 | 480 | } | 513 | 2.13k | } |
Line | Count | Source | 509 | 34.0k | { | 510 | 34.0k | if (op != _Py_NULL) { | 511 | 369 | Py_DECREF(op); | 512 | 369 | } | 513 | 34.0k | } |
Unexecuted instantiation: obmalloc.c:Py_XDECREF Unexecuted instantiation: picklebufobject.c:Py_XDECREF Line | Count | Source | 509 | 48 | { | 510 | 48 | if (op != _Py_NULL) { | 511 | 48 | Py_DECREF(op); | 512 | 48 | } | 513 | 48 | } |
Line | Count | Source | 509 | 276k | { | 510 | 276k | if (op != _Py_NULL) { | 511 | 16 | Py_DECREF(op); | 512 | 16 | } | 513 | 276k | } |
Unexecuted instantiation: sliceobject.c:Py_XDECREF Line | Count | Source | 509 | 86.7k | { | 510 | 86.7k | if (op != _Py_NULL) { | 511 | 86.7k | Py_DECREF(op); | 512 | 86.7k | } | 513 | 86.7k | } |
Unexecuted instantiation: templateobject.c:Py_XDECREF Line | Count | Source | 509 | 922M | { | 510 | 922M | if (op != _Py_NULL) { | 511 | 920M | Py_DECREF(op); | 512 | 920M | } | 513 | 922M | } |
Line | Count | Source | 509 | 17.1M | { | 510 | 17.1M | if (op != _Py_NULL) { | 511 | 13.7M | Py_DECREF(op); | 512 | 13.7M | } | 513 | 17.1M | } |
Unexecuted instantiation: typevarobject.c:Py_XDECREF unicodeobject.c:Py_XDECREF Line | Count | Source | 509 | 77.0M | { | 510 | 77.0M | if (op != _Py_NULL) { | 511 | 54.2M | Py_DECREF(op); | 512 | 54.2M | } | 513 | 77.0M | } |
Unexecuted instantiation: unicodectype.c:Py_XDECREF Line | Count | Source | 509 | 511 | { | 510 | 511 | if (op != _Py_NULL) { | 511 | 24 | Py_DECREF(op); | 512 | 24 | } | 513 | 511 | } |
weakrefobject.c:Py_XDECREF Line | Count | Source | 509 | 264k | { | 510 | 264k | if (op != _Py_NULL) { | 511 | 172 | Py_DECREF(op); | 512 | 172 | } | 513 | 264k | } |
Line | Count | Source | 509 | 85.5k | { | 510 | 85.5k | if (op != _Py_NULL) { | 511 | 85.5k | Py_DECREF(op); | 512 | 85.5k | } | 513 | 85.5k | } |
Line | Count | Source | 509 | 6.71M | { | 510 | 6.71M | if (op != _Py_NULL) { | 511 | 671k | Py_DECREF(op); | 512 | 671k | } | 513 | 6.71M | } |
Line | Count | Source | 509 | 266k | { | 510 | 266k | if (op != _Py_NULL) { | 511 | 5.53k | Py_DECREF(op); | 512 | 5.53k | } | 513 | 266k | } |
Line | Count | Source | 509 | 131k | { | 510 | 131k | if (op != _Py_NULL) { | 511 | 87.5k | Py_DECREF(op); | 512 | 87.5k | } | 513 | 131k | } |
Unexecuted instantiation: codegen.c:Py_XDECREF Line | Count | Source | 509 | 27.0k | { | 510 | 27.0k | if (op != _Py_NULL) { | 511 | 7.92k | Py_DECREF(op); | 512 | 7.92k | } | 513 | 27.0k | } |
Unexecuted instantiation: context.c:Py_XDECREF Line | Count | Source | 509 | 150M | { | 510 | 150M | if (op != _Py_NULL) { | 511 | 24.1M | Py_DECREF(op); | 512 | 24.1M | } | 513 | 150M | } |
Unexecuted instantiation: flowgraph.c:Py_XDECREF Unexecuted instantiation: frame.c:Py_XDECREF Unexecuted instantiation: future.c:Py_XDECREF Line | Count | Source | 509 | 120k | { | 510 | 120k | if (op != _Py_NULL) { | 511 | 0 | Py_DECREF(op); | 512 | 0 | } | 513 | 120k | } |
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 | 509 | 92.0k | { | 510 | 92.0k | if (op != _Py_NULL) { | 511 | 69.3k | Py_DECREF(op); | 512 | 69.3k | } | 513 | 92.0k | } |
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 | 509 | 13.4k | { | 510 | 13.4k | if (op != _Py_NULL) { | 511 | 0 | Py_DECREF(op); | 512 | 0 | } | 513 | 13.4k | } |
Line | Count | Source | 509 | 13.6k | { | 510 | 13.6k | if (op != _Py_NULL) { | 511 | 13.6k | Py_DECREF(op); | 512 | 13.6k | } | 513 | 13.6k | } |
Unexecuted instantiation: legacy_tracing.c:Py_XDECREF Unexecuted instantiation: lock.c:Py_XDECREF Line | Count | Source | 509 | 306k | { | 510 | 306k | if (op != _Py_NULL) { | 511 | 306k | Py_DECREF(op); | 512 | 306k | } | 513 | 306k | } |
Line | Count | Source | 509 | 6.72k | { | 510 | 6.72k | if (op != _Py_NULL) { | 511 | 6.72k | Py_DECREF(op); | 512 | 6.72k | } | 513 | 6.72k | } |
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 | 509 | 96 | { | 510 | 96 | if (op != _Py_NULL) { | 511 | 96 | Py_DECREF(op); | 512 | 96 | } | 513 | 96 | } |
Unexecuted instantiation: pymath.c:Py_XDECREF Unexecuted instantiation: pystate.c:Py_XDECREF Line | Count | Source | 509 | 126 | { | 510 | 126 | if (op != _Py_NULL) { | 511 | 0 | Py_DECREF(op); | 512 | 0 | } | 513 | 126 | } |
Unexecuted instantiation: pytime.c:Py_XDECREF Unexecuted instantiation: qsbr.c:Py_XDECREF Unexecuted instantiation: bootstrap_hash.c:Py_XDECREF Line | Count | Source | 509 | 959k | { | 510 | 959k | if (op != _Py_NULL) { | 511 | 505k | Py_DECREF(op); | 512 | 505k | } | 513 | 959k | } |
Line | Count | Source | 509 | 165k | { | 510 | 165k | if (op != _Py_NULL) { | 511 | 129k | Py_DECREF(op); | 512 | 129k | } | 513 | 165k | } |
Line | Count | Source | 509 | 720 | { | 510 | 720 | if (op != _Py_NULL) { | 511 | 384 | Py_DECREF(op); | 512 | 384 | } | 513 | 720 | } |
Unexecuted instantiation: thread.c:Py_XDECREF Line | Count | Source | 509 | 121M | { | 510 | 121M | if (op != _Py_NULL) { | 511 | 62.8M | Py_DECREF(op); | 512 | 62.8M | } | 513 | 121M | } |
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 formatter_unicode.c:Py_XDECREF Line | Count | Source | 509 | 638 | { | 510 | 638 | if (op != _Py_NULL) { | 511 | 256 | Py_DECREF(op); | 512 | 256 | } | 513 | 638 | } |
Unexecuted instantiation: fileutils.c:Py_XDECREF Unexecuted instantiation: suggestions.c:Py_XDECREF Unexecuted instantiation: perf_trampoline.c:Py_XDECREF Unexecuted instantiation: perf_jit_trampoline.c:Py_XDECREF Unexecuted instantiation: remote_debugging.c:Py_XDECREF Unexecuted instantiation: dynload_shlib.c:Py_XDECREF Unexecuted instantiation: config.c:Py_XDECREF Unexecuted instantiation: gcmodule.c:Py_XDECREF Unexecuted instantiation: _asynciomodule.c:Py_XDECREF Unexecuted instantiation: atexitmodule.c:Py_XDECREF Unexecuted instantiation: faulthandler.c:Py_XDECREF Line | Count | Source | 509 | 68.5k | { | 510 | 68.5k | if (op != _Py_NULL) { | 511 | 27.4k | Py_DECREF(op); | 512 | 27.4k | } | 513 | 68.5k | } |
signalmodule.c:Py_XDECREF Line | Count | Source | 509 | 1.02k | { | 510 | 1.02k | if (op != _Py_NULL) { | 511 | 0 | Py_DECREF(op); | 512 | 0 | } | 513 | 1.02k | } |
Unexecuted instantiation: _tracemalloc.c:Py_XDECREF Unexecuted instantiation: _suggestions.c:Py_XDECREF _datetimemodule.c:Py_XDECREF Line | Count | Source | 509 | 6 | { | 510 | 6 | if (op != _Py_NULL) { | 511 | 0 | Py_DECREF(op); | 512 | 0 | } | 513 | 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 | 509 | 9.51k | { | 510 | 9.51k | if (op != _Py_NULL) { | 511 | 9.51k | Py_DECREF(op); | 512 | 9.51k | } | 513 | 9.51k | } |
Line | Count | Source | 509 | 4.05k | { | 510 | 4.05k | if (op != _Py_NULL) { | 511 | 1.00k | Py_DECREF(op); | 512 | 1.00k | } | 513 | 4.05k | } |
Line | Count | Source | 509 | 31.8k | { | 510 | 31.8k | if (op != _Py_NULL) { | 511 | 32 | Py_DECREF(op); | 512 | 32 | } | 513 | 31.8k | } |
Unexecuted instantiation: stringio.c:Py_XDECREF itertoolsmodule.c:Py_XDECREF Line | Count | Source | 509 | 228 | { | 510 | 228 | if (op != _Py_NULL) { | 511 | 228 | Py_DECREF(op); | 512 | 228 | } | 513 | 228 | } |
Line | Count | Source | 509 | 104M | { | 510 | 104M | if (op != _Py_NULL) { | 511 | 104M | Py_DECREF(op); | 512 | 104M | } | 513 | 104M | } |
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 | 509 | 3.38k | { | 510 | 3.38k | if (op != _Py_NULL) { | 511 | 2.45k | Py_DECREF(op); | 512 | 2.45k | } | 513 | 3.38k | } |
_functoolsmodule.c:Py_XDECREF Line | Count | Source | 509 | 31 | { | 510 | 31 | if (op != _Py_NULL) { | 511 | 0 | Py_DECREF(op); | 512 | 0 | } | 513 | 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 | 509 | 2.67k | { | 510 | 2.67k | if (op != _Py_NULL) { | 511 | 2.67k | Py_DECREF(op); | 512 | 2.67k | } | 513 | 2.67k | } |
Unexecuted instantiation: myreadline.c:Py_XDECREF Line | Count | Source | 509 | 157k | { | 510 | 157k | if (op != _Py_NULL) { | 511 | 0 | Py_DECREF(op); | 512 | 0 | } | 513 | 157k | } |
Unexecuted instantiation: boolobject.c:Py_XDECREF Unexecuted instantiation: bytes_methods.c:Py_XDECREF bytearrayobject.c:Py_XDECREF Line | Count | Source | 509 | 16 | { | 510 | 16 | if (op != _Py_NULL) { | 511 | 16 | Py_DECREF(op); | 512 | 16 | } | 513 | 16 | } |
Line | Count | Source | 509 | 5 | { | 510 | 5 | if (op != _Py_NULL) { | 511 | 5 | Py_DECREF(op); | 512 | 5 | } | 513 | 5 | } |
Line | Count | Source | 509 | 5.55M | { | 510 | 5.55M | if (op != _Py_NULL) { | 511 | 329k | Py_DECREF(op); | 512 | 329k | } | 513 | 5.55M | } |
Line | Count | Source | 509 | 19.5M | { | 510 | 19.5M | if (op != _Py_NULL) { | 511 | 19.5M | Py_DECREF(op); | 512 | 19.5M | } | 513 | 19.5M | } |
Line | Count | Source | 509 | 113k | { | 510 | 113k | if (op != _Py_NULL) { | 511 | 76.2k | Py_DECREF(op); | 512 | 76.2k | } | 513 | 113k | } |
Unexecuted instantiation: complexobject.c:Py_XDECREF Line | Count | Source | 509 | 29.2M | { | 510 | 29.2M | if (op != _Py_NULL) { | 511 | 20.8M | Py_DECREF(op); | 512 | 20.8M | } | 513 | 29.2M | } |
Line | Count | Source | 509 | 17.2M | { | 510 | 17.2M | if (op != _Py_NULL) { | 511 | 11.5M | Py_DECREF(op); | 512 | 11.5M | } | 513 | 17.2M | } |
Line | Count | Source | 509 | 2.05k | { | 510 | 2.05k | if (op != _Py_NULL) { | 511 | 0 | Py_DECREF(op); | 512 | 0 | } | 513 | 2.05k | } |
Unexecuted instantiation: fileobject.c:Py_XDECREF Unexecuted instantiation: frameobject.c:Py_XDECREF Line | Count | Source | 509 | 2.84k | { | 510 | 2.84k | if (op != _Py_NULL) { | 511 | 1.09k | Py_DECREF(op); | 512 | 1.09k | } | 513 | 2.84k | } |
Unexecuted instantiation: interpolationobject.c:Py_XDECREF Line | Count | Source | 509 | 1.03M | { | 510 | 1.03M | if (op != _Py_NULL) { | 511 | 344k | Py_DECREF(op); | 512 | 344k | } | 513 | 1.03M | } |
Line | Count | Source | 509 | 288 | { | 510 | 288 | if (op != _Py_NULL) { | 511 | 240 | Py_DECREF(op); | 512 | 240 | } | 513 | 288 | } |
methodobject.c:Py_XDECREF Line | Count | Source | 509 | 822M | { | 510 | 822M | if (op != _Py_NULL) { | 511 | 279M | Py_DECREF(op); | 512 | 279M | } | 513 | 822M | } |
Unexecuted instantiation: namespaceobject.c:Py_XDECREF Unexecuted instantiation: _contextvars.c:Py_XDECREF Line | Count | Source | 509 | 210 | { | 510 | 210 | if (op != _Py_NULL) { | 511 | 140 | Py_DECREF(op); | 512 | 140 | } | 513 | 210 | } |
Unexecuted instantiation: Python-tokenize.c:Py_XDECREF Unexecuted instantiation: asdl.c:Py_XDECREF Line | Count | Source | 509 | 47.2k | { | 510 | 47.2k | if (op != _Py_NULL) { | 511 | 47.2k | Py_DECREF(op); | 512 | 47.2k | } | 513 | 47.2k | } |
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 | 509 | 6.51k | { | 510 | 6.51k | if (op != _Py_NULL) { | 511 | 592 | Py_DECREF(op); | 512 | 592 | } | 513 | 6.51k | } |
Line | Count | Source | 509 | 33.9k | { | 510 | 33.9k | if (op != _Py_NULL) { | 511 | 1.59k | Py_DECREF(op); | 512 | 1.59k | } | 513 | 33.9k | } |
pegen_errors.c:Py_XDECREF Line | Count | Source | 509 | 13.9k | { | 510 | 13.9k | if (op != _Py_NULL) { | 511 | 11.2k | Py_DECREF(op); | 512 | 11.2k | } | 513 | 13.9k | } |
Unexecuted instantiation: parser.c:Py_XDECREF Unexecuted instantiation: buffer.c:Py_XDECREF Unexecuted instantiation: lexer.c:Py_XDECREF Line | Count | Source | 509 | 98.3k | { | 510 | 98.3k | if (op != _Py_NULL) { | 511 | 23.3k | Py_DECREF(op); | 512 | 23.3k | } | 513 | 98.3k | } |
Unexecuted instantiation: readline_tokenizer.c:Py_XDECREF Unexecuted instantiation: string_tokenizer.c:Py_XDECREF Unexecuted instantiation: utf8_tokenizer.c:Py_XDECREF Unexecuted instantiation: getcompiler.c:Py_XDECREF Unexecuted instantiation: mystrtoul.c:Py_XDECREF Unexecuted instantiation: token.c:Py_XDECREF Unexecuted instantiation: action_helpers.c:Py_XDECREF string_parser.c:Py_XDECREF Line | Count | Source | 509 | 31.2k | { | 510 | 31.2k | if (op != _Py_NULL) { | 511 | 31.2k | Py_DECREF(op); | 512 | 31.2k | } | 513 | 31.2k | } |
|
514 | | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000 |
515 | 4.54G | # define Py_XDECREF(op) Py_XDECREF(_PyObject_CAST(op)) |
516 | | #endif |
517 | | |
518 | | // Create a new strong reference to an object: |
519 | | // increment the reference count of the object and return the object. |
520 | | PyAPI_FUNC(PyObject*) Py_NewRef(PyObject *obj); |
521 | | |
522 | | // Similar to Py_NewRef(), but the object can be NULL. |
523 | | PyAPI_FUNC(PyObject*) Py_XNewRef(PyObject *obj); |
524 | | |
525 | | static inline PyObject* _Py_NewRef(PyObject *obj) |
526 | 5.26G | { |
527 | 5.26G | Py_INCREF(obj); |
528 | 5.26G | return obj; |
529 | 5.26G | } Line | Count | Source | 526 | 353k | { | 527 | 353k | Py_INCREF(obj); | 528 | 353k | return obj; | 529 | 353k | } |
Line | Count | Source | 526 | 21.2M | { | 527 | 21.2M | Py_INCREF(obj); | 528 | 21.2M | return obj; | 529 | 21.2M | } |
Line | Count | Source | 526 | 76.9M | { | 527 | 76.9M | Py_INCREF(obj); | 528 | 76.9M | return obj; | 529 | 76.9M | } |
genericaliasobject.c:_Py_NewRef Line | Count | Source | 526 | 860 | { | 527 | 860 | Py_INCREF(obj); | 528 | 860 | return obj; | 529 | 860 | } |
Unexecuted instantiation: floatobject.c:_Py_NewRef Line | Count | Source | 526 | 1.11G | { | 527 | 1.11G | Py_INCREF(obj); | 528 | 1.11G | return obj; | 529 | 1.11G | } |
Line | Count | Source | 526 | 4.45M | { | 527 | 4.45M | Py_INCREF(obj); | 528 | 4.45M | return obj; | 529 | 4.45M | } |
Line | Count | Source | 526 | 679M | { | 527 | 679M | Py_INCREF(obj); | 528 | 679M | return obj; | 529 | 679M | } |
memoryobject.c:_Py_NewRef Line | Count | Source | 526 | 571k | { | 527 | 571k | Py_INCREF(obj); | 528 | 571k | return obj; | 529 | 571k | } |
moduleobject.c:_Py_NewRef Line | Count | Source | 526 | 1.44k | { | 527 | 1.44k | Py_INCREF(obj); | 528 | 1.44k | return obj; | 529 | 1.44k | } |
Line | Count | Source | 526 | 144M | { | 527 | 144M | Py_INCREF(obj); | 528 | 144M | return obj; | 529 | 144M | } |
Unexecuted instantiation: obmalloc.c:_Py_NewRef Unexecuted instantiation: picklebufobject.c:_Py_NewRef Line | Count | Source | 526 | 48 | { | 527 | 48 | Py_INCREF(obj); | 528 | 48 | return obj; | 529 | 48 | } |
Line | Count | Source | 526 | 1.42M | { | 527 | 1.42M | Py_INCREF(obj); | 528 | 1.42M | return obj; | 529 | 1.42M | } |
Line | Count | Source | 526 | 45.7M | { | 527 | 45.7M | Py_INCREF(obj); | 528 | 45.7M | return obj; | 529 | 45.7M | } |
Unexecuted instantiation: structseq.c:_Py_NewRef templateobject.c:_Py_NewRef Line | Count | Source | 526 | 4 | { | 527 | 4 | Py_INCREF(obj); | 528 | 4 | return obj; | 529 | 4 | } |
Line | Count | Source | 526 | 614M | { | 527 | 614M | Py_INCREF(obj); | 528 | 614M | return obj; | 529 | 614M | } |
Line | Count | Source | 526 | 67.1M | { | 527 | 67.1M | Py_INCREF(obj); | 528 | 67.1M | return obj; | 529 | 67.1M | } |
Unexecuted instantiation: typevarobject.c:_Py_NewRef unicodeobject.c:_Py_NewRef Line | Count | Source | 526 | 200M | { | 527 | 200M | Py_INCREF(obj); | 528 | 200M | return obj; | 529 | 200M | } |
Unexecuted instantiation: unicodectype.c:_Py_NewRef Unexecuted instantiation: unionobject.c:_Py_NewRef Unexecuted instantiation: weakrefobject.c:_Py_NewRef Line | Count | Source | 526 | 33.3k | { | 527 | 33.3k | Py_INCREF(obj); | 528 | 33.3k | return obj; | 529 | 33.3k | } |
Line | Count | Source | 526 | 12.5M | { | 527 | 12.5M | Py_INCREF(obj); | 528 | 12.5M | return obj; | 529 | 12.5M | } |
Line | Count | Source | 526 | 1.22G | { | 527 | 1.22G | Py_INCREF(obj); | 528 | 1.22G | return obj; | 529 | 1.22G | } |
Line | Count | Source | 526 | 2.88M | { | 527 | 2.88M | Py_INCREF(obj); | 528 | 2.88M | return obj; | 529 | 2.88M | } |
Line | Count | Source | 526 | 2.59k | { | 527 | 2.59k | Py_INCREF(obj); | 528 | 2.59k | return obj; | 529 | 2.59k | } |
Line | Count | Source | 526 | 105k | { | 527 | 105k | Py_INCREF(obj); | 528 | 105k | return obj; | 529 | 105k | } |
Line | Count | Source | 526 | 24 | { | 527 | 24 | Py_INCREF(obj); | 528 | 24 | return obj; | 529 | 24 | } |
Line | Count | Source | 526 | 29.2M | { | 527 | 29.2M | Py_INCREF(obj); | 528 | 29.2M | return obj; | 529 | 29.2M | } |
Line | Count | Source | 526 | 94.9k | { | 527 | 94.9k | Py_INCREF(obj); | 528 | 94.9k | return obj; | 529 | 94.9k | } |
Line | Count | Source | 526 | 10.9M | { | 527 | 10.9M | Py_INCREF(obj); | 528 | 10.9M | return obj; | 529 | 10.9M | } |
Unexecuted instantiation: future.c:_Py_NewRef Unexecuted instantiation: gc.c:_Py_NewRef Unexecuted instantiation: gc_gil.c:_Py_NewRef Line | Count | Source | 526 | 709k | { | 527 | 709k | Py_INCREF(obj); | 528 | 709k | return obj; | 529 | 709k | } |
Unexecuted instantiation: ceval_gil.c:_Py_NewRef Unexecuted instantiation: hamt.c:_Py_NewRef Unexecuted instantiation: hashtable.c:_Py_NewRef Line | Count | Source | 526 | 33.1k | { | 527 | 33.1k | Py_INCREF(obj); | 528 | 33.1k | return obj; | 529 | 33.1k | } |
Line | Count | Source | 526 | 456 | { | 527 | 456 | Py_INCREF(obj); | 528 | 456 | return obj; | 529 | 456 | } |
Line | Count | Source | 526 | 272 | { | 527 | 272 | Py_INCREF(obj); | 528 | 272 | return obj; | 529 | 272 | } |
Unexecuted instantiation: instrumentation.c:_Py_NewRef Unexecuted instantiation: instruction_sequence.c:_Py_NewRef Line | Count | Source | 526 | 20.3k | { | 527 | 20.3k | Py_INCREF(obj); | 528 | 20.3k | return obj; | 529 | 20.3k | } |
Unexecuted instantiation: legacy_tracing.c:_Py_NewRef Unexecuted instantiation: lock.c:_Py_NewRef Line | Count | Source | 526 | 323k | { | 527 | 323k | Py_INCREF(obj); | 528 | 323k | return obj; | 529 | 323k | } |
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 | 526 | 16 | { | 527 | 16 | Py_INCREF(obj); | 528 | 16 | return obj; | 529 | 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 | 526 | 259k | { | 527 | 259k | Py_INCREF(obj); | 528 | 259k | return obj; | 529 | 259k | } |
Line | Count | Source | 526 | 786 | { | 527 | 786 | Py_INCREF(obj); | 528 | 786 | return obj; | 529 | 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: formatter_unicode.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 | 526 | 38.9k | { | 527 | 38.9k | Py_INCREF(obj); | 528 | 38.9k | return obj; | 529 | 38.9k | } |
signalmodule.c:_Py_NewRef Line | Count | Source | 526 | 1.02k | { | 527 | 1.02k | Py_INCREF(obj); | 528 | 1.02k | return obj; | 529 | 1.02k | } |
Unexecuted instantiation: _tracemalloc.c:_Py_NewRef Unexecuted instantiation: _suggestions.c:_Py_NewRef _datetimemodule.c:_Py_NewRef Line | Count | Source | 526 | 38 | { | 527 | 38 | Py_INCREF(obj); | 528 | 38 | return obj; | 529 | 38 | } |
Unexecuted instantiation: _codecsmodule.c:_Py_NewRef _collectionsmodule.c:_Py_NewRef Line | Count | Source | 526 | 16.4M | { | 527 | 16.4M | Py_INCREF(obj); | 528 | 16.4M | return obj; | 529 | 16.4M | } |
Unexecuted instantiation: errnomodule.c:_Py_NewRef Line | Count | Source | 526 | 48 | { | 527 | 48 | Py_INCREF(obj); | 528 | 48 | return obj; | 529 | 48 | } |
Line | Count | Source | 526 | 39.4k | { | 527 | 39.4k | Py_INCREF(obj); | 528 | 39.4k | return obj; | 529 | 39.4k | } |
Unexecuted instantiation: fileio.c:_Py_NewRef Line | Count | Source | 526 | 10.2k | { | 527 | 10.2k | Py_INCREF(obj); | 528 | 10.2k | return obj; | 529 | 10.2k | } |
Line | Count | Source | 526 | 1.01k | { | 527 | 1.01k | Py_INCREF(obj); | 528 | 1.01k | return obj; | 529 | 1.01k | } |
Line | Count | Source | 526 | 79.0k | { | 527 | 79.0k | Py_INCREF(obj); | 528 | 79.0k | return obj; | 529 | 79.0k | } |
Line | Count | Source | 526 | 15.8k | { | 527 | 15.8k | Py_INCREF(obj); | 528 | 15.8k | return obj; | 529 | 15.8k | } |
itertoolsmodule.c:_Py_NewRef Line | Count | Source | 526 | 270 | { | 527 | 270 | Py_INCREF(obj); | 528 | 270 | return obj; | 529 | 270 | } |
Line | Count | Source | 526 | 297M | { | 527 | 297M | Py_INCREF(obj); | 528 | 297M | return obj; | 529 | 297M | } |
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 | 526 | 608 | { | 527 | 608 | Py_INCREF(obj); | 528 | 608 | return obj; | 529 | 608 | } |
_functoolsmodule.c:_Py_NewRef Line | Count | Source | 526 | 505 | { | 527 | 505 | Py_INCREF(obj); | 528 | 505 | return obj; | 529 | 505 | } |
Unexecuted instantiation: _localemodule.c:_Py_NewRef Unexecuted instantiation: _opcode.c:_Py_NewRef Line | Count | Source | 526 | 1.37M | { | 527 | 1.37M | Py_INCREF(obj); | 528 | 1.37M | return obj; | 529 | 1.37M | } |
Unexecuted instantiation: _stat.c:_Py_NewRef Unexecuted instantiation: symtablemodule.c:_Py_NewRef Unexecuted instantiation: pwdmodule.c:_Py_NewRef Line | Count | Source | 526 | 128 | { | 527 | 128 | Py_INCREF(obj); | 528 | 128 | return obj; | 529 | 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 | 526 | 567M | { | 527 | 567M | Py_INCREF(obj); | 528 | 567M | return obj; | 529 | 567M | } |
Unexecuted instantiation: boolobject.c:_Py_NewRef Unexecuted instantiation: bytes_methods.c:_Py_NewRef bytearrayobject.c:_Py_NewRef Line | Count | Source | 526 | 36 | { | 527 | 36 | Py_INCREF(obj); | 528 | 36 | return obj; | 529 | 36 | } |
Unexecuted instantiation: capsule.c:_Py_NewRef Unexecuted instantiation: cellobject.c:_Py_NewRef Line | Count | Source | 526 | 39.0M | { | 527 | 39.0M | Py_INCREF(obj); | 528 | 39.0M | return obj; | 529 | 39.0M | } |
Line | Count | Source | 526 | 488k | { | 527 | 488k | Py_INCREF(obj); | 528 | 488k | return obj; | 529 | 488k | } |
Unexecuted instantiation: complexobject.c:_Py_NewRef Line | Count | Source | 526 | 20.8M | { | 527 | 20.8M | Py_INCREF(obj); | 528 | 20.8M | return obj; | 529 | 20.8M | } |
Line | Count | Source | 526 | 4 | { | 527 | 4 | Py_INCREF(obj); | 528 | 4 | return obj; | 529 | 4 | } |
Line | Count | Source | 526 | 38.3M | { | 527 | 38.3M | Py_INCREF(obj); | 528 | 38.3M | return obj; | 529 | 38.3M | } |
Unexecuted instantiation: fileobject.c:_Py_NewRef Line | Count | Source | 526 | 4.98k | { | 527 | 4.98k | Py_INCREF(obj); | 528 | 4.98k | return obj; | 529 | 4.98k | } |
Line | Count | Source | 526 | 24.1M | { | 527 | 24.1M | Py_INCREF(obj); | 528 | 24.1M | return obj; | 529 | 24.1M | } |
Unexecuted instantiation: interpolationobject.c:_Py_NewRef Line | Count | Source | 526 | 690k | { | 527 | 690k | Py_INCREF(obj); | 528 | 690k | return obj; | 529 | 690k | } |
Line | Count | Source | 526 | 168 | { | 527 | 168 | Py_INCREF(obj); | 528 | 168 | return obj; | 529 | 168 | } |
methodobject.c:_Py_NewRef Line | Count | Source | 526 | 5.75M | { | 527 | 5.75M | Py_INCREF(obj); | 528 | 5.75M | return obj; | 529 | 5.75M | } |
Unexecuted instantiation: namespaceobject.c:_Py_NewRef Unexecuted instantiation: _contextvars.c:_Py_NewRef Line | Count | Source | 526 | 552k | { | 527 | 552k | Py_INCREF(obj); | 528 | 552k | return obj; | 529 | 552k | } |
Unexecuted instantiation: Python-tokenize.c:_Py_NewRef Unexecuted instantiation: asdl.c:_Py_NewRef Line | Count | Source | 526 | 44.0k | { | 527 | 44.0k | Py_INCREF(obj); | 528 | 44.0k | return obj; | 529 | 44.0k | } |
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 | 526 | 20.7k | { | 527 | 20.7k | Py_INCREF(obj); | 528 | 20.7k | return obj; | 529 | 20.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 |
530 | | |
531 | | static inline PyObject* _Py_XNewRef(PyObject *obj) |
532 | 1.35G | { |
533 | 1.35G | Py_XINCREF(obj); |
534 | 1.35G | return obj; |
535 | 1.35G | } Unexecuted instantiation: bytesobject.c:_Py_XNewRef Unexecuted instantiation: call.c:_Py_XNewRef Line | Count | Source | 532 | 60.0M | { | 533 | 60.0M | Py_XINCREF(obj); | 534 | 60.0M | return obj; | 535 | 60.0M | } |
Unexecuted instantiation: genericaliasobject.c:_Py_XNewRef Unexecuted instantiation: floatobject.c:_Py_XNewRef Line | Count | Source | 532 | 945k | { | 533 | 945k | Py_XINCREF(obj); | 534 | 945k | return obj; | 535 | 945k | } |
Unexecuted instantiation: longobject.c:_Py_XNewRef Line | Count | Source | 532 | 600M | { | 533 | 600M | Py_XINCREF(obj); | 534 | 600M | return obj; | 535 | 600M | } |
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 | 532 | 266k | { | 533 | 266k | Py_XINCREF(obj); | 534 | 266k | return obj; | 535 | 266k | } |
Unexecuted instantiation: typevarobject.c:_Py_XNewRef Unexecuted instantiation: unicodeobject.c:_Py_XNewRef Unexecuted instantiation: unicodectype.c:_Py_XNewRef Unexecuted instantiation: unionobject.c:_Py_XNewRef weakrefobject.c:_Py_XNewRef Line | Count | Source | 532 | 270k | { | 533 | 270k | Py_XINCREF(obj); | 534 | 270k | return obj; | 535 | 270k | } |
Unexecuted instantiation: _warnings.c:_Py_XNewRef bltinmodule.c:_Py_XNewRef Line | Count | Source | 532 | 317 | { | 533 | 317 | Py_XINCREF(obj); | 534 | 317 | return obj; | 535 | 317 | } |
Line | Count | Source | 532 | 67.8M | { | 533 | 67.8M | Py_XINCREF(obj); | 534 | 67.8M | return obj; | 535 | 67.8M | } |
Unexecuted instantiation: codecs.c:_Py_XNewRef Unexecuted instantiation: codegen.c:_Py_XNewRef Line | Count | Source | 532 | 9.58k | { | 533 | 9.58k | Py_XINCREF(obj); | 534 | 9.58k | return obj; | 535 | 9.58k | } |
Line | Count | Source | 532 | 24 | { | 533 | 24 | Py_XINCREF(obj); | 534 | 24 | return obj; | 535 | 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 | 532 | 2.58k | { | 533 | 2.58k | Py_XINCREF(obj); | 534 | 2.58k | return obj; | 535 | 2.58k | } |
Unexecuted instantiation: importdl.c:_Py_XNewRef Unexecuted instantiation: initconfig.c:_Py_XNewRef Unexecuted instantiation: instrumentation.c:_Py_XNewRef Unexecuted instantiation: instruction_sequence.c:_Py_XNewRef Unexecuted instantiation: intrinsics.c:_Py_XNewRef Unexecuted instantiation: legacy_tracing.c:_Py_XNewRef Unexecuted instantiation: lock.c:_Py_XNewRef Unexecuted instantiation: marshal.c:_Py_XNewRef Unexecuted instantiation: modsupport.c:_Py_XNewRef Unexecuted instantiation: mysnprintf.c:_Py_XNewRef Unexecuted instantiation: parking_lot.c:_Py_XNewRef Unexecuted instantiation: preconfig.c:_Py_XNewRef Unexecuted instantiation: pyarena.c:_Py_XNewRef Unexecuted instantiation: pyctype.c:_Py_XNewRef Unexecuted instantiation: pyhash.c:_Py_XNewRef Unexecuted instantiation: pylifecycle.c:_Py_XNewRef Unexecuted instantiation: pymath.c:_Py_XNewRef Line | Count | Source | 532 | 2.23k | { | 533 | 2.23k | Py_XINCREF(obj); | 534 | 2.23k | return obj; | 535 | 2.23k | } |
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 | 532 | 16 | { | 533 | 16 | Py_XINCREF(obj); | 534 | 16 | return obj; | 535 | 16 | } |
Unexecuted instantiation: thread.c:_Py_XNewRef Line | Count | Source | 532 | 60.6M | { | 533 | 60.6M | Py_XINCREF(obj); | 534 | 60.6M | return obj; | 535 | 60.6M | } |
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: formatter_unicode.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 | 532 | 32 | { | 533 | 32 | Py_XINCREF(obj); | 534 | 32 | return obj; | 535 | 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 | 532 | 608 | { | 533 | 608 | Py_XINCREF(obj); | 534 | 608 | return obj; | 535 | 608 | } |
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 | 532 | 48 | { | 533 | 48 | Py_XINCREF(obj); | 534 | 48 | return obj; | 535 | 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 | 532 | 14.0M | { | 533 | 14.0M | Py_XINCREF(obj); | 534 | 14.0M | return obj; | 535 | 14.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 | 532 | 5.55M | { | 533 | 5.55M | Py_XINCREF(obj); | 534 | 5.55M | return obj; | 535 | 5.55M | } |
Unexecuted instantiation: classobject.c:_Py_XNewRef Line | Count | Source | 532 | 6.37k | { | 533 | 6.37k | Py_XINCREF(obj); | 534 | 6.37k | return obj; | 535 | 6.37k | } |
Unexecuted instantiation: complexobject.c:_Py_XNewRef descrobject.c:_Py_XNewRef Line | Count | Source | 532 | 45.5k | { | 533 | 45.5k | Py_XINCREF(obj); | 534 | 45.5k | return obj; | 535 | 45.5k | } |
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 | 532 | 3.34k | { | 533 | 3.34k | Py_XINCREF(obj); | 534 | 3.34k | return obj; | 535 | 3.34k | } |
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 | 532 | 548M | { | 533 | 548M | Py_XINCREF(obj); | 534 | 548M | return obj; | 535 | 548M | } |
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 | 532 | 6.51k | { | 533 | 6.51k | Py_XINCREF(obj); | 534 | 6.51k | return obj; | 535 | 6.51k | } |
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 |
536 | | |
537 | | // Py_NewRef() and Py_XNewRef() are exported as functions for the stable ABI. |
538 | | // Names overridden with macros by static inline functions for best |
539 | | // performances. |
540 | | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000 |
541 | 5.16G | # define Py_NewRef(obj) _Py_NewRef(_PyObject_CAST(obj)) |
542 | 1.34G | # define Py_XNewRef(obj) _Py_XNewRef(_PyObject_CAST(obj)) |
543 | | #else |
544 | | # define Py_NewRef(obj) _Py_NewRef(obj) |
545 | | # define Py_XNewRef(obj) _Py_XNewRef(obj) |
546 | | #endif |
547 | | |
548 | | |
549 | | #ifdef __cplusplus |
550 | | } |
551 | | #endif |
552 | | #endif // !_Py_REFCOUNT_H |