3 ms·
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.
by oconnor663 6y 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.
- ernado 6y agoIt 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.