[llvm-commits] [compiler-rt] r160861 - /compiler-rt/trunk/lib/tsan/rtl/tsan_sync.cc

Dmitry Vyukov dvyukov at google.com
Fri Jul 27 06:21:33 PDT 2012


Author: dvyukov
Date: Fri Jul 27 08:21:33 2012
New Revision: 160861

URL: http://llvm.org/viewvc/llvm-project?rev=160861&view=rev
Log:
tasn: do not remember stack traces for sync objects for Go (they are not reported anyway)

Modified:
    compiler-rt/trunk/lib/tsan/rtl/tsan_sync.cc

Modified: compiler-rt/trunk/lib/tsan/rtl/tsan_sync.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl/tsan_sync.cc?rev=160861&r1=160860&r2=160861&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_sync.cc (original)
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_sync.cc Fri Jul 27 08:21:33 2012
@@ -71,7 +71,9 @@
       StatInc(thr, StatSyncCreated);
       void *mem = internal_alloc(MBlockSync, sizeof(SyncVar));
       res = new(mem) SyncVar(addr);
+#ifndef TSAN_GO
       res->creation_stack.ObtainCurrent(thr, pc);
+#endif
       res->next = p->val;
       p->val = res;
     }





More information about the llvm-commits mailing list