Re:Race Condition vs. Data Race (2011)
by jacinabox on Monday July 22, 2019 @02:02PM
(#20500529)
I'm starting to be convinced that data races don't matter if the variable being raced is in the machine word size.
[ Parent
| on HN ]
It 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.