overly strict semantics
overly strict semantics
Posted Jan 10, 2026 1:39 UTC (Sat) by wahern (subscriber, #37304)In reply to: overly strict semantics by bertschingert
Parent article: READ_ONCE(), WRITE_ONCE(), but not for Rust
Also, C11 atomics is not the origin point for atomic intrinsics[1] or a meaningful memory model in either GCC or Linux. It's not the final or even 100% comprehensive model, either. I think the push for a more formal memory model in C, C++, and the compilers gives a false impression such a thing was completely non-existent beforehand and that things are satisfactory today.
[1] GCC had at least two sets of intrinsics before supporting C11 atomics, and of course projects like the kernel had their own set that work just as well today as they did before the latest set of builtins.
