[llvm-commits] [compiler-rt] r150802 - in /compiler-rt/trunk/lib/asan: asan_allocator.cc asan_rtl.cc tests/asan_test.cc

Alexey Samsonov samsonov at google.com
Fri Feb 17 00:31:10 PST 2012


Author: samsonov
Date: Fri Feb 17 02:31:10 2012
New Revision: 150802

URL: http://llvm.org/viewvc/llvm-project?rev=150802&view=rev
Log:
AddressSanitizer: fix lint

Modified:
    compiler-rt/trunk/lib/asan/asan_allocator.cc
    compiler-rt/trunk/lib/asan/asan_rtl.cc
    compiler-rt/trunk/lib/asan/tests/asan_test.cc

Modified: compiler-rt/trunk/lib/asan/asan_allocator.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_allocator.cc?rev=150802&r1=150801&r2=150802&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_allocator.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_allocator.cc Fri Feb 17 02:31:10 2012
@@ -46,12 +46,12 @@
 static const uint64_t kMaxAvailableRam = 128ULL << 30;  // 128G
 static const size_t kMaxThreadLocalQuarantine = 1 << 20;  // 1M
 
-#if ASAN_LOW_MEMORY==1
+#if ASAN_LOW_MEMORY == 1
 static const size_t kMinMmapSize  = 4UL << 17;  // 128K
-  static const size_t kMaxSizeForThreadLocalFreeList = 1 << 15; // 32K
+  static const size_t kMaxSizeForThreadLocalFreeList = 1 << 15;  // 32K
 #else
 static const size_t kMinMmapSize  = 4UL << 20;  // 4M
-  static const size_t kMaxSizeForThreadLocalFreeList = 1 << 17; // 128K
+  static const size_t kMaxSizeForThreadLocalFreeList = 1 << 17;  // 128K
 #endif
 
 // Size classes less than kMallocSizeClassStep are powers of two.

Modified: compiler-rt/trunk/lib/asan/asan_rtl.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_rtl.cc?rev=150802&r1=150801&r2=150802&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_rtl.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_rtl.cc Fri Feb 17 02:31:10 2012
@@ -421,11 +421,11 @@
 
 #if ASAN_LOW_MEMORY == 1
   FLAG_quarantine_size =
-    IntFlagValue(options, "quarantine_size=", 1UL << 24); // 16M
+    IntFlagValue(options, "quarantine_size=", 1UL << 24);  // 16M
   FLAG_redzone = IntFlagValue(options, "redzone=", 64);
 #else
   FLAG_quarantine_size =
-    IntFlagValue(options, "quarantine_size=", 1UL << 28); // 256M
+    IntFlagValue(options, "quarantine_size=", 1UL << 28);  // 256M
   FLAG_redzone = IntFlagValue(options, "redzone=", 128);
 #endif
   CHECK(FLAG_redzone >= 32);

Modified: compiler-rt/trunk/lib/asan/tests/asan_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/tests/asan_test.cc?rev=150802&r1=150801&r2=150802&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/tests/asan_test.cc (original)
+++ compiler-rt/trunk/lib/asan/tests/asan_test.cc Fri Feb 17 02:31:10 2012
@@ -453,7 +453,7 @@
 }
 
 TEST(AddressSanitizer, MallocStressTest) {
-#if ASAN_LOW_MEMORY==1
+#if ASAN_LOW_MEMORY == 1
   MallocStress(20000);
 #else
   MallocStress(200000);
@@ -491,7 +491,7 @@
   const int kNumThreads = 4;
   pthread_t t[kNumThreads];
   for (int i = 0; i < kNumThreads; i++) {
-#if ASAN_LOW_MEMORY==1
+#if ASAN_LOW_MEMORY == 1
     pthread_create(&t[i], 0, (void* (*)(void *x))MallocStress, (void*)10000);
 #else
     pthread_create(&t[i], 0, (void* (*)(void *x))MallocStress, (void*)100000);





More information about the llvm-commits mailing list