diff options
author | Jeff Hao <jeffhao@google.com> | 2015-12-04 14:06:18 -0800 |
---|---|---|
committer | Andreas Gampe <agampe@google.com> | 2015-12-23 21:14:23 -0800 |
commit | dcdc85bbd569f0ee66c331b4219c19304a616214 (patch) | |
tree | b5ab789248e279318f6c1e3f6c511703d7294476 /test/117-nopatchoat | |
parent | 48944c760b196188b968b7af81439466cf987a75 (diff) | |
download | art-dcdc85bbd569f0ee66c331b4219c19304a616214.tar.gz art-dcdc85bbd569f0ee66c331b4219c19304a616214.tar.bz2 art-dcdc85bbd569f0ee66c331b4219c19304a616214.zip |
Dex2oat support for multiple oat file and image file outputs.
Multiple changes to dex2oat and the runtime to support a --multi-image
option. This generates a separate oat file and image file output for
each dex file input.
Change-Id: Ie1d6f0b8afa8aed5790065b8c2eb177990c60129
Diffstat (limited to 'test/117-nopatchoat')
-rw-r--r-- | test/117-nopatchoat/nopatchoat.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/117-nopatchoat/nopatchoat.cc b/test/117-nopatchoat/nopatchoat.cc index b6b1c43589..1337442e5b 100644 --- a/test/117-nopatchoat/nopatchoat.cc +++ b/test/117-nopatchoat/nopatchoat.cc @@ -35,8 +35,9 @@ class NoPatchoatTest { } static bool isRelocationDeltaZero() { - gc::space::ImageSpace* space = Runtime::Current()->GetHeap()->GetBootImageSpace(); - return space != nullptr && space->GetImageHeader().GetPatchDelta() == 0; + std::vector<gc::space::ImageSpace*> spaces = + Runtime::Current()->GetHeap()->GetBootImageSpaces(); + return !spaces.empty() && spaces[0]->GetImageHeader().GetPatchDelta() == 0; } static bool hasExecutableOat(jclass cls) { |