[PATCH] D33322: Use write instead of read permissions to check for global sections on mac

Francis Ricci via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 18 09:52:43 PDT 2017


fjricci created this revision.

The LINKEDIT section is very large and is read-only. Scanning this
section caused LSan on darwin to be very slow. When only writable sections
are scanned for global pointers, performance improved by a factor of about 25x.


https://reviews.llvm.org/D33322

Files:
  lib/lsan/lsan_common_mac.cc
  lib/sanitizer_common/sanitizer_common.cc
  lib/sanitizer_common/sanitizer_common.h
  lib/sanitizer_common/sanitizer_linux_libcdep.cc
  lib/sanitizer_common/sanitizer_procmaps_common.cc
  lib/sanitizer_common/sanitizer_procmaps_mac.cc
  lib/sanitizer_common/sanitizer_win.cc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33322.99449.patch
Type: text/x-patch
Size: 4765 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170518/992f544d/attachment.bin>


More information about the llvm-commits mailing list