Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
metaltyphoon
· 3w ago · 0 comments
If this is such a good default, why make me type `-fsanatize=address? Why isn't this the default when not doing "release mode"?
Comments
[–]
William_BB
3w ago
The obvious answer is that I don't want to pay for these checks at runtime and can catch most of these bugs at test time. There are definitely use cases where that's acceptable.
[–]
woodruffw
3w ago
It adds nontrivial runtime cost. It’s also not a perfect mitigation (there are plenty of unsound patterns that ASan, UBSan, and TSan won’t catch).
[–]
0c3ca83
3w ago
Good question. How much of a slowdown are you willing to accept on deployed systems?
[–]
musicale
3w ago
Are "deployed systems" running "release mode"?