[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.

llvm-svn: 244359
This commit is contained in:
Evgeniy Stepanov 2015-08-07 21:17:46 +00:00
parent 8c484af217
commit 290d721070
1 changed files with 1 additions and 1 deletions

View File

@ -178,7 +178,7 @@ static const u64 kWindowsShadowOffset32 = 3ULL << 28; // 0x30000000
// 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)