[llvm-commits] [compiler-rt] r173261 - in /compiler-rt/trunk/lib: asan/asan_mapping.h sanitizer_common/sanitizer_allocator.h

Kostya Serebryany kcc at google.com
Wed Jan 23 06:07:17 PST 2013


Author: kcc
Date: Wed Jan 23 08:07:17 2013
New Revision: 173261

URL: http://llvm.org/viewvc/llvm-project?rev=173261&view=rev
Log:
[sanitizer] increase the minimal mmap size in allocator to 2^16; fix the asan Mac build 

Modified:
    compiler-rt/trunk/lib/asan/asan_mapping.h
    compiler-rt/trunk/lib/sanitizer_common/sanitizer_allocator.h

Modified: compiler-rt/trunk/lib/asan/asan_mapping.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_mapping.h?rev=173261&r1=173260&r2=173261&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_mapping.h (original)
+++ compiler-rt/trunk/lib/asan/asan_mapping.h Wed Jan 23 08:07:17 2013
@@ -67,6 +67,7 @@
 
 namespace __asan {
 
+SANITIZER_INTERFACE_ATTRIBUTE
 extern uptr kHighMemEnd;  // Initialized in __asan_init.
 
 static inline bool AddrIsInLowMem(uptr a) {

Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_allocator.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_allocator.h?rev=173261&r1=173260&r2=173261&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_allocator.h (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_allocator.h Wed Jan 23 08:07:17 2013
@@ -336,7 +336,7 @@
   // 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;
 





More information about the llvm-commits mailing list