diff options
| author | 2016-03-23 22:45:01 +0000 | |
|---|---|---|
| committer | 2016-03-23 22:45:01 +0000 | |
| commit | 760efa3d01257250972ea47a00c0edb01d608c3a (patch) | |
| tree | 3654eb3eb0efd32743c17b5e523e169fbb92a9b4 /runtime/gc/allocator/rosalloc.cc | |
| parent | f33c605e6986ac274ee3798a3c1944c8a16fbf3f (diff) | |
| parent | fc067bfbcd00c65917b0a2f0964d7b40bd847903 (diff) | |
Merge "Use smaller rosalloc run sizes."
Diffstat (limited to 'runtime/gc/allocator/rosalloc.cc')
| -rw-r--r-- | runtime/gc/allocator/rosalloc.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/gc/allocator/rosalloc.cc b/runtime/gc/allocator/rosalloc.cc index 2c487fe8df..2a55a43660 100644 --- a/runtime/gc/allocator/rosalloc.cc +++ b/runtime/gc/allocator/rosalloc.cc @@ -1653,14 +1653,14 @@ void RosAlloc::Initialize() { if (i < kNumThreadLocalSizeBrackets) { numOfPages[i] = 1; } else if (i < (kNumThreadLocalSizeBrackets + kNumRegularSizeBrackets) / 2) { - numOfPages[i] = 4; + numOfPages[i] = 1; } else if (i < kNumRegularSizeBrackets) { - numOfPages[i] = 8; + numOfPages[i] = 1; } else if (i == kNumOfSizeBrackets - 2) { - numOfPages[i] = 16; + numOfPages[i] = 2; } else { DCHECK_EQ(i, kNumOfSizeBrackets - 1); - numOfPages[i] = 32; + numOfPages[i] = 4; } if (kTraceRosAlloc) { LOG(INFO) << "numOfPages[" << i << "]=" << numOfPages[i]; |