OSDN Git Service

Change native allocations to use growth limit.
authorMathieu Chartier <mathieuc@google.com>
Tue, 2 Sep 2014 23:21:01 +0000 (16:21 -0700)
committerMathieu Chartier <mathieuc@google.com>
Wed, 3 Sep 2014 00:01:23 +0000 (17:01 -0700)
commitd9819ecc0bc21a2bb356a4de9b013e36fe618627
tree0a548b58803aae262bdb7b1ba44a3d025d87104f
parent23590fd094df6a4a2360b722763249adf1689f15
Change native allocations to use growth limit.

Previously native allocation tracking used a GC footprint limit
which would cause GC in the allocating thread. This prevented
excessive growth of the heap but could cause jank due to GC in
the allocating thread. The new behavior is using the growth_limit
instead of the native footprint limit.

Bug: 17006948

Change-Id: I40f30af09bb25596a9f57fa50e2a155fb947b5fe
runtime/gc/heap.cc
runtime/gc/heap.h