Closed aidancully closed 6 years ago
also, should the ck_pr_fence_store
on line 240 move under the assignment to (head1)->stqh_last
?
also, should the ck_pr_fence_store on line 240 move under the assignment to (head1)->stqh_last?
Why? The current location is meant to serialize subsequent store operations associated with the list. The moment the structure becomes "visible" is after the volatile store operation. There is no reason to move it.
Great catch! Merged in.
old version would only attempt to append
head2
tohead1
ifhead2
was empty.