Hacker News new | ask | show | jobs
by oconnor663 2245 days ago
IIUC, the point is that the code has been in prod for a year, but the race detector only just now found the bug? But I could be wrong.
1 comments

It is right, race detector is not enabled by default and you should explicitly run tests with it or tell compiler to enable it - it is not compile-time, but run-time.

But still, it detects this error.