[compiler-rt] r244359 - [asan] Reduce shadow gap start on 32-bit Android.

Evgeniy Stepanov via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 7 14:17:46 PDT 2015


Author: eugenis
Date: Fri Aug  7 16:17:46 2015
New Revision: 244359

URL: http://llvm.org/viewvc/llvm-project?rev=244359&view=rev
Log:
[asan] Reduce shadow gap start on 32-bit Android.

This fixes an internal assertion failure when running out of
the address space in the large allocator.

Modified:
    compiler-rt/trunk/lib/asan/asan_mapping.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=244359&r1=244358&r2=244359&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_mapping.h (original)
+++ compiler-rt/trunk/lib/asan/asan_mapping.h Fri Aug  7 16:17:46 2015
@@ -178,7 +178,7 @@ static const u64 kWindowsShadowOffset32
 
 // With the zero shadow base we can not actually map pages starting from 0.
 // This constant is somewhat arbitrary.
-#define kZeroBaseShadowStart (1 << 18)
+#define kZeroBaseShadowStart 4096
 
 #define kShadowGapBeg   (kLowShadowEnd ? kLowShadowEnd + 1 \
                                        : kZeroBaseShadowStart)




More information about the llvm-commits mailing list