[atomic] On IBM, use light-weight sync for everything
lwsync() is a full read/write-barrier. That's all we need, never need sync(). I'm not sure why an isync() was used in fetch_and_add, but since that's a read-modify-write, I just changed it to have lwsync() on both sides.
Showing
想要评论请 注册 或 登录