[PATCH] D16164: [LSan] Use __tls_get_addr interceptor to keep track of dynamic TLS.

Alexey Samsonov via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 13 16:11:19 PST 2016


samsonov created this revision.
samsonov added a reviewer: kcc.
samsonov added a subscriber: llvm-commits.

We have a way to keep track of allocated DTLS segments: let's use it
in LSan. Although this code is fragile and relies on glibc
implementation details, in some cases it proves to be better than
existing way of tracking DTLS in LSan: marking as "reachable" all
memory chunks allocated directly by "ld".

The plan is to eventually get rid of the latter, once we are sure
it's safe to remove.

http://reviews.llvm.org/D16164

Files:
  lib/asan/asan_thread.cc
  lib/asan/asan_thread.h
  lib/lsan/lsan.cc
  lib/lsan/lsan_common.cc
  lib/lsan/lsan_common.h
  lib/lsan/lsan_interceptors.cc
  lib/lsan/lsan_thread.cc
  lib/lsan/lsan_thread.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16164.44812.patch
Type: text/x-patch
Size: 9338 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160114/138d8430/attachment.bin>


More information about the llvm-commits mailing list