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

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use FT_ATOMIC_STORE_SSIZE_RELAXED macro
  • Loading branch information
mdboom committed Mar 24, 2025
commit 9ee12f9f46a6e4b6a4a389f2b27b28df06475b81
6 changes: 1 addition & 5 deletions Objects/tupleobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -333,11 +333,7 @@ tuple_hash(PyObject *op)
acc = 1546275796;
}

#ifdef Py_GIL_DISABLED
_Py_atomic_store_ssize_relaxed(&v->ob_hash, acc);
#else
v->ob_hash = acc;
#endif
FT_ATOMIC_STORE_SSIZE_RELAXED(v->ob_hash, acc);

return acc;
}
Expand Down