3 ms·
Without compiler fences in the right place [1] GCC and clang can miscompile the code even on x86. Doesn't mean they will of course. [1] see the linux kernel i
by gpderetta 5y ago
Without compiler fences in the right place [1] GCC and clang can miscompile the code even on x86. Doesn't mean they will of course.
[1] see the linux kernel implementation of load acquire and store release on x86 for example.