summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2012-02-17 08:31:10 +0000
committerAlexey Samsonov <samsonov@google.com>2012-02-17 08:31:10 +0000
commit8e7bfceb9896e9a241171ab96242ba5c7d5bbb33 (patch)
tree6e6e836b42f7aa20ee2f4b604699a30a5ec770aa
parentcc4d0146b4f5edf4cebf06697f52959409136591 (diff)
downloadbcm5719-llvm-8e7bfceb9896e9a241171ab96242ba5c7d5bbb33.tar.gz
bcm5719-llvm-8e7bfceb9896e9a241171ab96242ba5c7d5bbb33.zip
AddressSanitizer: fix lint
llvm-svn: 150802
-rw-r--r--compiler-rt/lib/asan/asan_allocator.cc6
-rw-r--r--compiler-rt/lib/asan/asan_rtl.cc4
-rw-r--r--compiler-rt/lib/asan/tests/asan_test.cc4
3 files changed, 7 insertions, 7 deletions
diff --git a/compiler-rt/lib/asan/asan_allocator.cc b/compiler-rt/lib/asan/asan_allocator.cc
index 3573f20cacc..28a3ef355fe 100644
--- a/compiler-rt/lib/asan/asan_allocator.cc
+++ b/compiler-rt/lib/asan/asan_allocator.cc
@@ -46,12 +46,12 @@ static const size_t kMinAllocSize = REDZONE * 2;
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.
diff --git a/compiler-rt/lib/asan/asan_rtl.cc b/compiler-rt/lib/asan/asan_rtl.cc
index f0e603fa951..7acc4a7fb80 100644
--- a/compiler-rt/lib/asan/asan_rtl.cc
+++ b/compiler-rt/lib/asan/asan_rtl.cc
@@ -421,11 +421,11 @@ void __asan_init() {
#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);
diff --git a/compiler-rt/lib/asan/tests/asan_test.cc b/compiler-rt/lib/asan/tests/asan_test.cc
index c59c04566ac..733b3dbc8f1 100644
--- a/compiler-rt/lib/asan/tests/asan_test.cc
+++ b/compiler-rt/lib/asan/tests/asan_test.cc
@@ -453,7 +453,7 @@ static void MallocStress(size_t n) {
}
TEST(AddressSanitizer, MallocStressTest) {
-#if ASAN_LOW_MEMORY==1
+#if ASAN_LOW_MEMORY == 1
MallocStress(20000);
#else
MallocStress(200000);
@@ -491,7 +491,7 @@ TEST(AddressSanitizer, ThreadedMallocStressTest) {
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);
OpenPOWER on IntegriCloud