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 @01:41PM (#36061567)
The article has an explicit example of how a compiler can break the dependency by adding speculation (for example after PGO). In practice it is unlikely that a plain load through a pointer will break, but consume allows for more complex dependencies beyond pointer dereferences.

There are no comments on this comment yet.