News for hackers. Stuff that matters.
Re:What's up with this new memory_order_consume memory order? by gpderetta on Wednesday May 24, 2023 @11:31AM (#36059505)
With memory_order_acquire, you need a load-load barrier on the read side of RCU on ARM; with memory_order_consume, assuming an optimal implementation you do not. On alpha you need a barrier either way. Hence consume improves performance on ARM (and other similar architectures), but doesn't help Alpha.

edit: to be more explicit, you can't formally implement RCU with relaxed + a compiler barrier, although in practice it might work most of the time.

Re:What's up with this new memory_order_consume memory order? by tialaramex on Wednesday May 24, 2023 @11:40AM (#36059635)
I see, I think I'm never going to get this straight, so expect me to screw it up the next time I try to summarise as well, sorry.