tsan: always strip bottom frame in Go reports
authorDmitry Vyukov <dvyukov@google.com>
Thu, 6 Jun 2013 13:31:35 +0000 (13:31 +0000)
committerDmitry Vyukov <dvyukov@google.com>
Thu, 6 Jun 2013 13:31:35 +0000 (13:31 +0000)
llvm-svn: 183408

compiler-rt/lib/tsan/rtl/tsan_rtl_report.cc

index f77a7a2efa964f73fa2ccb3da49ad74108006d73..dfc5834c33820ea729d146d924a51714cc9ecaeb 100644 (file)
@@ -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
 }