[compiler-rt] r183408 - tsan: always strip bottom frame in Go reports
Dmitry Vyukov
dvyukov at google.com
Thu Jun 6 06:31:35 PDT 2013
Author: dvyukov
Date: Thu Jun 6 08:31:35 2013
New Revision: 183408
URL: http://llvm.org/viewvc/llvm-project?rev=183408&view=rev
Log:
tsan: always strip bottom frame in Go reports
Modified:
compiler-rt/trunk/lib/tsan/rtl/tsan_rtl_report.cc
Modified: compiler-rt/trunk/lib/tsan/rtl/tsan_rtl_report.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl/tsan_rtl_report.cc?rev=183408&r1=183407&r2=183408&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_rtl_report.cc (original)
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_rtl_report.cc Thu Jun 6 08:31:35 2013
@@ -95,8 +95,9 @@ static void StackStripMain(ReportStack *
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
}
More information about the llvm-commits
mailing list