Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9ee12f9

Browse files
committed
Use FT_ATOMIC_STORE_SSIZE_RELAXED macro
1 parent 23f9f66 commit 9ee12f9

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

Objects/tupleobject.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -333,11 +333,7 @@ tuple_hash(PyObject *op)
333333
acc = 1546275796;
334334
}
335335

336-
#ifdef Py_GIL_DISABLED
337-
_Py_atomic_store_ssize_relaxed(&v->ob_hash, acc);
338-
#else
339-
v->ob_hash = acc;
340-
#endif
336+
FT_ATOMIC_STORE_SSIZE_RELAXED(v->ob_hash, acc);
341337

342338
return acc;
343339
}

0 commit comments

Comments
 (0)