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 | 290d7210700d814e5fd6747150462f2b710b69ec (patch) | |
| tree | 0d9d3236884eddb45ebced325a98f26ff5d4c5b8 /compiler-rt/lib/asan/asan_mapping.h | |
| parent | 8c484af21771cd54aa53db32bfec546d8148a169 (diff) | |
| download | bcm5719-llvm-290d7210700d814e5fd6747150462f2b710b69ec.tar.gz bcm5719-llvm-290d7210700d814e5fd6747150462f2b710b69ec.zip | |
[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
Diffstat (limited to 'compiler-rt/lib/asan/asan_mapping.h')
| -rw-r--r-- | compiler-rt/lib/asan/asan_mapping.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/asan/asan_mapping.h b/compiler-rt/lib/asan/asan_mapping.h index a713eb58092..8b4857e6da3 100644 --- a/compiler-rt/lib/asan/asan_mapping.h +++ b/compiler-rt/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) |

