diff options
| author | 2016-01-20 19:13:25 +0000 | |
|---|---|---|
| committer | 2016-01-20 19:13:25 +0000 | |
| commit | 1ee101ac001561a40a3b654bab9c62f9369f0350 (patch) | |
| tree | 13a4b03ad1465349184b932d32af7a4cfb500773 /runtime/runtime.cc | |
| parent | 7997bafd29c483583bcaa3135d958403caef94e3 (diff) | |
| parent | 919f5536182890d2e03f59b961acf8f7c836ff61 (diff) | |
Merge "Revert "Write dex files to oat file early.""
Diffstat (limited to 'runtime/runtime.cc')
| -rw-r--r-- | runtime/runtime.cc | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/runtime/runtime.cc b/runtime/runtime.cc index e30c26dd5e..1101acdf61 100644 --- a/runtime/runtime.cc +++ b/runtime/runtime.cc @@ -1131,14 +1131,10 @@ bool Runtime::Init(RuntimeArgumentMap&& runtime_options_in) { } std::vector<std::unique_ptr<const DexFile>> boot_class_path; - if (runtime_options.Exists(Opt::BootClassPathDexList)) { - boot_class_path.swap(*runtime_options.GetOrDefault(Opt::BootClassPathDexList)); - } else { - OpenDexFiles(dex_filenames, - dex_locations, - runtime_options.GetOrDefault(Opt::Image), - &boot_class_path); - } + OpenDexFiles(dex_filenames, + dex_locations, + runtime_options.GetOrDefault(Opt::Image), + &boot_class_path); instruction_set_ = runtime_options.GetOrDefault(Opt::ImageInstructionSet); std::string error_msg; if (!class_linker_->InitWithoutImage(std::move(boot_class_path), &error_msg)) { |