summaryrefslogtreecommitdiff
path: root/src/tests/frag_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/frag_unittest.cc')
-rw-r--r--src/tests/frag_unittest.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/tests/frag_unittest.cc b/src/tests/frag_unittest.cc
index 08494b4..160c41c 100644
--- a/src/tests/frag_unittest.cc
+++ b/src/tests/frag_unittest.cc
@@ -44,13 +44,16 @@
#endif
#include <vector>
#include "base/logging.h"
+#include "common.h"
#include <google/malloc_extension.h>
using std::vector;
int main(int argc, char** argv) {
- static const int kAllocSize = 36<<10; // Bigger than tcmalloc page size
- static const int kTotalAlloc = 400 << 20; // Allocate 400MB in total
+ // Make kAllocSize larger than tcmalloc page size.
+ static const int kAllocSize = 9 << kPageShift;
+ // Allocate 400MB in total.
+ static const int kTotalAlloc = 400 << 20;
static const int kAllocIterations = kTotalAlloc / kAllocSize;
// Allocate lots of objects