OSDN Git Service

Return bytes freed from RosAlloc.
authorMathieu Chartier <mathieuc@google.com>
Sat, 12 Apr 2014 00:53:48 +0000 (17:53 -0700)
committerMathieu Chartier <mathieuc@google.com>
Tue, 22 Apr 2014 17:57:22 +0000 (10:57 -0700)
commit8585bad7be19ee4901333f7d02d1d4d3f04877d4
treebe30d58fc4fd71a4fcbdffa0d19a4bf9aaaa4c50
parent82b1a81890970a8b07f9132aeae537a6c43df6b0
Return bytes freed from RosAlloc.

There was a problem with how RosAlloc space sweeping worked caused by
using the object size in the FreeList call, this won't work well with
class unloading since the object's class may be freed before the
object.

Bug: 13989231
Change-Id: I3df439c312310720fd34249334dec85030166fe9
runtime/gc/allocator/rosalloc.cc
runtime/gc/allocator/rosalloc.h
runtime/gc/space/rosalloc_space.cc