aboutsummaryrefslogtreecommitdiff
path: root/lib/lsan/lsan_common.cc
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2017-06-03 15:21:00 +0000
committerDimitry Andric <dim@FreeBSD.org>2017-06-03 15:21:00 +0000
commit25091d6bd042c6bf2709eaab2bd1a88f3f2d9fda (patch)
tree55100adfb3ecde3bca3a6aea64f3899b6d46a1c8 /lib/lsan/lsan_common.cc
parent06eabdc027f984611832945782f7c36800d0d397 (diff)
downloadsrc-25091d6bd042c6bf2709eaab2bd1a88f3f2d9fda.tar.gz
src-25091d6bd042c6bf2709eaab2bd1a88f3f2d9fda.zip
Vendor import of compiler-rt trunk r304659:vendor/compiler-rt/compiler-rt-trunk-r304659
Notes
Notes: svn path=/vendor/compiler-rt/dist/; revision=319527 svn path=/vendor/compiler-rt/compiler-rt-trunk-r304659/; revision=319528; tag=vendor/compiler-rt/compiler-rt-trunk-r304659
Diffstat (limited to 'lib/lsan/lsan_common.cc')
-rw-r--r--lib/lsan/lsan_common.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/lsan/lsan_common.cc b/lib/lsan/lsan_common.cc
index a5ffc6835f5f..d4f670681fa5 100644
--- a/lib/lsan/lsan_common.cc
+++ b/lib/lsan/lsan_common.cc
@@ -408,6 +408,9 @@ static void MarkInvalidPCCb(uptr chunk, void *arg) {
// On Linux, handles dynamically allocated TLS blocks by treating all chunks
// allocated from ld-linux.so as reachable.
+// On Linux, treats all chunks allocated from ld-linux.so as reachable, which
+// covers dynamically allocated TLS blocks, internal dynamic loader's loaded
+// modules accounting etc.
// Dynamic TLS blocks contain the TLS variables of dynamically loaded modules.
// They are allocated with a __libc_memalign() call in allocate_and_init()
// (elf/dl-tls.c). Glibc won't tell us the address ranges occupied by those