diff options
| author | 2014-11-20 22:35:20 +0000 | |
|---|---|---|
| committer | 2014-11-20 22:35:20 +0000 | |
| commit | be0bb06d1bb37344c96d2350f6ab56c9f5ecabe4 (patch) | |
| tree | 88969c437b34194d317f9fcc812b3b41fe99c56f | |
| parent | 17f78734175cb8ea09441d0c59b9a07502abc31e (diff) | |
| parent | 3f3c6c030db14e47d3022f00403f46240623f339 (diff) | |
Merge "Tune rosalloc buffer sizes."
| -rw-r--r-- | runtime/gc/allocator/rosalloc.cc | 2 | ||||
| -rw-r--r-- | runtime/gc/allocator/rosalloc.h | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/runtime/gc/allocator/rosalloc.cc b/runtime/gc/allocator/rosalloc.cc index 991b956f80..7c2474f3f9 100644 --- a/runtime/gc/allocator/rosalloc.cc +++ b/runtime/gc/allocator/rosalloc.cc @@ -1772,7 +1772,7 @@ void RosAlloc::Initialize() { if (i < 4) { numOfPages[i] = 1; } else if (i < 8) { - numOfPages[i] = 2; + numOfPages[i] = 1; } else if (i < 16) { numOfPages[i] = 4; } else if (i < 32) { diff --git a/runtime/gc/allocator/rosalloc.h b/runtime/gc/allocator/rosalloc.h index 431686a977..3269e102bc 100644 --- a/runtime/gc/allocator/rosalloc.h +++ b/runtime/gc/allocator/rosalloc.h @@ -414,8 +414,7 @@ class RosAlloc { // We use thread-local runs for the size Brackets whose indexes // are less than this index. We use shared (current) runs for the rest. - - static const size_t kNumThreadLocalSizeBrackets = 11; + static const size_t kNumThreadLocalSizeBrackets = 8; private: // The base address of the memory region that's managed by this allocator. |