Hacker News new | ask | show | jobs
by firethief 2657 days ago
Imagine implementing a simple spinlock, but then substituting relaxed atomics for acquire/release synchronization. The compiler can reorder taking the lock relative to the protected operations and render the lock useless.
1 comments

Thanks!