OSDN Git Service

Tune rosalloc buffer sizes.
authorHiroshi Yamauchi <yamauchi@google.com>
Thu, 20 Nov 2014 18:08:31 +0000 (10:08 -0800)
committerHiroshi Yamauchi <yamauchi@google.com>
Thu, 20 Nov 2014 21:21:35 +0000 (13:21 -0800)
commitc4cd95fa37b7138a0fa26d07c235aa409542aecd
treec311970bb34808f8afdf6bdd7f056c0ae4dda042
parent4fc104f61fdf48eea91739075ea2481266f3c9b6
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.

Bug: 18377775

Change-Id: Ie1bb46bcf5d3729197e48e26a27da4cc39dd807e
runtime/gc/allocator/rosalloc.cc
runtime/gc/allocator/rosalloc.h