[scudo][standalone] Add bytemap classes
authorKostya Kortchinsky <kostyak@google.com>
Tue, 5 Mar 2019 17:36:11 +0000 (17:36 +0000)
committerKostya Kortchinsky <kostyak@google.com>
Tue, 5 Mar 2019 17:36:11 +0000 (17:36 +0000)
commit7421f7bd66ca24efe4440e1eabf75a5e21dcf439
tree707c1b902f3ceb6f280a4620f0c7f067e37215af
parent70b082e85cb9cc78448acb0007f81fbeca61e6d8
[scudo][standalone] Add bytemap classes

Summary:
The bytemap classes will be used by the primary32 allocator to associate
classes with memory regions. It's similar to the sanitizer_common one
except for the fact that the base (level1) maps are mapped instead of
being static to reduce the memory footprint of an uninitialized allocator.

Reviewers: vitalybuka, eugenis, morehouse, flowerhack, dmmoore415, mcgrathr

Reviewed By: vitalybuka, morehouse

Subscribers: mgorny, delcypher, jfb, #sanitizers, llvm-commits

Tags: #llvm, #sanitizers

Differential Revision: https://reviews.llvm.org/D58723

llvm-svn: 355416
compiler-rt/lib/scudo/standalone/CMakeLists.txt
compiler-rt/lib/scudo/standalone/bytemap.h [new file with mode: 0644]
compiler-rt/lib/scudo/standalone/tests/CMakeLists.txt
compiler-rt/lib/scudo/standalone/tests/bytemap_test.cc [new file with mode: 0644]