Page MenuHomePhabricator

[sanitizer] Avoid memset call in tsan
ClosedPublic

Authored by rupprecht on Dec 27 2018, 11:07 AM.

Details

Summary

Assigning an array of bools to {false, false, false} can, in certain build configurations, lead to a memset call. Use internal_memset to avoid this.

Diff Detail

Repository
rL LLVM

Event Timeline

rupprecht created this revision.Dec 27 2018, 11:07 AM
jlebar accepted this revision.Dec 27 2018, 12:16 PM
This revision is now accepted and ready to land.Dec 27 2018, 12:16 PM

Evgenii -- I'd like to commit now to fix our internal breakage (this looks trivial enough to me), but I'm happy to do post-commit changes.

This revision was automatically updated to reflect the committed changes.