summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/ModuleMap.cpp
diff options
context:
space:
mode:
authorAlexander Potapenko <glider@google.com>2012-01-13 16:13:58 +0000
committerAlexander Potapenko <glider@google.com>2012-01-13 16:13:58 +0000
commitbd53f597de987fabd8f504baaef1a320d2246303 (patch)
treee62a16860c7c364b8c3ab799c43d52d253d2e5ed /clang/lib/Lex/ModuleMap.cpp
parent9301db4baaf4fb95c292cdb42c7449e5d6ed1eba (diff)
downloadbcm5719-llvm-bd53f597de987fabd8f504baaef1a320d2246303.tar.gz
bcm5719-llvm-bd53f597de987fabd8f504baaef1a320d2246303.zip
This patch adds two methods, __asan_allocate_island and __asan_deallocate_island
and switches our interceptors to using them instead of the default vm_allocate-based approach used by mach_override_ptr. To simplify the code, a fixed memory mapping is used for the allocation pool -- note that we can't mmap an arbitrary chunk of memory, because the shadow memory hasn't been mapped yet (for the reasons discussed in http://code.google.com/p/address-sanitizer/issues/detail?id=24, we cannot map the shadow earlier) The patch drops the program startup time from several second to half a second, which speeds up the execution of ASan tests noticeably. Because of the virtual memory size occupied by the programs it's hard to speed up the shutdown time, which would've also helped the tests. llvm-svn: 148116
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud