OSDN Git Service

ART: Make elf loading not abort
authorAndreas Gampe <agampe@google.com>
Sat, 13 Sep 2014 01:38:24 +0000 (18:38 -0700)
committerAndreas Gampe <agampe@google.com>
Sat, 13 Sep 2014 06:37:11 +0000 (23:37 -0700)
commitafa6b8e93a0dc0de33c9d404945c7c5621e20b1a
tree511265d2ea160561e73fab5690645edb6460811e
parenteee3e7025213cf56f894d770d039caba29e20750
ART: Make elf loading not abort

Changes elf_file code to use less CHECKs and instead return error
values (usually nullptr). This avoids aborts.

In oat_file, when loading an oat file fails, try to unlink at. If
this succeeds, on the next run we may compile again.

Bug: 17491333
Change-Id: I50fdd2edacd86f25d4dacf2180ce2a6105eaf4af
compiler/elf_fixup.cc
compiler/elf_patcher.cc
compiler/elf_stripper.cc
dex2oat/dex2oat.cc
patchoat/patchoat.cc
runtime/elf_file.cc
runtime/elf_file.h
runtime/oat_file.cc