commit | ed0dcade7b6ceda3c2406383f0e86a376404038a | [log] [tgz] |
---|---|---|
author | Jiakai Zhang <jiakaiz@google.com> | Fri Jan 21 15:52:32 2022 +0000 |
committer | Treehugger Robot <treehugger-gerrit@google.com> | Mon Jan 24 15:07:10 2022 +0000 |
tree | d043d3a23904cd1f2eb6e5c2d8ad43cb2d4ec95b | |
parent | c29cd1fb55b050510bdf5f239c37b479e3b39655 [diff] |
Fail dex2oat when generating app image without boot image. When the boot image is unavailable, an app image or a boot image extension cannot be generated. Before this change, dex2oat crashes at `CHECK_NE(image_begin, 0U)` in `ImageWriter`. After this change, dex2oat returns early with a user friendly error message. Bug: 211973309 Bug: 215665835 Test: atest art_standalone_dex2oat_tests Change-Id: Ic6ca2cdade08b8f7c7ae4d06fc52aedafd71beab