summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/tsan/rtl/tsan_rtl_thread.cc
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2014-03-20 10:19:02 +0000
committerDmitry Vyukov <dvyukov@google.com>2014-03-20 10:19:02 +0000
commit6e2557769cd11ace9e50891a1e76d3452630b094 (patch)
tree9c2e741bd3e5e21d68514faafc370b311883d424 /compiler-rt/lib/tsan/rtl/tsan_rtl_thread.cc
parent87d13e5ec16abf645f1b0418c001340db397c34a (diff)
downloadbcm5719-llvm-6e2557769cd11ace9e50891a1e76d3452630b094.tar.gz
bcm5719-llvm-6e2557769cd11ace9e50891a1e76d3452630b094.zip
tsan: use stack depot for goroutine creation stacks (as C++ threads do)
llvm-svn: 204326
Diffstat (limited to 'compiler-rt/lib/tsan/rtl/tsan_rtl_thread.cc')
-rw-r--r--compiler-rt/lib/tsan/rtl/tsan_rtl_thread.cc4
1 files changed, 0 insertions, 4 deletions
diff --git a/compiler-rt/lib/tsan/rtl/tsan_rtl_thread.cc b/compiler-rt/lib/tsan/rtl/tsan_rtl_thread.cc
index abf68ca3b2b..c3ec3ad41fe 100644
--- a/compiler-rt/lib/tsan/rtl/tsan_rtl_thread.cc
+++ b/compiler-rt/lib/tsan/rtl/tsan_rtl_thread.cc
@@ -59,11 +59,7 @@ void ThreadContext::OnCreated(void *arg) {
// Can't increment epoch w/o writing to the trace as well.
TraceAddEvent(args->thr, args->thr->fast_state, EventTypeMop, 0);
ReleaseImpl(args->thr, 0, &sync);
-#ifdef TSAN_GO
- creation_stack.ObtainCurrent(args->thr, args->pc);
-#else
creation_stack_id = CurrentStackId(args->thr, args->pc);
-#endif
if (reuse_count == 0)
StatInc(args->thr, StatThreadMaxTid);
}
OpenPOWER on IntegriCloud