3 ms·
I'm starting to be convinced that data races don't matter if the variable being raced is in the machine word size.
by jacinabox 7y ago
I'm starting to be convinced that data races don't matter if the variable being raced is in the machine word size.
- bshanks 7y agoIt depends on context. It's true that many CPUs provide atomicity for aligned accesses of the machine word size. However, the C/C++11 standard defines data races to be undefined behavior, so a data race in a C program still matters.