[compiler-rt] r235779 - [ASan/Win] Increase the size of the PC array for coverage on Windows
Timur Iskhodzhanov
timurrrr at google.com
Fri Apr 24 14:24:51 PDT 2015
Author: timurrrr
Date: Fri Apr 24 16:24:51 2015
New Revision: 235779
URL: http://llvm.org/viewvc/llvm-project?rev=235779&view=rev
Log:
[ASan/Win] Increase the size of the PC array for coverage on Windows
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_coverage_libcdep.cc
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_coverage_libcdep.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_coverage_libcdep.cc?rev=235779&r1=235778&r2=235779&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_coverage_libcdep.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_coverage_libcdep.cc Fri Apr 24 16:24:51 2015
@@ -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;
More information about the llvm-commits
mailing list