From 477e88ee9e13d6902e359f9af526ac2eee6407a0 Mon Sep 17 00:00:00 2001 From: Evgeniy Stepanov Date: Tue, 19 Feb 2013 13:38:27 +0000 Subject: [PATCH] [sanitizer] Slightly lower allocator test memory consumption. This way it fits on a random 1G device. llvm-svn: 175513 --- compiler-rt/lib/sanitizer_common/tests/sanitizer_allocator_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 b7f87e7..273b002 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); -- 2.7.4