OSDN Git Service

Fix dangling pointer bug when transitioning to background.
authorMathieu Chartier <mathieuc@google.com>
Fri, 25 Jul 2014 17:13:51 +0000 (10:13 -0700)
committerMathieu Chartier <mathieuc@google.com>
Fri, 25 Jul 2014 18:31:58 +0000 (11:31 -0700)
commit00b5915828f89daaefd9e8fb215658360f76762c
tree3c9f3509878323d3431567bea822ca2a1858cef3
parent9fbe946f49724ff7ae30da5d366a002d1e6addfa
Fix dangling pointer bug when transitioning to background.

Dangling pointer left behind from the old rosalloc / dlmalloc
spaces. We now avoid using this pointer by using main_space_
and non_moving_space_ as well as clear the pointer when we remove
the space.

Bug: 16567203

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