diff options
author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2015-10-01 17:59:08 +0000 |
---|---|---|
committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2015-10-01 17:59:08 +0000 |
commit | 03b1893787e1dc728c84c44c9bac3b8d336cf589 (patch) | |
tree | 88ab8bb69feed63e8876fc5ea461c10f933d81bb | |
parent | 63b1b25dbc103507f9727a43b87a63bb21b65a90 (diff) |
[asan] Tune down SizeClassAllocator tests.
This should make the Android/x86 bot (running on a Nexus Player) less
flaky.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@249044 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/sanitizer_common/tests/sanitizer_allocator_test.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sanitizer_common/tests/sanitizer_allocator_test.cc b/lib/sanitizer_common/tests/sanitizer_allocator_test.cc index 2bce29bcc..7ba334568 100644 --- a/lib/sanitizer_common/tests/sanitizer_allocator_test.cc +++ b/lib/sanitizer_common/tests/sanitizer_allocator_test.cc @@ -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); |