[compiler-rt] r229116 - tsan: disable deadlock detector in Go mode
Dmitry Vyukov
dvyukov at google.com
Fri Feb 13 07:44:50 PST 2015
Author: dvyukov
Date: Fri Feb 13 09:44:50 2015
New Revision: 229116
URL: http://llvm.org/viewvc/llvm-project?rev=229116&view=rev
Log:
tsan: disable deadlock detector in Go mode
Go does not use that.
https://code.google.com/p/thread-sanitizer/issues/detail?id=89
Modified:
compiler-rt/trunk/lib/tsan/rtl/tsan_flags.cc
Modified: compiler-rt/trunk/lib/tsan/rtl/tsan_flags.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl/tsan_flags.cc?rev=229116&r1=229115&r2=229116&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_flags.cc (original)
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_flags.cc Fri Feb 13 09:44:50 2015
@@ -62,7 +62,9 @@ void InitializeFlags(Flags *f, const cha
CommonFlags cf;
cf.CopyFrom(*common_flags());
cf.allow_addr2line = true;
+#ifndef SANITIZER_GO
cf.detect_deadlocks = true;
+#endif
cf.print_suppressions = false;
cf.stack_trace_format = " #%n %f %S %M";
OverrideCommonFlags(cf);
More information about the llvm-commits
mailing list