In __sync_bool_compare_and_swap(), return true if the returned value is the
same as the expected one, not the desired one. Pointy hat to: cognet MFC after: 3 days
This commit is contained in:
parent
171403a3b3
commit
98bd8a108d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=331441
@ -327,7 +327,7 @@ __sync_bool_compare_and_swap_4(uint32_t *mem, uint32_t expected,
|
||||
{
|
||||
|
||||
return (do_compare_and_swap_4(mem, expected, desired) ==
|
||||
desired);
|
||||
expected);
|
||||
}
|
||||
|
||||
#define EMIT_FETCH_AND_OP_4(name, op) \
|
||||
|
Loading…
Reference in New Issue
Block a user