diff options
author | Dmitry Vyukov <dvyukov@google.com> | 2013-06-06 13:31:35 +0000 |
---|---|---|
committer | Dmitry Vyukov <dvyukov@google.com> | 2013-06-06 13:31:35 +0000 |
commit | 1dc5f39fbcb09734809b73eb16dd64b50d647038 (patch) | |
tree | 998c6af29b71b0429dcf45e5c3f070f79b981e1a /lib/tsan/rtl/tsan_rtl_report.cc | |
parent | ad785cb2d7f2ab80d2f6bfd7f05d4898807592ad (diff) | |
download | compiler-rt-1dc5f39fbcb09734809b73eb16dd64b50d647038.tar.gz compiler-rt-1dc5f39fbcb09734809b73eb16dd64b50d647038.tar.bz2 compiler-rt-1dc5f39fbcb09734809b73eb16dd64b50d647038.tar.xz |
tsan: always strip bottom frame in Go reports
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183408 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/tsan/rtl/tsan_rtl_report.cc')
-rw-r--r-- | lib/tsan/rtl/tsan_rtl_report.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/tsan/rtl/tsan_rtl_report.cc b/lib/tsan/rtl/tsan_rtl_report.cc index f77a7a2e..dfc5834c 100644 --- a/lib/tsan/rtl/tsan_rtl_report.cc +++ b/lib/tsan/rtl/tsan_rtl_report.cc @@ -95,8 +95,9 @@ static void StackStripMain(ReportStack *stack) { DPrintf("Bottom stack frame of stack %zx is missed\n", stack->pc); } #else - if (last && 0 == internal_strcmp(last, "schedunlock")) - last_frame2->next = 0; + // The last frame always point into runtime (gosched0, goexit0, runtime.main). + last_frame2->next = 0; + (void)last; #endif } |