OSDN Git Service

Change FreeMemory and TotalMemory behavior.
authorMathieu Chartier <mathieuc@google.com>
Thu, 7 Aug 2014 00:06:33 +0000 (17:06 -0700)
committerMathieu Chartier <mathieuc@google.com>
Tue, 12 Aug 2014 17:09:55 +0000 (10:09 -0700)
commitb225890e02bc8d5864217743eaef306d5387e0e9
tree2c58ae8245f85c44a8c858f76927f18548b44951
parent1c98286d8ceaf3715e06f50acd6f3b0aa5a06f2e
Change FreeMemory and TotalMemory behavior.

TotalMemory is now equal to the footprint limit (around when the
next GC will occur).
FreeMemory is now equal to TotalMemory() - bytes_allocated_.
Also added more memory dumping info to DumpGcPerformanceInfo.

Bug: 16520008
Bug: 15819878

(cherry picked from commit dd162fb5990cedf80a5093ecc0e77df82af5f754)

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