diff options
| author | 2015-10-30 16:30:40 +0000 | |
|---|---|---|
| committer | 2015-10-30 16:30:40 +0000 | |
| commit | 0a47d27b6f34a0d0ec4e02615bdac7cc1779f319 (patch) | |
| tree | d71e88ac9b0862dc04a25325ff950ea91179ae93 /compiler/driver/compiler_driver.cc | |
| parent | 1b3dd3b5b84e1bc47e6ccbdb3e0afa6652e9fb92 (diff) | |
| parent | 469e9c4515cb68509f02def2fe6c0465ffb55628 (diff) | |
Merge "Keep list of dex files for oat file in CompilerDriver."
am: 469e9c4515
* commit '469e9c4515cb68509f02def2fe6c0465ffb55628':
Keep list of dex files for oat file in CompilerDriver.
Diffstat (limited to 'compiler/driver/compiler_driver.cc')
| -rw-r--r-- | compiler/driver/compiler_driver.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/driver/compiler_driver.cc b/compiler/driver/compiler_driver.cc index 8750aa8e4e..fb116bb3da 100644 --- a/compiler/driver/compiler_driver.cc +++ b/compiler/driver/compiler_driver.cc @@ -375,6 +375,7 @@ CompilerDriver::CompilerDriver(const CompilerOptions* compiler_options, timings_logger_(timer), compiler_context_(nullptr), support_boot_image_fixup_(instruction_set != kMips && instruction_set != kMips64), + dex_files_for_oat_file_(nullptr), compiled_method_storage_(swap_fd) { DCHECK(compiler_options_ != nullptr); DCHECK(verification_results_ != nullptr); @@ -1371,8 +1372,7 @@ uint32_t CompilerDriver::GetReferenceDisableFlagOffset() const { } DexCacheArraysLayout CompilerDriver::GetDexCacheArraysLayout(const DexFile* dex_file) { - // Currently only image dex caches have fixed array layout. - return IsImage() && GetSupportBootImageFixup() + return ContainsElement(GetDexFilesForOatFile(), dex_file) ? DexCacheArraysLayout(GetInstructionSetPointerSize(instruction_set_), dex_file) : DexCacheArraysLayout(); } |