[ASan/Win] Increase the size of the PC array for coverage on Windows
authorTimur Iskhodzhanov <timurrrr@google.com>
Fri, 24 Apr 2015 21:24:51 +0000 (21:24 +0000)
committerTimur Iskhodzhanov <timurrrr@google.com>
Fri, 24 Apr 2015 21:24:51 +0000 (21:24 +0000)
llvm-svn: 235779

compiler-rt/lib/sanitizer_common/sanitizer_coverage_libcdep.cc

index 171c6ca..210d5bc 100644 (file)
@@ -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;