OSDN Git Service

Ignore the optimized location passed to DexFile.loadDex()
authorCalin Juravle <calin@google.com>
Wed, 19 Apr 2017 04:25:37 +0000 (21:25 -0700)
committerCalin Juravle <calin@google.com>
Fri, 21 Apr 2017 20:21:18 +0000 (13:21 -0700)
commitc23f851300109b1c8fd4b3f0b70cb5105ef1aa7f
tree528ce79366ae576da4f4e2f10a074528671fd98e
parentd8fbd99cbf87e7944dd79f54d9b8da37fad793c9
Ignore the optimized location passed to DexFile.loadDex()

This ensures that apps don't trigger dex2oat to locations
that are not recognized (anymore) by the runtime.

The background compilation job will takes care of optimizing
the dex files loaded via DexClassLoader.

Test: m test-art-host
Bug: 36824842

(cherry picked from commit 1f7079b72965cba0b1a40f53be97a4944ecb4a51)

Change-Id: Icf07ac70b5d2df7b9e6259877908d12b96827a82
runtime/native/dalvik_system_DexFile.cc
runtime/oat_file_assistant_test.cc
runtime/oat_file_manager.cc
runtime/oat_file_manager.h