From 4b4523269530b1094bcfd4ba982c177762240eeb Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 20 Mar 2014 10:19:02 +0000 Subject: tsan: use stack depot for goroutine creation stacks (as C++ threads do) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204326 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/tsan/rtl/tsan_rtl_thread.cc | 4 ---- 1 file changed, 4 deletions(-) (limited to 'lib/tsan/rtl/tsan_rtl_thread.cc') diff --git a/lib/tsan/rtl/tsan_rtl_thread.cc b/lib/tsan/rtl/tsan_rtl_thread.cc index abf68ca3b..c3ec3ad41 100644 --- a/lib/tsan/rtl/tsan_rtl_thread.cc +++ b/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); } -- cgit v1.2.3