OSDN Git Service

Tune rosalloc buffer sizes.
authorHiroshi Yamauchi <yamauchi@google.com>
Thu, 20 Nov 2014 22:16:06 +0000 (14:16 -0800)
committerHiroshi Yamauchi <yamauchi@google.com>
Thu, 20 Nov 2014 22:16:06 +0000 (14:16 -0800)
commit3f3c6c030db14e47d3022f00403f46240623f339
treee1ed5312837ff53ce57279e2b30fbccb85666cfd
parent8542ff31bfa778a06316511672dc113a3f19ae5b
Tune rosalloc buffer sizes.

We now use one-page buffers for size brackets 4-7, instead of two-page
buffers, and the first 8 size brackets for thread-local allocations,
instead of 11.

No slowdown observed with MemAllocTest, EvaluateAndApplyChanges, and
BinaryTrees.

(cherrypick commit c4cd95fa37b7138a0fa26d07c235aa409542aecd)

Bug: 18377775
Change-Id: I311f3adf9cab660d258833b17df7e6d905f73c72
runtime/gc/allocator/rosalloc.cc
runtime/gc/allocator/rosalloc.h