[compiler-rt] r290689 - Decrease kLargeMalloc block size in ASAN unit tests.

Evgeniy Stepanov via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 28 13:57:51 PST 2016


Author: eugenis
Date: Wed Dec 28 15:57:51 2016
New Revision: 290689

URL: http://llvm.org/viewvc/llvm-project?rev=290689&view=rev
Log:
Decrease kLargeMalloc block size in ASAN unit tests.

Summary:
Make kLargeMalloc big enough to be handled by secondary allocator
and small enough to fit into quarantine for all configurations.
It become too big to fit into quarantine on Android after D27873.

Reviewers: eugenis

Patch by Alex Shlyapnikov.

Subscribers: danalbert, llvm-commits, kubabrecka

Differential Revision: https://reviews.llvm.org/D28142

Modified:
    compiler-rt/trunk/lib/asan/tests/asan_test_utils.h

Modified: compiler-rt/trunk/lib/asan/tests/asan_test_utils.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/tests/asan_test_utils.h?rev=290689&r1=290688&r2=290689&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/tests/asan_test_utils.h (original)
+++ compiler-rt/trunk/lib/asan/tests/asan_test_utils.h Wed Dec 28 15:57:51 2016
@@ -62,7 +62,9 @@ typedef uint64_t  U8;
 
 static const int kPageSize = 4096;
 
-const size_t kLargeMalloc = 1 << 24;
+// Big enough to be handled by secondary allocator and small enough to fit into
+// quarantine for all configurations.
+const size_t kLargeMalloc = 1 << 22;
 
 extern void free_aaa(void *p);
 extern void *malloc_aaa(size_t size);




More information about the llvm-commits mailing list