From: Bernd Edlinger Date: Wed, 11 Mar 2015 19:20:03 +0000 (+0000) Subject: tsan_rtl_report.cc (ScopedReport::AddThread): Cherry pick upstream 224508 and 224755. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=563fb64a576a9a4abbe8f03f593ce0862842a1e8;p=gcc.git tsan_rtl_report.cc (ScopedReport::AddThread): Cherry pick upstream 224508 and 224755. 2015-03-11 Bernd Edlinger * tsan/tsan_rtl_report.cc (ScopedReport::AddThread): Cherry pick upstream 224508 and 224755. From-SVN: r221356 --- diff --git a/libsanitizer/ChangeLog b/libsanitizer/ChangeLog index 129de3b20d5..6086c09c46c 100644 --- a/libsanitizer/ChangeLog +++ b/libsanitizer/ChangeLog @@ -1,3 +1,8 @@ +2015-03-11 Bernd Edlinger + + * tsan/tsan_rtl_report.cc (ScopedReport::AddThread): Cherry pick + upstream 224508 and 224755. + 2015-03-09 Jakub Jelinek PR sanitizer/63958 diff --git a/libsanitizer/tsan/tsan_rtl_report.cc b/libsanitizer/tsan/tsan_rtl_report.cc index 11ec8381de6..f86cfd4681d 100644 --- a/libsanitizer/tsan/tsan_rtl_report.cc +++ b/libsanitizer/tsan/tsan_rtl_report.cc @@ -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 }