News for hackers. Stuff that matters.
Re:Why Rust mutexes look like they do by netheril96 on Saturday April 02, 2022 @05:28PM (#30891842)
It is always wrong. Compiler optimization and CPU dark magic like instruction reorder will wreak havoc on your unprotected reads. That is what undefined behavior really means, not “it’s actually defined but we don’t want to tell you”.

There are no comments on this comment yet.