summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/sanitizer_common
diff options
context:
space:
mode:
authorTimur Iskhodzhanov <timurrrr@google.com>2015-04-24 21:24:51 +0000
committerTimur Iskhodzhanov <timurrrr@google.com>2015-04-24 21:24:51 +0000
commitaac51934cfc61420bf621e20af1e7bae29e013c5 (patch)
treed42dce9f1dc4dd6b76b14b12678e98542122b8ee /compiler-rt/lib/sanitizer_common
parent19717ea416b6ee135859c96e38f8d3ea809f3ab1 (diff)
downloadbcm5719-llvm-aac51934cfc61420bf621e20af1e7bae29e013c5.tar.gz
bcm5719-llvm-aac51934cfc61420bf621e20af1e7bae29e013c5.zip
[ASan/Win] Increase the size of the PC array for coverage on Windows
llvm-svn: 235779
Diffstat (limited to 'compiler-rt/lib/sanitizer_common')
-rw-r--r--compiler-rt/lib/sanitizer_common/sanitizer_coverage_libcdep.cc5
1 files 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 171c6cac2cc..210d5bc29cd 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;
OpenPOWER on IntegriCloud