So I am using ThreadSanitizer, and I find myself cleaning up data races that don't matter, in order to keep the output clean. (For example, an atomic set of a flag, where another thread reads that flag word, but doesn't care about that flag). On the one hand,
-
-
So I am doing it, but, it doesn't feel totally good to me. P.S. What is the best practice for getting tsan to shut up if there is an actual data race that you intend to be there and is fine (e.g. a thread polls a location to see if a value shows up there), without
Show this thread -
doing something that might cause you to miss a real problem later?
Show this thread
End of conversation
New conversation -
-
-
Major difference with the sanitizers is that they have a near zero percent false positive rate by design. TSan is giving you reports based on the compiler's view of the world and what assumptions it makes. It doesn't care what CPU you're targeting, as it doesn't matter.
-
Nope. This is the whole problem with this mindset. It *does* matter, because the actual job I am trying to do is put a specific program onto a specific computer. It's not that toxic in this case, but the whole UB cluster-f is super toxic.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.