[PATCH] D28142: Decrease kLargeMalloc block size in ASAN unit tests.

Aleksey Shlyapnikov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 28 14:05:19 PST 2016


alekseyshl created this revision.
alekseyshl added a reviewer: eugenis.
alekseyshl added a subscriber: llvm-commits.
Herald added subscribers: kubabrecka, danalbert.

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 https://reviews.llvm.org/D27873.


https://reviews.llvm.org/D28142

Files:
  lib/asan/tests/asan_test_utils.h


Index: lib/asan/tests/asan_test_utils.h
===================================================================
--- lib/asan/tests/asan_test_utils.h
+++ lib/asan/tests/asan_test_utils.h
@@ -62,7 +62,9 @@
 
 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);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28142.82617.patch
Type: text/x-patch
Size: 509 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161228/c070f2cc/attachment.bin>


More information about the llvm-commits mailing list