diff options
author | Dmitry Vyukov <dvyukov@google.com> | 2015-02-16 14:49:34 +0000 |
---|---|---|
committer | Dmitry Vyukov <dvyukov@google.com> | 2015-02-16 14:49:34 +0000 |
commit | 620ebaa9c164f99dc945bb6adf173ef373ba98bf (patch) | |
tree | 829263f1d47492462427961c6716308fca9b40fa /compiler-rt/lib/tsan/rtl/tsan_rtl_thread.cc | |
parent | 3ac5c27c1fe9e0fea9ca1842ea307b4fc3e2e85e (diff) | |
download | bcm5719-llvm-620ebaa9c164f99dc945bb6adf173ef373ba98bf.tar.gz bcm5719-llvm-620ebaa9c164f99dc945bb6adf173ef373ba98bf.zip |
tsan: remove everything related to rss/background thread in Go mode
In Go mode the background thread is not started (internal_thread_start is empty).
There is no sense in having this code compiled in.
Also removes dependency on sanitizer_linux_libcdep.cc which is good,
ideally Go runtime does not depend on libc at all.
llvm-svn: 229396
Diffstat (limited to 'compiler-rt/lib/tsan/rtl/tsan_rtl_thread.cc')
-rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_rtl_thread.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler-rt/lib/tsan/rtl/tsan_rtl_thread.cc b/compiler-rt/lib/tsan/rtl/tsan_rtl_thread.cc index 0cb2fcbde00..3ca9793e699 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_rtl_thread.cc +++ b/compiler-rt/lib/tsan/rtl/tsan_rtl_thread.cc @@ -241,6 +241,7 @@ void ThreadStart(ThreadState *thr, int tid, uptr os_id) { uptr stk_size = 0; uptr tls_addr = 0; uptr tls_size = 0; +#ifndef SANITIZER_GO GetThreadStackAndTls(tid == 0, &stk_addr, &stk_size, &tls_addr, &tls_size); if (tid) { @@ -261,6 +262,7 @@ void ThreadStart(ThreadState *thr, int tid, uptr os_id) { thr_end, tls_addr + tls_size - thr_end); } } +#endif ThreadRegistry *tr = ctx->thread_registry; OnStartedArgs args = { thr, stk_addr, stk_size, tls_addr, tls_size }; |