[PATCH] D18164: [tsan] Do not instrument reads/writes to instruction profile counters.
Anna Zaks via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 14 15:48:22 PDT 2016
zaks.anna created this revision.
zaks.anna added reviewers: vsk, kcc, dvyukov, kubabrecka.
zaks.anna added a subscriber: llvm-commits.
We have known races on profile counters, which can be reproduced by enabling -fsanitize=thread and -fprofile-instr-generate simultaneously on a multi-threaded program. This patch avoids reporting those races by not instrumenting the reads and writes coming from the instruction profiler.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 4334 bytes
Desc: not available
More information about the llvm-commits