aboutsummaryrefslogtreecommitdiff
path: root/libsanitizer/tsan
diff options
context:
space:
mode:
authorBernd Edlinger <bernd.edlinger@hotmail.de>2015-03-11 19:20:03 +0000
committerBernd Edlinger <edlinger@gcc.gnu.org>2015-03-11 19:20:03 +0000
commit563fb64a576a9a4abbe8f03f593ce0862842a1e8 (patch)
tree2970fbf92bf18ad457d8560a2939ce7675d6bdad /libsanitizer/tsan
parent0c9dc4ae5963c1e752a04c8fb9d1bb3f37df7290 (diff)
downloadgcc-563fb64a576a9a4abbe8f03f593ce0862842a1e8.zip
gcc-563fb64a576a9a4abbe8f03f593ce0862842a1e8.tar.gz
gcc-563fb64a576a9a4abbe8f03f593ce0862842a1e8.tar.bz2
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
Diffstat (limited to 'libsanitizer/tsan')
-rw-r--r--libsanitizer/tsan/tsan_rtl_report.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/libsanitizer/tsan/tsan_rtl_report.cc b/libsanitizer/tsan/tsan_rtl_report.cc
index 11ec838..f86cfd4 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
}