Add caching to the MemoryMappingLayout class on Linux. This is necessary for the...
authorAlexander Potapenko <glider@google.com>
Sat, 1 Dec 2012 02:39:45 +0000 (02:39 +0000)
committerAlexander Potapenko <glider@google.com>
Sat, 1 Dec 2012 02:39:45 +0000 (02:39 +0000)
commit7811425843ab7fb2381a669064d67e45471365bf
treeb7b46c2507a6ee50a8bee739b3621a54301a31ce
parent2be35f5fbb37ccea8d209cf39c8b04d09cb9c1c0
Add caching to the MemoryMappingLayout class on Linux. This is necessary for the cases when a sandbox prevents ASan from reading the mappings
from /proc/self/maps.
The mappings are currently being cached on each access to /proc/self/maps. In the future we'll need to add an API that allows the client to notify ASan about the sandbox.

llvm-svn: 169076
compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
compiler-rt/lib/sanitizer_common/sanitizer_mac.cc
compiler-rt/lib/sanitizer_common/sanitizer_procmaps.h