Comment Comment by loeg > It's obviously, trivially broken. Stores the index before storing the value, so the other thread reads nonsense whenever the race goes against it.Are we reading the same code? The stores are clearly after value accesses.> Also doesn't have fences on the store?? It uses acquire/release semantics seemingly correctly. Explicit fences are not required. parent loeg 7 months ago
Are we reading the same code? The stores are clearly after value accesses.
> Also doesn't have fences on the store
?? It uses acquire/release semantics seemingly correctly. Explicit fences are not required.