News for hackers. Stuff that matters.
Re:A bug that doesn’t exist on x86: Exploiting an ARM-only r... by scatters on Tuesday October 26, 2021 @11:19AM (#29001469)
Another place it's meaningful to use `volatile` is in benchmarking and testing: to either ensure that a block of code is run despite not having any side effects, or to ensure that a block of code that should not be run is still compiled and emitted to binary.

But yes, `volatile` for what should be atomics is a clear code smell. I made quite a loud noise when I read "the code quality looks excellent" in the article.

There are no comments on this comment yet.