OSDN Git Service

Prevent crashes if boot images fail to load
authorMathieu Chartier <mathieuc@google.com>
Wed, 3 Feb 2016 01:24:39 +0000 (17:24 -0800)
committerMathieu Chartier <mathieuc@google.com>
Wed, 3 Feb 2016 01:27:12 +0000 (17:27 -0800)
commit1e5ff87e774fdbd46efb1d2f61b1b2ab80145a19
tree947536838da75fe5b1b18366265872fc9208abe0
parent2b40fa3291d9944e78683468ab03eda3f4aa7bb0
Prevent crashes if boot images fail to load

We now reset the requested_alloc_space_begin so that there are no gaps
between any boot images and the non moving space.

Also clear boot_image_spaces so that ClassLinker::InitFromBootImage is
not called.

Finally, delete image spaces so that the maps and oat files are
unmapped.

Bug: 26913820

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