summaryrefslogtreecommitdiffstats
path: root/runtime/oat_file_assistant.h
Commit message (Collapse)AuthorAgeFilesLines
* Do not try to compile resource-only dex files.Richard Uhler2015-06-241-3/+12
| | | | | | | | | | | | | This changes behavior in the case where we are asked to load a dex file that does not exist or has no classes.dex entry. Previously we would run dex2oat, which would log an error message and fail. Now we skip running dex2oat, we report the DexOptStatus as kNoDexOptNeeded, and we do not try to fall back to the missing original dex files. Bug: 21722039 Change-Id: I90b1f4165138daac57bb9d7a354319005652c593
* Fix bug in removal of *.flock files.Richard Uhler2015-05-121-1/+0
| | | | | | | Bug: 20816098 (cherry picked from commit 581f4e9065b9b7f788315d3ea1a45e51ae168589) Change-Id: Ib7bd394a9dd0299f09d386ae010972b461217550
* Fix typo in comments.Richard Uhler2015-05-071-2/+2
| | | | Change-Id: I6569c0fdc878f797b37509432b59b0d5c9bc5533
* Replace NULL with nullptrMathieu Chartier2015-04-221-14/+14
| | | | | | | Also fixed some lines that were too long, and a few other minor details. Change-Id: I6efba5fb6e03eb5d0a300fddb2a75bf8e2f175cb
* Rename isDexOptNeededInternal and add kSelfPatchOatNeededRichard Uhler2015-04-031-23/+44
| | | | | | | | | This change renames isDexOptNeededInternal to getDexOptNeeded and adds another possible result: kSelfPatchOatNeeded. kSelfPatchOatNeeded is returned when there is no odex file to relocate from but there is an oat file that can be relocated in place. Change-Id: Ib9a6373f98474f1242367b5285086251a9d580e5
* Store odex files in oat/<isa>/ directory.Richard Uhler2015-03-251-5/+6
| | | | | | | | | | | | | | | | Previously odex files were stored alongside the dex location as: dex location: /foo/bar/base.apk odex location: /foo/bar/<isa>/base.odex This changes where odex files are stored, adding an "oat" directory: dex location: /foo/bar/base.apk odex location: /foo/bar/oat/<isa>/base.odex See also the corresponding change in platform/build and platform/frameworks/native. Bug: 19550105 Change-Id: I4c6be4f0c41ff175904846db8e360c4af815b265
* Create OatFileAssistant class for assisting with oat files.Richard Uhler2015-03-091-0/+431
The oat file assistant is used for determining whether dex2oat or patchoat is needed, for running dex2oat or patchoat as needed to make an oat file up to date, and to load dex files associated with a given dex location. The introduction of the OatFileAssistant class is meant to clean up and consolidate code related to the management of oat files that was duplicated and spread across dalvik_system_DexFile.cc and class_linker.cc. Bug: 11301553 Change-Id: I0c16027b9bae4570c2c50faa9c14f581c0cbafb8