Lines Matching refs:oat_file

67 const OatFile* OatFileManager::RegisterOatFile(std::unique_ptr<const OatFile> oat_file) {  in RegisterOatFile()  argument
70 LocationIsOnSystem(oat_file->GetLocation().c_str()) || in RegisterOatFile()
71 !oat_file->IsExecutable()) in RegisterOatFile()
72 << "Registering a non /system oat file: " << oat_file->GetLocation(); in RegisterOatFile()
73 DCHECK(oat_file != nullptr); in RegisterOatFile()
75 CHECK(oat_files_.find(oat_file) == oat_files_.end()); in RegisterOatFile()
77 CHECK_NE(oat_file.get(), existing.get()) << oat_file->GetLocation(); in RegisterOatFile()
80 CHECK_NE(oat_file->Begin(), existing->Begin()) << "Oat file already mapped at that location"; in RegisterOatFile()
83 const OatFile* ret = oat_file.get(); in RegisterOatFile()
84 oat_files_.insert(std::move(oat_file)); in RegisterOatFile()
88 void OatFileManager::UnRegisterAndDeleteOatFile(const OatFile* oat_file) { in UnRegisterAndDeleteOatFile() argument
90 DCHECK(oat_file != nullptr); in UnRegisterAndDeleteOatFile()
91 std::unique_ptr<const OatFile> compare(oat_file); in UnRegisterAndDeleteOatFile()
101 for (const std::unique_ptr<const OatFile>& oat_file : oat_files_) { in FindOpenedOatFileFromDexLocation() local
102 const std::vector<const OatDexFile*>& oat_dex_files = oat_file->GetOatDexFiles(); in FindOpenedOatFileFromDexLocation()
105 return oat_file.get(); in FindOpenedOatFileFromDexLocation()
120 for (const std::unique_ptr<const OatFile>& oat_file : oat_files_) { in FindOpenedOatFileFromOatLocationLocked() local
121 if (oat_file->GetLocation() == oat_location) { in FindOpenedOatFileFromOatLocationLocked()
122 return oat_file.get(); in FindOpenedOatFileFromOatLocationLocked()
143 for (const std::unique_ptr<const OatFile>& oat_file : oat_files_) { in GetPrimaryOatFile() local
144 if (std::find(boot_oat_files.begin(), boot_oat_files.end(), oat_file.get()) == in GetPrimaryOatFile()
146 return oat_file.get(); in GetPrimaryOatFile()
173 const OatFile* oat_file, in ClassLoaderContextMatches() argument
177 DCHECK(oat_file != nullptr); in ClassLoaderContextMatches()
181 if (!CompilerFilter::IsVerificationEnabled(oat_file->GetCompilerFilter())) { in ClassLoaderContextMatches()
190 oat_file->GetClassLoaderContext(), in ClassLoaderContextMatches()
245 std::unique_ptr<const OatFile> oat_file(oat_file_assistant.GetBestOatFile().release()); in OpenDexFilesFromOat() local
247 << reinterpret_cast<uintptr_t>(oat_file.get()) in OpenDexFilesFromOat()
248 << " (executable=" << (oat_file != nullptr ? oat_file->IsExecutable() : false) << ")"; in OpenDexFilesFromOat()
254 if (oat_file != nullptr && in OpenDexFilesFromOat()
256 ClassLoaderContextMatches(oat_file.get(), in OpenDexFilesFromOat()
263 if (oat_file->IsExecutable()) { in OpenDexFilesFromOat()
269 if (!is_special_shared_library && ShouldLoadAppImage(oat_file.get())) { in OpenDexFilesFromOat()
270 image_space = oat_file_assistant.OpenImageSpace(oat_file.get()); in OpenDexFilesFromOat()
326 if (oat_file->RequiresImage()) { in OpenDexFilesFromOat()
328 << oat_file->GetLocation() in OpenDexFilesFromOat()
335 oat_file.reset(nonexecutable_oat_file_assistant.GetBestOatFile().release()); in OpenDexFilesFromOat()
338 dex_files = oat_file_assistant.LoadDexFiles(*oat_file.get(), dex_location); in OpenDexFilesFromOat()
346 error_msgs->push_back("Failed to open dex files from " + oat_file->GetLocation()); in OpenDexFilesFromOat()
354 VLOG(class_linker) << "Registering " << oat_file->GetLocation(); in OpenDexFilesFromOat()
355 source_oat_file = RegisterOatFile(std::move(oat_file)); in OpenDexFilesFromOat()
562 std::unique_ptr<OatFile> oat_file(OatFile::OpenFromVdex(MakeNonOwningPointerVector(dex_files), in OpenDexFilesFromOat_Impl() local
565 if (oat_file != nullptr) { in OpenDexFilesFromOat_Impl()
566 VLOG(class_linker) << "Registering " << oat_file->GetLocation(); in OpenDexFilesFromOat_Impl()
567 *out_oat_file = RegisterOatFile(std::move(oat_file)); in OpenDexFilesFromOat_Impl()
811 for (const std::unique_ptr<const OatFile>& oat_file : oat_files_) { in SetOnlyUseSystemOatFiles() local
812 if (boot_set.find(oat_file.get()) == boot_set.end()) { in SetOnlyUseSystemOatFiles()
813 CHECK(LocationIsOnSystem(oat_file->GetLocation().c_str())) << oat_file->GetLocation(); in SetOnlyUseSystemOatFiles()
822 for (const std::unique_ptr<const OatFile>& oat_file : oat_files_) { in DumpForSigQuit() local
823 if (ContainsElement(boot_oat_files, oat_file.get())) { in DumpForSigQuit()
826 os << oat_file->GetLocation() << ": " << oat_file->GetCompilerFilter() << "\n"; in DumpForSigQuit()