OSDN Git Service

ART: Check for more low-space situations in zygote
authorAndreas Gampe <agampe@google.com>
Wed, 10 Aug 2016 03:19:18 +0000 (20:19 -0700)
committerAndreas Gampe <agampe@google.com>
Wed, 10 Aug 2016 17:43:04 +0000 (10:43 -0700)
commitf242f66cf7137ef681e44a494758976e11579260
tree27fae7a7dc3da95dfe85c23eda5e6abbaa6d40db
parent6b9c54c8ae70d5a75e26bef20a26316ff7c9ab18
ART: Check for more low-space situations in zygote

Even if a boot image exists and can be loaded, the rest of the
platform may not be able to boot. We previously only checked
after full image generation and missed this case.

Also prune the cache if there wasn't even space to put the boot
marker.

Bug: 30765660
Change-Id: Icd43746e681c62ce2e4e8745fb17bda65ca60372
runtime/gc/space/image_space.cc
runtime/gc/space/image_space_fs.h