From 89fbf48c3f234712be522e62591a9cb137adb69d Mon Sep 17 00:00:00 2001 From: Evgeniy Stepanov Date: Tue, 29 Sep 2015 21:28:54 +0000 Subject: [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 --- lib/msan/msan.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/msan/msan.cc') 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(); -- cgit v1.2.3