diff options
author | 2015-03-25 17:19:53 -0700 | |
---|---|---|
committer | 2015-03-27 21:43:21 -0700 | |
commit | 81c6f8db12b203878a7d72444ead2bc7cf5c47ad (patch) | |
tree | 11caae30b75b700ac648356fd30759a6154be997 /runtime/common_runtime_test.h | |
parent | cac51526bbd03947676a8d49700425b19a57e447 (diff) |
ART: PathClassLoader for compiler
Use an actual PathClassLoader when compiling apps, instead of a
side structure and cutout.
This CL sets up a minimal object 'cluster' that recreates the Java
side of a regular ClassLoader such that the Class-Linker will
recognize it and use the internal native fast-path.
This CL removes the now unnecessary compile-time-classpath and
replaces it with a single 'compiling-the-boot-image' flag in the
compiler callbacks.
Note: This functionality is *only* intended for the compiler, as
the objects have not been completely initialized.
Bug: 19781184
Change-Id: I7f36af12dd7852d21281110a25c119e8c0669c1d
Diffstat (limited to 'runtime/common_runtime_test.h')
-rw-r--r-- | runtime/common_runtime_test.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/runtime/common_runtime_test.h b/runtime/common_runtime_test.h index cce8485a42..a29487fff4 100644 --- a/runtime/common_runtime_test.h +++ b/runtime/common_runtime_test.h @@ -133,6 +133,13 @@ class CommonRuntimeTest : public testing::Test { const DexFile* java_lang_dex_file_; std::vector<const DexFile*> boot_class_path_; + // Get the dex files from a PathClassLoader. This in order of the dex elements and their dex + // arrays. + std::vector<const DexFile*> GetDexFiles(jobject jclass_loader); + + // Get the first dex file from a PathClassLoader. Will abort if it is null. + const DexFile* GetFirstDexFile(jobject jclass_loader); + private: static std::string GetCoreFileLocation(const char* suffix); |