diff options
| -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. |