We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
_Py_IsImmortal
1 parent fb7f79b commit f14e9f9Copy full SHA for f14e9f9
Include/object.h
@@ -349,7 +349,8 @@ static inline Py_ssize_t Py_SIZE(PyObject *ob) {
349
static inline Py_ALWAYS_INLINE int _Py_IsImmortal(PyObject *op)
350
{
351
#if defined(Py_GIL_DISABLED)
352
- return (op->ob_ref_local == _Py_IMMORTAL_REFCNT_LOCAL);
+ return (_Py_atomic_load_uint32_relaxed(&op->ob_ref_local) ==
353
+ _Py_IMMORTAL_REFCNT_LOCAL);
354
#elif SIZEOF_VOID_P > 4
355
return (_Py_CAST(PY_INT32_T, op->ob_refcnt) < 0);
356
#else
Tools/tsan/suppressions_free_threading.txt
@@ -14,7 +14,6 @@ race:set_allocator_unlocked
14
race:_add_to_weak_set
15
race:_in_weak_set
16
race:_mi_heap_delayed_free_partial
17
-race:_Py_IsImmortal
18
race:_Py_IsOwnedByCurrentThread
19
race:_PyEval_EvalFrameDefault
20
race:_PyFunction_SetVersion
0 commit comments