File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -349,7 +349,8 @@ static inline Py_ssize_t Py_SIZE(PyObject *ob) {
349
349
static inline Py_ALWAYS_INLINE int _Py_IsImmortal (PyObject * op )
350
350
{
351
351
#if defined(Py_GIL_DISABLED )
352
- return (op -> ob_ref_local == _Py_IMMORTAL_REFCNT_LOCAL );
352
+ return (_Py_atomic_load_uint32_relaxed (& op -> ob_ref_local ) ==
353
+ _Py_IMMORTAL_REFCNT_LOCAL );
353
354
#elif SIZEOF_VOID_P > 4
354
355
return (_Py_CAST (PY_INT32_T , op -> ob_refcnt ) < 0 );
355
356
#else
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ race:set_allocator_unlocked
14
14
race:_add_to_weak_set
15
15
race:_in_weak_set
16
16
race:_mi_heap_delayed_free_partial
17
- race:_Py_IsImmortal
18
17
race:_Py_IsOwnedByCurrentThread
19
18
race:_PyEval_EvalFrameDefault
20
19
race:_PyFunction_SetVersion
You can’t perform that action at this time.
0 commit comments