[compiler-rt] r249044 - [asan] Tune down SizeClassAllocator tests.

Evgeniy Stepanov via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 1 10:59:09 PDT 2015


Author: eugenis
Date: Thu Oct  1 12:59:08 2015
New Revision: 249044

URL: http://llvm.org/viewvc/llvm-project?rev=249044&view=rev
Log:
[asan] Tune down SizeClassAllocator tests.

This should make the Android/x86 bot (running on a Nexus Player) less
flaky.

Modified:
    compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_allocator_test.cc

Modified: compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_allocator_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_allocator_test.cc?rev=249044&r1=249043&r2=249044&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_allocator_test.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_allocator_test.cc Thu Oct  1 12:59:08 2015
@@ -96,7 +96,7 @@ void TestSizeClassAllocator() {
       uptr size = sizes[s];
       if (!a->CanAllocate(size, 1)) continue;
       // printf("s = %ld\n", size);
-      uptr n_iter = std::max((uptr)6, 8000000 / size);
+      uptr n_iter = std::max((uptr)6, 4000000 / size);
       // fprintf(stderr, "size: %ld iter: %ld\n", size, n_iter);
       for (uptr i = 0; i < n_iter; i++) {
         uptr class_id0 = Allocator::SizeClassMapT::ClassID(size);




More information about the llvm-commits mailing list