summaryrefslogtreecommitdiff
path: root/runtime/java_vm_ext.cc
diff options
context:
space:
mode:
author Calin Juravle <calin@google.com> 2016-02-18 18:47:37 +0000
committer Calin Juravle <calin@google.com> 2016-03-02 18:24:57 +0000
commitd91b8a2464b99625efe03caf7d30c8372bc378ed (patch)
treeaaa5ee72db78995a87b2b246af3ea66612196845 /runtime/java_vm_ext.cc
parentf009a314c25bda4cbaa723040ed398939bfdb770 (diff)
Update GetDexOptNeeded to handle the different levels of compilation
extract-only or profile-guide oat files are considered up to date from runtime perspective as they don't necessary need (re)compilation or relocation. However, it is useful to return a more refined code to the caller so that they can decide whether or not that's good enough. For example, the package manager might decide to still compile a previous extract-only and during profile guide compilation we should always recompile even if we have an oat file. Note that dex files compiled via ClassLoaders will still be fully compiled. This change introduces: - a new key in the oat header kCompilationType to capture what type of compilation has been made. Note tha the key might be missing. The distinction is needed in order to avoid recompilation of a previous fully compiled file during profile guide compilation analysis. - a new argument to GetDexOptNeeded which tells the runtime to cast its opinion whether or not the oat file is up to date relative to the desired target type of compilation. Bug: 27189430 Change-Id: Icd9794b1df6f6e21242e1dd1d5b5d064963dbbb7
Diffstat (limited to 'runtime/java_vm_ext.cc')
0 files changed, 0 insertions, 0 deletions