[sancov] Shrink pc array on Android back to 2**24.

Address space is a lot more constrained on 32-bit Android compared to Linux.

llvm-svn: 234010
This commit is contained in:
Evgeniy Stepanov 2015-04-03 12:59:39 +00:00
parent 95ed78b85a
commit e2a8241f84
1 changed files with 2 additions and 1 deletions

View File

@ -109,7 +109,8 @@ class CoverageData {
// Maximal size pc array may ever grow.
// We MmapNoReserve this space to ensure that the array is contiguous.
static const uptr kPcArrayMaxSize = FIRST_32_SECOND_64(1 << 26, 1 << 27);
static const uptr kPcArrayMaxSize =
FIRST_32_SECOND_64(1 << (SANITIZER_ANDROID ? 24 : 26), 1 << 27);
// The amount file mapping for the pc array is grown by.
static const uptr kPcArrayMmapSize = 64 * 1024;