From aac51934cfc61420bf621e20af1e7bae29e013c5 Mon Sep 17 00:00:00 2001 From: Timur Iskhodzhanov Date: Fri, 24 Apr 2015 21:24:51 +0000 Subject: [PATCH] [ASan/Win] Increase the size of the PC array for coverage on Windows llvm-svn: 235779 --- compiler-rt/lib/sanitizer_common/sanitizer_coverage_libcdep.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_coverage_libcdep.cc b/compiler-rt/lib/sanitizer_common/sanitizer_coverage_libcdep.cc index 171c6ca..210d5bc 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_coverage_libcdep.cc +++ b/compiler-rt/lib/sanitizer_common/sanitizer_coverage_libcdep.cc @@ -109,8 +109,9 @@ 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 << (SANITIZER_ANDROID ? 24 : 26), 1 << 27); + static const uptr kPcArrayMaxSize = FIRST_32_SECOND_64( + 1 << (SANITIZER_ANDROID ? 24 : (SANITIZER_WINDOWS ? 27 : 26)), + 1 << 27); // The amount file mapping for the pc array is grown by. static const uptr kPcArrayMmapSize = 64 * 1024; -- 2.7.4