[PATCH] D32190: Make sure to scan mmap'd memory regions for root pointers on OS X

Francis Ricci via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 18 14:22:11 PDT 2017


fjricci created this revision.

In the general case, we only need to check for root regions inside
the memory map returned by procmaps. However, on Darwin,
we also need to check inside mmap'd regions, which aren't returned
in the list of modules we get from procmaps.

This patch refactors memory region scanning on darwin to reduce
code duplication with the kernel alloc once page scan.


https://reviews.llvm.org/D32190

Files:
  lib/lsan/lsan_common.cc
  lib/lsan/lsan_common.h
  lib/lsan/lsan_common_linux.cc
  lib/lsan/lsan_common_mac.cc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32190.95630.patch
Type: text/x-patch
Size: 5911 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170418/aced2796/attachment.bin>


More information about the llvm-commits mailing list