4 ms·
Having had to track down memory data races in a production C++ codebase I'm not sure that I completely agree with your assessment.
by vvanders 9y ago
Having had to track down memory data races in a production C++ codebase I'm not sure that I completely agree with your assessment.
- baq 9y agoI've once spent quite a few hours debugging a dangling pointer that wasn't zeroed after delete and was written to which might or might not have corrupted a piece of lua interpreter's state. fixing that felt good. the preceding 24 hours, not so much.
- vvanders 9y agoYup. Data races are particularly nasty because any print statements or debug tracing can trigger a memory fence/reorder and make the problem disappear. Nothing more frustrating then adding a printf only to see the issue no longer manifest.