/art/runtime/ |
D | oat_file_manager.cc | 68 const OatFile* OatFileManager::RegisterOatFile(std::unique_ptr<const OatFile> oat_file) { in RegisterOatFile() argument 70 VLOG(class_linker) << "Registered oat file " << oat_file->GetLocation(); in RegisterOatFile() 71 PaletteNotifyOatFileLoaded(oat_file->GetLocation().c_str()); in RegisterOatFile() 75 LocationIsTrusted(oat_file->GetLocation(), !Runtime::Current()->DenyArtApexDataFiles()) || in RegisterOatFile() 76 !oat_file->IsExecutable()) in RegisterOatFile() 77 << "Registering a non /system oat file: " << oat_file->GetLocation(); in RegisterOatFile() 78 DCHECK(oat_file != nullptr); in RegisterOatFile() 80 CHECK(oat_files_.find(oat_file) == oat_files_.end()); in RegisterOatFile() 82 CHECK_NE(oat_file.get(), existing.get()) << oat_file->GetLocation(); in RegisterOatFile() 85 CHECK_NE(oat_file->Begin(), existing->Begin()) << "Oat file already mapped at that location"; in RegisterOatFile() [all …]
|
D | oat_file_assistant_test.cc | 181 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F() local 182 ASSERT_TRUE(oat_file.get() != nullptr); in TEST_F() 183 EXPECT_TRUE(oat_file->IsExecutable()); in TEST_F() 185 dex_files = oat_file_assistant.LoadDexFiles(*oat_file, dex_location.c_str()); in TEST_F() 210 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F() local 211 ASSERT_NE(nullptr, oat_file.get()); in TEST_F() 212 ASSERT_NE(nullptr, oat_file->GetOatHeader().GetStoreValueByKey(OatHeader::kClassPathKey)); in TEST_F() 214 oat_file->GetOatHeader().GetStoreValueByKey(OatHeader::kClassPathKey)); in TEST_F() 295 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F() local 296 EXPECT_EQ(nullptr, oat_file.get()); in TEST_F() [all …]
|
D | class_table.cc | 149 const OatFile* oat_file = dex_file->GetOatDexFile()->GetOatFile(); in InsertStrongRoot() local 150 if (oat_file != nullptr && !oat_file->GetBssGcRoots().empty()) { in InsertStrongRoot() 151 InsertOatFileLocked(oat_file); // Ignore return value. in InsertStrongRoot() 158 bool ClassTable::InsertOatFile(const OatFile* oat_file) { in InsertOatFile() argument 160 return InsertOatFileLocked(oat_file); in InsertOatFile() 163 bool ClassTable::InsertOatFileLocked(const OatFile* oat_file) { in InsertOatFileLocked() argument 164 if (ContainsElement(oat_files_, oat_file)) { in InsertOatFileLocked() 167 oat_files_.push_back(oat_file); in InsertOatFileLocked()
|
D | oat_file_assistant.cc | 270 const OatFile &oat_file, const char *dex_location) { in LoadDexFiles() argument 272 if (LoadDexFiles(oat_file, dex_location, &dex_files)) { in LoadDexFiles() 280 const OatFile &oat_file, in LoadDexFiles() argument 285 const OatDexFile* oat_dex_file = oat_file.GetOatDexFile( in LoadDexFiles() 302 oat_dex_file = oat_file.GetOatDexFile(multidex_dex_location.c_str(), nullptr); in LoadDexFiles() 403 static bool ValidateApexVersions(const OatFile& oat_file) { in ValidateApexVersions() argument 405 oat_file.GetOatHeader().GetStoreValueByKey(OatHeader::kApexVersionsKey); in ValidateApexVersions() 631 bool OatFileAssistant::ValidateBootClassPathChecksums(const OatFile& oat_file) { in ValidateBootClassPathChecksums() argument 634 oat_file.GetOatHeader().GetStoreValueByKey(OatHeader::kBootClassPathChecksumsKey); in ValidateBootClassPathChecksums() 636 oat_file.GetOatHeader().GetStoreValueByKey(OatHeader::kBootClassPathKey); in ValidateBootClassPathChecksums() [all …]
|
D | oat_file_assistant.h | 195 static std::unique_ptr<gc::space::ImageSpace> OpenImageSpace(const OatFile* oat_file); 206 const OatFile& oat_file, const char* dex_location); 211 static bool LoadDexFiles(const OatFile& oat_file, 274 bool ClassLoaderContextIsOkay(const OatFile& oat_file) const; 413 bool ValidateBootClassPathChecksums(const OatFile& oat_file);
|
D | oat_file.cc | 417 inline static bool ReadOatDexFileData(const OatFile& oat_file, in ReadOatDexFileData() argument 422 DCHECK_LE(*oat, oat_file.End()); in ReadOatDexFileData() 423 if (UNLIKELY(static_cast<size_t>(oat_file.End() - *oat) < sizeof(T))) { in ReadOatDexFileData() 433 static bool ReadIndexBssMapping(OatFile* oat_file, in ReadIndexBssMapping() argument 441 if (UNLIKELY(!ReadOatDexFileData(*oat_file, oat, &index_bss_mapping_offset))) { in ReadIndexBssMapping() 444 oat_file->GetLocation().c_str(), in ReadIndexBssMapping() 452 index_bss_mapping_offset <= oat_file->Size() && in ReadIndexBssMapping() 454 oat_file->Size() - index_bss_mapping_offset >= IndexBssMapping::ComputeSize(0); in ReadIndexBssMapping() 456 ? reinterpret_cast<const IndexBssMapping*>(oat_file->Begin() + index_bss_mapping_offset) in ReadIndexBssMapping() 461 UNLIKELY(oat_file->Size() - index_bss_mapping_offset < in ReadIndexBssMapping() [all …]
|
D | class_table-inl.h | 80 for (const OatFile* oat_file : oat_files_) { in VisitRoots() local 81 for (GcRoot<mirror::Object>& root : oat_file->GetBssGcRoots()) { in VisitRoots() 98 for (const OatFile* oat_file : oat_files_) { in VisitRoots() local 99 for (GcRoot<mirror::Object>& root : oat_file->GetBssGcRoots()) { in VisitRoots()
|
D | oat_file_manager.h | 56 const OatFile* RegisterOatFile(std::unique_ptr<const OatFile> oat_file) 59 void UnRegisterAndDeleteOatFile(const OatFile* oat_file)
|
D | common_runtime_test.cc | 463 std::unique_ptr<File> oat_file; in CompileBootImage() local 467 oat_file.reset(OS::CreateEmptyFile((use_fd_prefix + ".oat").c_str())); in CompileBootImage() 470 argv.push_back("--oat-fd=" + std::to_string(oat_file->Fd())); in CompileBootImage() 494 if (oat_file != nullptr) { in CompileBootImage() 495 CHECK_EQ(0, oat_file->FlushClose()); in CompileBootImage()
|
D | oat_file.h | 283 OatClass(const OatFile* oat_file, 568 OatDexFile(const OatFile* oat_file, 584 OatDexFile(const OatFile* oat_file,
|
D | class_table.h | 231 bool InsertOatFile(const OatFile* oat_file) 267 bool InsertOatFileLocked(const OatFile* oat_file)
|
/art/runtime/native/ |
D | dalvik_system_DexFile.cc | 66 /*out*/ const OatFile*& oat_file) { in ConvertJavaArrayToDexFiles() argument 82 oat_file = reinterpret_cast64<const OatFile*>(long_data[kOatFileIndex]); in ConvertJavaArrayToDexFiles() 93 const OatFile* oat_file, in ConvertDexFilesToJavaArray() argument 107 long_data[kOatFileIndex] = reinterpret_cast64<jlong>(oat_file); in ConvertDexFilesToJavaArray() 174 const OatFile* oat_file, in CreateCookieFromOatFileManagerResult() argument 190 jlongArray array = ConvertDexFilesToJavaArray(env, oat_file, dex_files); in CreateCookieFromOatFileManagerResult() 296 const OatFile* oat_file = nullptr; in DexFile_openInMemoryDexFilesNative() local 301 /*out*/ &oat_file, in DexFile_openInMemoryDexFilesNative() 303 return CreateCookieFromOatFileManagerResult(env, dex_files, oat_file, error_msgs); in DexFile_openInMemoryDexFilesNative() 320 const OatFile* oat_file = nullptr; in DexFile_openDexFileNative() local [all …]
|
/art/runtime/entrypoints/quick/ |
D | quick_dexcache_entrypoints.cc | 36 const OatFile* oat_file, in StoreObjectInBss() argument 44 if (UNLIKELY(!oat_file->IsExecutable())) { in StoreObjectInBss() 51 const_cast<uint8_t*>(oat_file->BssBegin() + bss_offset)); in StoreObjectInBss() 52 DCHECK_GE(slot, oat_file->GetBssGcRoots().data()); in StoreObjectInBss() 53 DCHECK_LT(slot, oat_file->GetBssGcRoots().data() + oat_file->GetBssGcRoots().size()); in StoreObjectInBss() 65 CHECK(class_table != nullptr && !class_table->InsertOatFile(oat_file)) in StoreObjectInBss() 67 << oat_file->GetLocation(); in StoreObjectInBss() 72 runtime->GetClassLinker()->WriteBarrierForBootOatFileBssRoots(oat_file); in StoreObjectInBss()
|
/art/dex2oat/linker/ |
D | oat_writer_test.cc | 103 File* oat_file, in WriteElf() argument 124 vdex_file, oat_file, oat_writer, key_value_store, verify, CopyOption::kOnlyIfCompressed); in WriteElf() 128 File* oat_file, in WriteElf() argument 145 return DoWriteElf(vdex_file, oat_file, oat_writer, key_value_store, verify, copy); in WriteElf() 149 File* oat_file, in WriteElf() argument 165 return DoWriteElf(vdex_file, oat_file, oat_writer, key_value_store, verify, copy); in WriteElf() 169 File* oat_file, in DoWriteElf() argument 176 oat_file); in DoWriteElf() 258 void CheckOatWriteResult(ScratchFile& oat_file, in CheckOatWriteResult() argument 267 oat_file.GetFilename(), in CheckOatWriteResult() [all …]
|
D | image_test.h | 126 for (ScratchFile& oat_file : oat_files) { in ~CompilationHelper() 127 oat_file.Unlink(); in ~CompilationHelper() 233 for (ScratchFile& oat_file : out_helper.oat_files) { in DoCompile() 234 elf_writers.emplace_back(CreateElfWriterQuick(*compiler_options_, oat_file.GetFile())); in DoCompile()
|
/art/runtime/gc/space/ |
D | image_space.h | 138 const OatFile* oat_file, 144 const OatFile* oat_file, 267 static bool ValidateOatFile(const OatFile& oat_file, std::string* error_msg); 291 const OatFile* oat_file,
|
D | image_space.cc | 495 const OatFile* oat_file, in InitAppImage() argument 507 space->oat_file_non_owned_ = oat_file; in InitAppImage() 511 const uint32_t oat_checksum = oat_file->GetOatHeader().GetChecksum(); in InitAppImage() 523 oat_file, in InitAppImage() 547 oat_file, in InitAppImage() 553 oat_file, in InitAppImage() 842 const OatFile* oat_file, in ValidateBootImageChecksum() argument 897 oat_file->GetOatHeader().GetStoreValueByKey(OatHeader::kBootClassPathChecksumsKey); in ValidateBootImageChecksum() 2825 std::unique_ptr<OatFile> oat_file; in OpenOatFile() local 2835 oat_file.reset(OatFile::Open(/*zip_fd=*/ -1, in OpenOatFile() [all …]
|
/art/dexoptanalyzer/ |
D | dexoptanalyzer.cc | 407 const OatFile* oat_file = image_space->GetOatFile(); in ValidateBcp() local 408 if (oat_file == nullptr) { in ValidateBcp() 413 if (!oat_file->GetOatHeader().IsValid() || in ValidateBcp() 414 !ImageSpace::ValidateOatFile(*oat_file, &error_msg)) { in ValidateBcp() 415 LOG(INFO) << "Oat file is not valid: " << oat_file->GetLocation() << " " << error_msg; in ValidateBcp() 418 const VdexFile* vdex_file = oat_file->GetVdexFile(); in ValidateBcp() 420 LOG(INFO) << "Vdex file is not valid : " << oat_file->GetLocation(); in ValidateBcp()
|
/art/oatdump/ |
D | oatdump.cc | 133 OatSymbolizer(const OatFile* oat_file, const std::string& output_name, bool no_bits) : in OatSymbolizer() argument 134 oat_file_(oat_file), in OatSymbolizer() 383 OatDumper(const OatFile& oat_file, const OatDumperOptions& options) in OatDumper() argument 384 : oat_file_(oat_file), in OatDumper() 385 oat_dex_files_(oat_file.GetOatDexFiles()), in OatDumper() 392 oat_file.Begin(), in OatDumper() 393 oat_file.End(), in OatDumper() 1784 const OatFile* oat_file = image_space_.GetOatFile(); in Dump() local 1785 if (oat_file == nullptr) { in Dump() 1786 oat_file = runtime->GetOatFileManager().FindOpenedOatFileFromOatLocation(oat_location); in Dump() [all …]
|
/art/tools/ |
D | art | 201 local oat_file=$(basename "$dex_file") 202 local oat_file=$(dirname "$dex_file")/oat/$ISA/${oat_file%.*}.odex 227 --oat-file=$oat_file
|
/art/runtime/entrypoints/ |
D | entrypoint_utils.cc | 297 const OatFile* oat_file = callee_reference.dex_file->GetOatDexFile()->GetOatFile(); in MaybeUpdateBssMethodEntry() local 299 oat_file->BssBegin() + bss_offset)); in MaybeUpdateBssMethodEntry() 300 DCHECK_GE(method_entry, oat_file->GetBssMethods().data()); in MaybeUpdateBssMethodEntry() 302 oat_file->GetBssMethods().data() + oat_file->GetBssMethods().size()); in MaybeUpdateBssMethodEntry()
|
/art/runtime/gc/collector/ |
D | immune_spaces_test.cc | 45 std::unique_ptr<FakeOatFile>&& oat_file, in FakeImageSpace() argument 54 oat_file_ = std::move(oat_file); in FakeImageSpace() 112 std::unique_ptr<FakeOatFile> oat_file(new FakeOatFile(oat_map.Begin(), oat_map.End())); in CreateImageSpace() local 135 std::move(oat_file), in CreateImageSpace()
|
/art/dex2oat/ |
D | dex2oat.cc | 568 for (std::unique_ptr<File>& oat_file : oat_files_) { in ~Dex2Oat() 569 oat_file.release(); // NOLINT in ~Dex2Oat() 1192 std::unique_ptr<File> oat_file(OS::CreateEmptyFile(oat_filename.c_str())); in OpenFile() local 1193 if (oat_file == nullptr) { in OpenFile() 1197 if (fchmod(oat_file->Fd(), 0644) != 0) { in OpenFile() 1199 oat_file->Erase(); in OpenFile() 1202 oat_files_.push_back(std::move(oat_file)); in OpenFile() 1236 std::unique_ptr<File> oat_file( in OpenFile() local 1238 if (!oat_file->IsOpened()) { in OpenFile() 1242 if (oat_file->SetLength(0) != 0) { in OpenFile() [all …]
|
D | dex2oat_test.cc | 76 std::unique_ptr<File> oat_file; local 83 oat_file.reset(OS::CreateEmptyFile(odex_location.c_str())); 84 CHECK(oat_file != nullptr) << odex_location; 85 args.push_back("--oat-fd=" + std::to_string(oat_file->Fd())); 101 if (oat_file != nullptr) { 102 CHECK_EQ(oat_file->FlushClose(), 0) << "Could not flush and close oat file"; 945 auto check_oat = [expected_classpath_key](const OatFile& oat_file) { in RunTest() argument 947 const char* classpath = oat_file.GetOatHeader().GetStoreValueByKey(OatHeader::kClassPathKey); in RunTest() 2198 [&](const OatFile& oat_file) { in TEST_F() argument 2199 EXPECT_NE(oat_file.GetClassLoaderContext(), stored_context) << output_; in TEST_F() [all …]
|
/art/test/common/ |
D | runtime_state.cc | 125 const OatFile* oat_file = oat_dex_file->GetOatFile(); in Java_Main_compiledWithOptimizing() local 126 CHECK(oat_file != nullptr); in Java_Main_compiledWithOptimizing() 128 const char* cmd_line = oat_file->GetOatHeader().GetStoreValueByKey(OatHeader::kDex2OatCmdLineKey); in Java_Main_compiledWithOptimizing()
|