diff options
author | Kuba Mracek <mracek@apple.com> | 2017-02-02 12:54:21 +0000 |
---|---|---|
committer | Kuba Mracek <mracek@apple.com> | 2017-02-02 12:54:21 +0000 |
commit | bba1d405894ff41e283645386704e4eb04d3cf7c (patch) | |
tree | 7cd07422523d42505ba647a766d7eb8645710010 /compiler-rt/lib/tsan/go | |
parent | e396d8e2602e0b269d9c8145d0738a46ff89eb6d (diff) | |
download | bcm5719-llvm-bba1d405894ff41e283645386704e4eb04d3cf7c.tar.gz bcm5719-llvm-bba1d405894ff41e283645386704e4eb04d3cf7c.zip |
[tsan] Properly describe GCD worker threads in reports
When dealing with GCD worker threads, TSan currently prints weird things like "created by thread T-1" and "[failed to restore the stack]" in reports. This patch avoids that and instead prints "Thread T3 (...) is a GCD worker thread".
Differential Revision: https://reviews.llvm.org/D29103
llvm-svn: 293882
Diffstat (limited to 'compiler-rt/lib/tsan/go')
-rw-r--r-- | compiler-rt/lib/tsan/go/tsan_go.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/tsan/go/tsan_go.cc b/compiler-rt/lib/tsan/go/tsan_go.cc index 34625c8af0b..7fb4eb2a5ff 100644 --- a/compiler-rt/lib/tsan/go/tsan_go.cc +++ b/compiler-rt/lib/tsan/go/tsan_go.cc @@ -214,7 +214,7 @@ void __tsan_go_start(ThreadState *parent, ThreadState **pthr, void *pc) { ThreadState *thr = AllocGoroutine(); *pthr = thr; int goid = ThreadCreate(parent, (uptr)pc, 0, true); - ThreadStart(thr, goid, 0); + ThreadStart(thr, goid, 0, /*workerthread*/ false); } void __tsan_go_end(ThreadState *thr) { |