8 Mar
2014
8 Mar
'14
6:29 p.m.
On 8 March 2014 16:07, Niall Douglas wrote:
The ThreadSanitiser doesn't need everything to be instrumented, and it has the huge advantage of speed and memory consumption over valgrind's helgrind or DRD. ThreadSanitiser has two versions, one based on valgrind where a subset of DRD/helgrind instrumentation is recognised, the other based on a clang backend which currently does not recognise DRD/helgrind instrumentation.
The valgrind-based ThreadSanitizer v1 is not really being developed or supported now IIUC. The new version is present in both Clang and GCC, and if you use those compilers' built-in atomic operations (either the older __sync_xxxx or newer __atomic_xxx intrinsics) then tsan should understand them and need no instrumentation.