/art/runtime/ |
D | oat_file_manager.cc | 59 const OatFile* OatFileManager::RegisterOatFile(std::unique_ptr<const OatFile> oat_file) { in RegisterOatFile() argument 62 LocationIsOnSystem(oat_file->GetLocation().c_str()) || in RegisterOatFile() 63 !oat_file->IsExecutable()) in RegisterOatFile() 64 << "Registering a non /system oat file: " << oat_file->GetLocation(); in RegisterOatFile() 65 DCHECK(oat_file != nullptr); in RegisterOatFile() 67 CHECK(oat_files_.find(oat_file) == oat_files_.end()); in RegisterOatFile() 69 CHECK_NE(oat_file.get(), existing.get()) << oat_file->GetLocation(); in RegisterOatFile() 72 CHECK_NE(oat_file->Begin(), existing->Begin()) << "Oat file already mapped at that location"; in RegisterOatFile() 75 have_non_pic_oat_file_ = have_non_pic_oat_file_ || !oat_file->IsPic(); in RegisterOatFile() 76 const OatFile* ret = oat_file.get(); in RegisterOatFile() [all …]
|
D | oat_file_assistant_test.cc | 154 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F() local 155 EXPECT_EQ(nullptr, oat_file.get()); in TEST_F() 520 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F() local 521 ASSERT_TRUE(oat_file.get() != nullptr); in TEST_F() 522 EXPECT_TRUE(oat_file->IsExecutable()); in TEST_F() 524 dex_files = oat_file_assistant.LoadDexFiles(*oat_file, dex_location.c_str()); in TEST_F() 610 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F() local 611 ASSERT_TRUE(oat_file.get() != nullptr); in TEST_F() 612 EXPECT_TRUE(oat_file->IsExecutable()); in TEST_F() 614 dex_files = oat_file_assistant.LoadDexFiles(*oat_file, dex_location.c_str()); in TEST_F() [all …]
|
D | oat_file_manager.h | 53 const OatFile* RegisterOatFile(std::unique_ptr<const OatFile> oat_file) 56 void UnRegisterAndDeleteOatFile(const OatFile* oat_file) 120 bool HasCollisions(const OatFile* oat_file,
|
D | class_table.cc | 242 const OatFile* oat_file = dex_file->GetOatDexFile()->GetOatFile(); in InsertStrongRoot() local 243 if (oat_file != nullptr && !oat_file->GetBssGcRoots().empty()) { in InsertStrongRoot() 244 InsertOatFileLocked(oat_file); // Ignore return value. in InsertStrongRoot() 251 bool ClassTable::InsertOatFile(const OatFile* oat_file) { in InsertOatFile() argument 253 return InsertOatFileLocked(oat_file); in InsertOatFile() 256 bool ClassTable::InsertOatFileLocked(const OatFile* oat_file) { in InsertOatFileLocked() argument 257 if (ContainsElement(oat_files_, oat_file)) { in InsertOatFileLocked() 260 oat_files_.push_back(oat_file); in InsertOatFileLocked()
|
D | class_table-inl.h | 38 for (const OatFile* oat_file : oat_files_) { in VisitRoots() local 39 for (GcRoot<mirror::Object>& root : oat_file->GetBssGcRoots()) { in VisitRoots() 56 for (const OatFile* oat_file : oat_files_) { in VisitRoots() local 57 for (GcRoot<mirror::Object>& root : oat_file->GetBssGcRoots()) { in VisitRoots()
|
D | oat_file_assistant.cc | 342 const OatFile &oat_file, const char *dex_location) { in LoadDexFiles() argument 344 if (LoadDexFiles(oat_file, dex_location, &dex_files)) { in LoadDexFiles() 352 const OatFile &oat_file, in LoadDexFiles() argument 357 const OatFile::OatDexFile* oat_dex_file = oat_file.GetOatDexFile( in LoadDexFiles() 374 oat_dex_file = oat_file.GetOatDexFile(multidex_dex_location.c_str(), nullptr); in LoadDexFiles() 760 File* oat_file = oat_file_wrapper.GetFile(); in GenerateOatFileNoChecks() local 761 if (oat_file == nullptr) { in GenerateOatFileNoChecks() 767 if (fchmod(oat_file->Fd(), file_mode) != 0) { in GenerateOatFileNoChecks() 776 args.push_back("--oat-fd=" + std::to_string(oat_file->Fd())); in GenerateOatFileNoChecks() 793 if (oat_file->FlushCloseOrErase() != 0) { in GenerateOatFileNoChecks() [all …]
|
D | oat_file.cc | 390 inline static bool ReadOatDexFileData(const OatFile& oat_file, in ReadOatDexFileData() argument 395 DCHECK_LE(*oat, oat_file.End()); in ReadOatDexFileData() 396 if (UNLIKELY(static_cast<size_t>(oat_file.End() - *oat) < sizeof(T))) { in ReadOatDexFileData() 437 static bool ReadIndexBssMapping(OatFile* oat_file, in ReadIndexBssMapping() argument 445 if (UNLIKELY(!ReadOatDexFileData(*oat_file, oat, &index_bss_mapping_offset))) { in ReadIndexBssMapping() 448 oat_file->GetLocation().c_str(), in ReadIndexBssMapping() 456 index_bss_mapping_offset <= oat_file->Size() && in ReadIndexBssMapping() 458 oat_file->Size() - index_bss_mapping_offset >= IndexBssMapping::ComputeSize(0); in ReadIndexBssMapping() 460 ? reinterpret_cast<const IndexBssMapping*>(oat_file->Begin() + index_bss_mapping_offset) in ReadIndexBssMapping() 465 UNLIKELY(oat_file->Size() - index_bss_mapping_offset < in ReadIndexBssMapping() [all …]
|
D | oat_file_assistant.h | 244 static std::unique_ptr<gc::space::ImageSpace> OpenImageSpace(const OatFile* oat_file); 255 const OatFile& oat_file, const char* dex_location); 260 static bool LoadDexFiles(const OatFile& oat_file,
|
D | class_loader_context.cc | 63 for (std::unique_ptr<OatFile>& oat_file : info.opened_oat_files) { in ~ClassLoaderContext() 64 oat_file.release(); in ~ClassLoaderContext() 233 std::unique_ptr<OatFile> oat_file(oat_file_assistant.GetBestOatFile()); in OpenDexFiles() local 235 if (oat_file != nullptr && in OpenDexFiles() 236 OatFileAssistant::LoadDexFiles(*oat_file, location, &oat_dex_files)) { in OpenDexFiles() 237 info.opened_oat_files.push_back(std::move(oat_file)); in OpenDexFiles()
|
D | class_table.h | 237 bool InsertOatFile(const OatFile* oat_file) 282 bool InsertOatFileLocked(const OatFile* oat_file)
|
D | oat_file.h | 244 OatClass(const OatFile* oat_file, 518 OatDexFile(const OatFile* oat_file,
|
/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() 62 CHECK(class_table != nullptr && !class_table->InsertOatFile(oat_file)) in StoreObjectInBss() 64 << oat_file->GetLocation(); in StoreObjectInBss() 69 runtime->GetClassLinker()->WriteBarrierForBootOatFileBssRoots(oat_file); in StoreObjectInBss()
|
/art/test/117-nopatchoat/ |
D | nopatchoat.cc | 57 const OatFile* oat_file = oat_dex_file->GetOatFile(); in needsRelocation() local 58 return !oat_file->IsPic() in needsRelocation() 59 && CompilerFilter::IsAotCompilationEnabled(oat_file->GetCompilerFilter()); in needsRelocation()
|
/art/runtime/native/ |
D | dalvik_system_DexFile.cc | 61 /*out*/ const OatFile*& oat_file) { in ConvertJavaArrayToDexFiles() argument 77 oat_file = reinterpret_cast<const OatFile*>(static_cast<uintptr_t>(long_data[kOatFileIndex])); in ConvertJavaArrayToDexFiles() 88 const OatFile* oat_file, in ConvertDexFilesToJavaArray() argument 102 long_data[kOatFileIndex] = reinterpret_cast<uintptr_t>(oat_file); in ConvertDexFilesToJavaArray() 283 const OatFile* oat_file = nullptr; in DexFile_openDexFileNative() local 288 /*out*/ &oat_file, in DexFile_openDexFileNative() 292 jlongArray array = ConvertDexFilesToJavaArray(env, oat_file, dex_files); in DexFile_openDexFileNative() 319 const OatFile* oat_file; in DexFile_closeDexFile() local 320 if (!ConvertJavaArrayToDexFiles(env, cookie, dex_files, oat_file)) { in DexFile_closeDexFile() 353 if (all_deleted && oat_file != nullptr) { in DexFile_closeDexFile() [all …]
|
/art/runtime/gc/space/ |
D | image_space.h | 52 const OatFile* oat_file, 143 static bool ValidateOatFile(const OatFile& oat_file, std::string* error_msg); 175 const OatFile* oat_file,
|
D | image_space.cc | 553 const OatFile* oat_file, in Init() argument 590 if (oat_file != nullptr) { in Init() 593 const uint32_t oat_checksum = oat_file->GetOatHeader().GetChecksum(); in Init() 703 oat_file, in Init() 720 if (oat_file == nullptr) { in Init() 729 space->oat_file_non_owned_ = oat_file; in Init() 745 CHECK_EQ(oat_file != nullptr, image_header->IsAppImage()); in Init() 1421 std::unique_ptr<OatFile> oat_file(OatFile::Open(/* zip_fd */ -1, in OpenOatFile() local 1430 if (oat_file == nullptr) { in OpenOatFile() 1437 uint32_t oat_checksum = oat_file->GetOatHeader().GetChecksum(); in OpenOatFile() [all …]
|
/art/dex2oat/linker/ |
D | oat_writer_test.cc | 121 File* oat_file, in WriteElf() argument 140 return DoWriteElf(vdex_file, oat_file, oat_writer, key_value_store, verify); in WriteElf() 144 File* oat_file, in WriteElf() argument 159 return DoWriteElf(vdex_file, oat_file, oat_writer, key_value_store, verify); in WriteElf() 163 File* oat_file, in WriteElf() argument 176 return DoWriteElf(vdex_file, oat_file, oat_writer, key_value_store, verify); in WriteElf() 180 File* oat_file, in DoWriteElf() argument 188 oat_file); in DoWriteElf() 423 std::unique_ptr<OatFile> oat_file(OatFile::Open(/* zip_fd */ -1, in TEST_F() local 432 ASSERT_TRUE(oat_file.get() != nullptr) << error_msg; in TEST_F() [all …]
|
D | image_test.h | 120 for (ScratchFile& oat_file : oat_files) { in ~CompilationHelper() 121 oat_file.Unlink(); in ~CompilationHelper() 243 for (ScratchFile& oat_file : oat_files) { in Compile() 247 oat_file.GetFile())); in Compile() 359 std::unique_ptr<File> oat_file(OS::OpenFileReadWrite(oat_filename)); in Compile() 360 ASSERT_TRUE(oat_file != nullptr); in Compile() 361 bool success_fixup = ElfWriter::Fixup(oat_file.get(), in Compile() 364 ASSERT_EQ(oat_file->FlushCloseOrErase(), 0) << "Could not flush and close oat file " in Compile()
|
/art/openjdkjvmti/ |
D | fixed_up_dex_file.cc | 71 const art::OatFile* oat_file = oat_dex->GetOatFile(); in GetVdex() local 72 if (oat_file == nullptr) { in GetVdex() 75 return oat_file->GetVdexFile(); in GetVdex()
|
/art/oatdump/ |
D | oatdump.cc | 127 OatSymbolizer(const OatFile* oat_file, const std::string& output_name, bool no_bits) : in OatSymbolizer() argument 128 oat_file_(oat_file), in OatSymbolizer() 389 OatDumper(const OatFile& oat_file, const OatDumperOptions& options) in OatDumper() argument 390 : oat_file_(oat_file), in OatDumper() 391 oat_dex_files_(oat_file.GetOatDexFiles()), in OatDumper() 398 oat_file.Begin(), in OatDumper() 399 oat_file.End(), in OatDumper() 2078 const OatFile* oat_file = image_space_.GetOatFile(); in Dump() local 2079 if (oat_file == nullptr) { in Dump() 2080 oat_file = runtime->GetOatFileManager().FindOpenedOatFileFromOatLocation(oat_location); in Dump() [all …]
|
/art/dex2oat/ |
D | dex2oat.cc | 675 for (std::unique_ptr<File>& oat_file : oat_files_) { in ~Dex2Oat() 676 oat_file.release(); in ~Dex2Oat() 1319 std::unique_ptr<File> oat_file(OS::CreateEmptyFile(oat_filename)); in OpenFile() local 1320 if (oat_file == nullptr) { in OpenFile() 1324 if (fchmod(oat_file->Fd(), 0644) != 0) { in OpenFile() 1326 oat_file->Erase(); in OpenFile() 1329 oat_files_.push_back(std::move(oat_file)); in OpenFile() 1363 std::unique_ptr<File> oat_file(new File(oat_fd_, oat_location_, /* check_usage */ true)); in OpenFile() local 1364 if (oat_file == nullptr) { in OpenFile() 1368 oat_file->DisableAutoClose(); in OpenFile() [all …]
|
D | dex2oat_image_test.cc | 130 std::string oat_file = scratch.GetFilename() + ".oat"; in CompileImageAndGetSizes() local 133 int64_t oat_size = OS::GetFileSizeBytes(oat_file.c_str()); in CompileImageAndGetSizes() 136 CHECK_GT(oat_size, 0u) << oat_file; in CompileImageAndGetSizes()
|
D | dex2oat_test.cc | 72 std::unique_ptr<File> oat_file; local 79 oat_file.reset(OS::CreateEmptyFile(odex_location.c_str())); 80 CHECK(oat_file != nullptr) << odex_location; 81 args.push_back("--oat-fd=" + std::to_string(oat_file->Fd())); 93 if (oat_file != nullptr) { 94 CHECK_EQ(oat_file->FlushClose(), 0) << "Could not flush and close oat file"; 1111 auto check_oat = [expected_classpath_key](const OatFile& oat_file) { in RunTest() argument 1113 const char* classpath = oat_file.GetOatHeader().GetStoreValueByKey(OatHeader::kClassPathKey); in RunTest() 1195 std::unique_ptr<OatFile> oat_file(oat_file_assistant.GetBestOatFile()); in TEST_F() local 1197 OatFileAssistant::LoadDexFiles(*oat_file, stripped_classpath.c_str()); in TEST_F() [all …]
|
/art/runtime/gc/collector/ |
D | immune_spaces_test.cc | 45 std::unique_ptr<DummyOatFile>&& oat_file, in DummyImageSpace() argument 53 oat_file_ = std::move(oat_file); in DummyImageSpace() 111 std::unique_ptr<DummyOatFile> oat_file(new DummyOatFile(oat_map->Begin(), oat_map->End())); in CreateImageSpace() local 136 std::move(oat_file), in CreateImageSpace()
|
/art/test/common/ |
D | runtime_state.cc | 108 const OatFile* oat_file = oat_dex_file->GetOatFile(); in Java_Main_compiledWithOptimizing() local 109 CHECK(oat_file != nullptr); in Java_Main_compiledWithOptimizing() 111 const char* cmd_line = oat_file->GetOatHeader().GetStoreValueByKey(OatHeader::kDex2OatCmdLineKey); in Java_Main_compiledWithOptimizing()
|