Thanks to visit codestin.com Credit goes to github.com
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.
1 parent b624490 commit b45af00Copy full SHA for b45af00
Objects/object.c
@@ -374,7 +374,7 @@ _Py_MergeZeroLocalRefcount(PyObject *op)
374
assert(op->ob_ref_local == 0);
375
376
_Py_atomic_store_uintptr_relaxed(&op->ob_tid, 0);
377
- Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&op->ob_ref_shared);
+ Py_ssize_t shared = _Py_atomic_load_ssize_acquire(&op->ob_ref_shared);
378
if (shared == 0) {
379
// Fast-path: shared refcount is zero (including flags)
380
_Py_Dealloc(op);
0 commit comments