OSDN Git Service

Use HeapGrowthMultiplier for native allocaitons
authorMathieu Chartier <mathieuc@google.com>
Wed, 24 May 2017 19:01:04 +0000 (12:01 -0700)
committerMathieu Chartier <mathieuc@google.com>
Wed, 24 May 2017 19:07:38 +0000 (12:07 -0700)
commit30baf4a6d7c568e423c9d3e3fa7a7a25ab730b62
treed507787c3cd2b9f9bfe8e7da9bbff200a70f95e0
parent5dc8a08723afa5373abf6ccfc7c0fd57eb7a2936
Use HeapGrowthMultiplier for native allocaitons

Reduces the amount of native allocation GCs for foreground apps.
For camera: The number of native allocations GCs goes from 4 to 2,
improving launch time by 25ms (average of 25 runs on pixel).

The multiplier is 1 for low ram devices, so this should not increase
RAM on devices where it matters.

Bug: 36727951
Test: test-art-host

Change-Id: I0b9e090d9d85bcb2fcd24f221988e99b91ec5977
runtime/gc/heap.cc