[sanitizer] increase the minimal mmap size in allocator to 2^16; fix the asan Mac...
authorKostya Serebryany <kcc@google.com>
Wed, 23 Jan 2013 14:07:17 +0000 (14:07 +0000)
committerKostya Serebryany <kcc@google.com>
Wed, 23 Jan 2013 14:07:17 +0000 (14:07 +0000)
llvm-svn: 173261

compiler-rt/lib/asan/asan_mapping.h
compiler-rt/lib/sanitizer_common/sanitizer_allocator.h

index 06efabe..48b2454 100644 (file)
@@ -67,6 +67,7 @@ extern SANITIZER_INTERFACE_ATTRIBUTE uptr __asan_mapping_offset;
 
 namespace __asan {
 
+SANITIZER_INTERFACE_ATTRIBUTE
 extern uptr kHighMemEnd;  // Initialized in __asan_init.
 
 static inline bool AddrIsInLowMem(uptr a) {
index ad89c3c..23d3b46 100644 (file)
@@ -336,7 +336,7 @@ class SizeClassAllocator64 {
   // or with one element if its size is greater.
   static const uptr kPopulateSize = 1 << 14;
   // Call mmap for user memory with at least this size.
-  static const uptr kUserMapSize = 1 << 15;
+  static const uptr kUserMapSize = 1 << 16;
   // Call mmap for metadata memory with at least this size.
   static const uptr kMetaMapSize = 1 << 16;