OSDN Git Service

Prune image cache if the boot marker is still in place.
authorNarayan Kamath <narayan@google.com>
Fri, 7 Nov 2014 17:46:28 +0000 (17:46 +0000)
committerNarayan Kamath <narayan@google.com>
Wed, 19 Nov 2014 17:22:56 +0000 (17:22 +0000)
commit28bc98705912efc27099ffc3a5415f6f941d2ab8
tree22cb16b4d96681a70ee25295f8e86236a132025a
parent6a0ac5ccf160e158942d49168d819fb76f887fa3
Prune image cache if the boot marker is still in place.

We place a marker in each isa cache dir and have the framework
delete it for us.

This seems like a convenient place to do it given all the other
dalvik-cache related code that hooks in here, and also because
this is the first point where we try to access the cache.

TODO: Add a timeout to the (higher level) zygote code to correctly
kill the surviving zygote if one of them never comes up.

bug: 18280671

(cherry picked from commit c38276177aeeda4326a54f1121790c154df04300)
(partial cherry-pick of 9433ec60b325b708b9fa87e699ab4a6565741494)

Change-Id: I5dbea21b4bf9ca4106a13225946d3f35f8060a43
runtime/gc/space/image_space.cc