From 2bc2521503970a37ff34984cdaa9b0e1a2ab7ec5 Mon Sep 17 00:00:00 2001 From: Evgeniy Stepanov Date: Fri, 7 Aug 2015 21:17:46 +0000 Subject: [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 --- lib/asan/asan_mapping.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/asan/asan_mapping.h') 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) -- cgit v1.2.3