diff options
author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2015-08-07 21:17:46 +0000 |
---|---|---|
committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2015-08-07 21:17:46 +0000 |
commit | 2bc2521503970a37ff34984cdaa9b0e1a2ab7ec5 (patch) | |
tree | 26b77626ced41ff715a34de2ac02f002eaef03e8 /lib/asan/asan_mapping.h | |
parent | 094eef08aff12ad397c5b58d7c4abe30080ad867 (diff) |
[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.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@244359 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/asan_mapping.h')
-rw-r--r-- | lib/asan/asan_mapping.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/asan/asan_mapping.h b/lib/asan/asan_mapping.h index a713eb580..8b4857e6d 100644 --- a/lib/asan/asan_mapping.h +++ b/lib/asan/asan_mapping.h @@ -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) |