tsan_rtl_report.cc (ScopedReport::AddThread): Cherry pick upstream 224508 and 224755.

2015-03-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        * tsan/tsan_rtl_report.cc (ScopedReport::AddThread): Cherry pick
        upstream 224508 and 224755.

From-SVN: r221356
This commit is contained in:
Bernd Edlinger 2015-03-11 19:20:03 +00:00 committed by Bernd Edlinger
parent 0c9dc4ae59
commit 563fb64a57
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2015-03-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
* tsan/tsan_rtl_report.cc (ScopedReport::AddThread): Cherry pick
upstream 224508 and 224755.
2015-03-09 Jakub Jelinek <jakub@redhat.com>
PR sanitizer/63958

View file

@ -242,7 +242,8 @@ ThreadContext *IsThreadStackOrTls(uptr addr, bool *is_stack) {
void ScopedReport::AddThread(int unique_tid, bool suppressable) {
#ifndef TSAN_GO
AddThread(FindThreadByUidLocked(unique_tid), suppressable);
if (const ThreadContext *tctx = FindThreadByUidLocked(unique_tid))
AddThread(tctx, suppressable);
#endif
}