summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorFrancis Ricci <francisjricci@gmail.com>2017-05-12 14:10:53 +0000
committerFrancis Ricci <francisjricci@gmail.com>2017-05-12 14:10:53 +0000
commit508f038326752ed694ea9ae0daf75ddf540ddd3d (patch)
tree44201d80dedb923c555fde90631d7be5b67266b8 /cmake
parentbb2563f2a2344a34f49c7007560b268d4f1359ae (diff)
Add dyld to sanitizer procmaps on darwin
Summary: Sanitizer procmaps uses dyld apis to iterate over the list of images in the process. This is much more performan than manually recursing over all of the memory regions in the process, however, dyld does not report itself in the list of images. In order to prevent reporting leaks from dyld globals and to symbolize dyld functions in stack traces, this patch special-cases dyld and ensures that it is added to the list of modules. This is accomplished by recursing through the memory map of the process until a dyld Mach header is found. While this recursion is expensive, it is run before the full set of images has been loaded in the process, so only a few calls are required. The result is cached so that it never needs to be searched for when the full process memory map exists, as this would be incredibly slow, on the order of minutes for leak sanitizer with only 25 or so libraries loaded. Reviewers: alekseyshl, kubamracek Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D32968 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@302899 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
0 files changed, 0 insertions, 0 deletions