OSDN Git Service

ART: Refactor ImageSpace loading
authorAndreas Gampe <agampe@google.com>
Sat, 13 Aug 2016 04:53:32 +0000 (21:53 -0700)
committerAndreas Gampe <agampe@google.com>
Mon, 15 Aug 2016 17:35:31 +0000 (10:35 -0700)
commita463b6a920a2a0bf14f9cca20a561b412b9349d1
tree8bffe70a26799c7a3d9ad9941a8062e30212190e
parent554b6fb8759d186eba1046c220c9cff9a8610525
ART: Refactor ImageSpace loading

Make the code more straightforward so it is easier to reason
about and extend.

Also change return types to unique pointers so it's clear that
it is the caller's responsibility to free those when necessary.

Bug: 30832951
Test: m test-art-host
Test: device booting
Change-Id: I3216eb702e45357a48af5158dacbe40e79bd1ae9
runtime/gc/heap.cc
runtime/gc/space/image_space.cc
runtime/gc/space/image_space.h
runtime/oat_file_assistant.cc
runtime/oat_file_assistant.h
runtime/oat_file_manager.cc