diff options
author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2013-02-19 13:38:27 +0000 |
---|---|---|
committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2013-02-19 13:38:27 +0000 |
commit | 477e88ee9e13d6902e359f9af526ac2eee6407a0 (patch) | |
tree | 0ca000fcaa9b9caeea7b4351767972f32a96b8ea | |
parent | 0b07c63e0719ac6d172367ebac1aa8ed83263f6f (diff) | |
download | bcm5719-llvm-477e88ee9e13d6902e359f9af526ac2eee6407a0.tar.gz bcm5719-llvm-477e88ee9e13d6902e359f9af526ac2eee6407a0.zip |
[sanitizer] Slightly lower allocator test memory consumption.
This way it fits on a random 1G device.
llvm-svn: 175513
-rw-r--r-- | compiler-rt/lib/sanitizer_common/tests/sanitizer_allocator_test.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_allocator_test.cc b/compiler-rt/lib/sanitizer_common/tests/sanitizer_allocator_test.cc index b7f87e77871..273b00291db 100644 --- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_allocator_test.cc +++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_allocator_test.cc @@ -78,7 +78,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, 10000000 / size); + uptr n_iter = std::max((uptr)6, 8000000 / 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); |