diff options
author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2015-09-29 21:28:54 +0000 |
---|---|---|
committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2015-09-29 21:28:54 +0000 |
commit | 89fbf48c3f234712be522e62591a9cb137adb69d (patch) | |
tree | 6ba0e7091e3a079c7c7171af80d9d8e0f5f283e1 /lib/msan/msan.cc | |
parent | 380cd5916e0b30615c5a006b6097574725e62603 (diff) |
[msan] Early allocator initialization.
Map MSan heap space early (in __msan_init) so that user code can not
accidentally (i.e. w/o MAP_FIXED) create a conflicting mapping.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@248829 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/msan/msan.cc')
-rw-r--r-- | lib/msan/msan.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/msan/msan.cc b/lib/msan/msan.cc index 7b40051d3..12a141bf4 100644 --- a/lib/msan/msan.cc +++ b/lib/msan/msan.cc @@ -415,6 +415,8 @@ void __msan_init() { MsanTSDInit(MsanTSDDtor); + MsanAllocatorInit(); + MsanThread *main_thread = MsanThread::Create(0, 0); SetCurrentThread(main_thread); main_thread->ThreadStart(); |