[compiler-rt] r234010 - [sancov] Shrink pc array on Android back to 2**24.

Evgeniy Stepanov eugeni.stepanov at gmail.com
Fri Apr 3 05:59:40 PDT 2015


Author: eugenis
Date: Fri Apr  3 07:59:39 2015
New Revision: 234010

URL: http://llvm.org/viewvc/llvm-project?rev=234010&view=rev
Log:
[sancov] Shrink pc array on Android back to 2**24.

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

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=234010&r1=234009&r2=234010&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  3 07:59:39 2015
@@ -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;
 





More information about the llvm-commits mailing list