Home
last modified time | relevance | path

Searched refs:oat_file (Results 1 – 25 of 33) sorted by relevance

12

/art/runtime/
Doat_file_manager.cc67 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()
[all …]
Doat_file_assistant_test.cc131 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F() local
132 ASSERT_TRUE(oat_file.get() != nullptr); in TEST_F()
133 EXPECT_TRUE(oat_file->IsExecutable()); in TEST_F()
135 dex_files = oat_file_assistant.LoadDexFiles(*oat_file, dex_location.c_str()); in TEST_F()
160 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F() local
161 EXPECT_NE(nullptr, oat_file.get()); in TEST_F()
163 oat_file->GetOatHeader().GetStoreValueByKey(OatHeader::kClassPathKey)); in TEST_F()
235 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F() local
236 EXPECT_EQ(nullptr, oat_file.get()); in TEST_F()
627 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F() local
[all …]
Dclass_table.cc234 const OatFile* oat_file = dex_file->GetOatDexFile()->GetOatFile(); in InsertStrongRoot() local
235 if (oat_file != nullptr && !oat_file->GetBssGcRoots().empty()) { in InsertStrongRoot()
236 InsertOatFileLocked(oat_file); // Ignore return value. in InsertStrongRoot()
243 bool ClassTable::InsertOatFile(const OatFile* oat_file) { in InsertOatFile() argument
245 return InsertOatFileLocked(oat_file); in InsertOatFile()
248 bool ClassTable::InsertOatFileLocked(const OatFile* oat_file) { in InsertOatFileLocked() argument
249 if (ContainsElement(oat_files_, oat_file)) { in InsertOatFileLocked()
252 oat_files_.push_back(oat_file); in InsertOatFileLocked()
Doat_file_assistant.cc259 const OatFile &oat_file, const char *dex_location) { in LoadDexFiles() argument
261 if (LoadDexFiles(oat_file, dex_location, &dex_files)) { in LoadDexFiles()
269 const OatFile &oat_file, in LoadDexFiles() argument
274 const OatDexFile* oat_dex_file = oat_file.GetOatDexFile( in LoadDexFiles()
291 oat_dex_file = oat_file.GetOatDexFile(multidex_dex_location.c_str(), nullptr); in LoadDexFiles()
602 bool OatFileAssistant::ValidateBootClassPathChecksums(const OatFile& oat_file) { in ValidateBootClassPathChecksums() argument
605 oat_file.GetOatHeader().GetStoreValueByKey(OatHeader::kBootClassPathKey); in ValidateBootClassPathChecksums()
636 oat_file.GetOatHeader().GetStoreValueByKey(OatHeader::kBootClassPathChecksumsKey); in ValidateBootClassPathChecksums()
719 std::unique_ptr<gc::space::ImageSpace> OatFileAssistant::OpenImageSpace(const OatFile* oat_file) { in OpenImageSpace() argument
720 DCHECK(oat_file != nullptr); in OpenImageSpace()
[all …]
Dclass_table-inl.h40 for (const OatFile* oat_file : oat_files_) { in VisitRoots() local
41 for (GcRoot<mirror::Object>& root : oat_file->GetBssGcRoots()) { in VisitRoots()
58 for (const OatFile* oat_file : oat_files_) { in VisitRoots() local
59 for (GcRoot<mirror::Object>& root : oat_file->GetBssGcRoots()) { in VisitRoots()
Doat_file_assistant.h183 static std::unique_ptr<gc::space::ImageSpace> OpenImageSpace(const OatFile* oat_file);
194 const OatFile& oat_file, const char* dex_location);
199 static bool LoadDexFiles(const OatFile& oat_file,
404 bool ValidateBootClassPathChecksums(const OatFile& oat_file);
Doat_file_manager.h55 const OatFile* RegisterOatFile(std::unique_ptr<const OatFile> oat_file)
58 void UnRegisterAndDeleteOatFile(const OatFile* oat_file)
168 CheckCollisionResult CheckCollision(const OatFile* oat_file,
Doat_file.cc392 inline static bool ReadOatDexFileData(const OatFile& oat_file, in ReadOatDexFileData() argument
397 DCHECK_LE(*oat, oat_file.End()); in ReadOatDexFileData()
398 if (UNLIKELY(static_cast<size_t>(oat_file.End() - *oat) < sizeof(T))) { in ReadOatDexFileData()
408 static bool ReadIndexBssMapping(OatFile* oat_file, in ReadIndexBssMapping() argument
416 if (UNLIKELY(!ReadOatDexFileData(*oat_file, oat, &index_bss_mapping_offset))) { in ReadIndexBssMapping()
419 oat_file->GetLocation().c_str(), in ReadIndexBssMapping()
427 index_bss_mapping_offset <= oat_file->Size() && in ReadIndexBssMapping()
429 oat_file->Size() - index_bss_mapping_offset >= IndexBssMapping::ComputeSize(0); in ReadIndexBssMapping()
431 ? reinterpret_cast<const IndexBssMapping*>(oat_file->Begin() + index_bss_mapping_offset) in ReadIndexBssMapping()
436 UNLIKELY(oat_file->Size() - index_bss_mapping_offset < in ReadIndexBssMapping()
[all …]
Doat_file.h248 OatClass(const OatFile* oat_file,
555 OatDexFile(const OatFile* oat_file,
569 OatDexFile(const OatFile* oat_file,
Dclass_table.h237 bool InsertOatFile(const OatFile* oat_file)
282 bool InsertOatFileLocked(const OatFile* oat_file)
Dclass_loader_context.cc93 for (std::unique_ptr<OatFile>& oat_file : info->opened_oat_files) { in ~ClassLoaderContext()
94 oat_file.release(); // NOLINT b/117926937 in ~ClassLoaderContext()
470 std::unique_ptr<OatFile> oat_file(oat_file_assistant.GetBestOatFile()); in OpenDexFiles() local
472 if (oat_file != nullptr && in OpenDexFiles()
473 OatFileAssistant::LoadDexFiles(*oat_file, location, &oat_dex_files)) { in OpenDexFiles()
474 info->opened_oat_files.push_back(std::move(oat_file)); in OpenDexFiles()
/art/runtime/native/
Ddalvik_system_DexFile.cc63 /*out*/ const OatFile*& oat_file) { in ConvertJavaArrayToDexFiles() argument
79 oat_file = reinterpret_cast64<const OatFile*>(long_data[kOatFileIndex]); in ConvertJavaArrayToDexFiles()
90 const OatFile* oat_file, in ConvertDexFilesToJavaArray() argument
104 long_data[kOatFileIndex] = reinterpret_cast64<jlong>(oat_file); in ConvertDexFilesToJavaArray()
171 const OatFile* oat_file, in CreateCookieFromOatFileManagerResult() argument
187 jlongArray array = ConvertDexFilesToJavaArray(env, oat_file, dex_files); in CreateCookieFromOatFileManagerResult()
293 const OatFile* oat_file = nullptr; in DexFile_openInMemoryDexFilesNative() local
298 /*out*/ &oat_file, in DexFile_openInMemoryDexFilesNative()
300 return CreateCookieFromOatFileManagerResult(env, dex_files, oat_file, error_msgs); in DexFile_openInMemoryDexFilesNative()
317 const OatFile* oat_file = nullptr; in DexFile_openDexFileNative() local
[all …]
/art/runtime/entrypoints/quick/
Dquick_dexcache_entrypoints.cc36 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/dex2oat/linker/
Doat_writer_test.cc102 File* oat_file, in WriteElf() argument
123 vdex_file, oat_file, oat_writer, key_value_store, verify, CopyOption::kOnlyIfCompressed); in WriteElf()
127 File* oat_file, in WriteElf() argument
144 return DoWriteElf(vdex_file, oat_file, oat_writer, key_value_store, verify, copy); in WriteElf()
148 File* oat_file, in WriteElf() argument
163 return DoWriteElf(vdex_file, oat_file, oat_writer, key_value_store, verify, copy); in WriteElf()
167 File* oat_file, in DoWriteElf() argument
174 oat_file); in DoWriteElf()
410 std::unique_ptr<OatFile> oat_file(OatFile::Open(/*zip_fd=*/ -1, in TEST_F() local
418 ASSERT_TRUE(oat_file.get() != nullptr) << error_msg; in TEST_F()
[all …]
Dimage_test.h127 for (ScratchFile& oat_file : oat_files) { in ~CompilationHelper()
128 oat_file.Unlink(); in ~CompilationHelper()
234 for (ScratchFile& oat_file : out_helper.oat_files) { in DoCompile()
235 elf_writers.emplace_back(CreateElfWriterQuick(*compiler_options_, oat_file.GetFile())); in DoCompile()
352 std::unique_ptr<File> oat_file(OS::OpenFileReadWrite(oat_filename)); in DoCompile()
353 ASSERT_TRUE(oat_file != nullptr); in DoCompile()
354 bool success_fixup = ElfWriter::Fixup(oat_file.get(), writer->GetOatDataBegin(i)); in DoCompile()
356 ASSERT_EQ(oat_file->FlushCloseOrErase(), 0) << "Could not flush and close oat file " in DoCompile()
/art/openjdkjvmti/
Dfixed_up_dex_file.cc59 const art::OatFile* oat_file = oat_dex->GetOatFile(); in GetVdex() local
60 if (oat_file == nullptr) { in GetVdex()
63 return oat_file->GetVdexFile(); in GetVdex()
/art/runtime/gc/space/
Dimage_space.h62 const OatFile* oat_file,
163 static bool ValidateOatFile(const OatFile& oat_file, std::string* error_msg);
188 const OatFile* oat_file,
Dimage_space.cc678 const OatFile* oat_file, in InitAppImage() argument
686 oat_file, in InitAppImage()
706 oat_file, in InitAppImage()
712 oat_file, in InitAppImage()
748 const OatFile* oat_file, in Init() argument
787 if (oat_file != nullptr) { in Init()
790 const uint32_t oat_checksum = oat_file->GetOatHeader().GetChecksum(); in Init()
890 space->oat_file_non_owned_ = oat_file; in Init()
1793 std::unique_ptr<OatFile> oat_file; in OpenOatFile() local
1801 oat_file.reset(OatFile::Open(/*zip_fd=*/ -1, in OpenOatFile()
[all …]
/art/oatdump/
Doatdump.cc137 OatSymbolizer(const OatFile* oat_file, const std::string& output_name, bool no_bits) : in OatSymbolizer() argument
138 oat_file_(oat_file), in OatSymbolizer()
385 OatDumper(const OatFile& oat_file, const OatDumperOptions& options) in OatDumper() argument
386 : oat_file_(oat_file), in OatDumper()
387 oat_dex_files_(oat_file.GetOatDexFiles()), in OatDumper()
394 oat_file.Begin(), in OatDumper()
395 oat_file.End(), in OatDumper()
1886 const OatFile* oat_file = image_space_.GetOatFile(); in Dump() local
1887 if (oat_file == nullptr) { in Dump()
1888 oat_file = runtime->GetOatFileManager().FindOpenedOatFileFromOatLocation(oat_location); in Dump()
[all …]
/art/dex2oat/
Ddex2oat_image_test.cc130 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()
Ddex2oat.cc709 for (std::unique_ptr<File>& oat_file : oat_files_) { in ~Dex2Oat()
710 oat_file.release(); // NOLINT in ~Dex2Oat()
1261 std::unique_ptr<File> oat_file(OS::CreateEmptyFile(oat_filename.c_str())); in OpenFile() local
1262 if (oat_file == nullptr) { in OpenFile()
1266 if (fchmod(oat_file->Fd(), 0644) != 0) { in OpenFile()
1268 oat_file->Erase(); in OpenFile()
1271 oat_files_.push_back(std::move(oat_file)); in OpenFile()
1305 std::unique_ptr<File> oat_file( in OpenFile() local
1307 if (!oat_file->IsOpened()) { in OpenFile()
1311 if (oat_file->SetLength(0) != 0) { in OpenFile()
[all …]
Ddex2oat_test.cc78 std::unique_ptr<File> oat_file; local
85 oat_file.reset(OS::CreateEmptyFile(odex_location.c_str()));
86 CHECK(oat_file != nullptr) << odex_location;
87 args.push_back("--oat-fd=" + std::to_string(oat_file->Fd()));
103 if (oat_file != nullptr) {
104 CHECK_EQ(oat_file->FlushClose(), 0) << "Could not flush and close oat file";
1076 auto check_oat = [expected_classpath_key](const OatFile& oat_file) { in RunTest() argument
1078 const char* classpath = oat_file.GetOatHeader().GetStoreValueByKey(OatHeader::kClassPathKey); in RunTest()
1164 std::unique_ptr<OatFile> oat_file(oat_file_assistant.GetBestOatFile()); in TEST_F() local
1166 OatFileAssistant::LoadDexFiles(*oat_file, stripped_classpath.c_str()); in TEST_F()
[all …]
/art/runtime/gc/collector/
Dimmune_spaces_test.cc45 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
132 std::move(oat_file), in CreateImageSpace()
/art/test/common/
Druntime_state.cc103 const OatFile* oat_file = oat_dex_file->GetOatFile(); in Java_Main_compiledWithOptimizing() local
104 CHECK(oat_file != nullptr); in Java_Main_compiledWithOptimizing()
106 const char* cmd_line = oat_file->GetOatHeader().GetStoreValueByKey(OatHeader::kDex2OatCmdLineKey); in Java_Main_compiledWithOptimizing()
/art/runtime/jit/
Dprofile_saver.cc666 const OatFile* oat_file = oat_manager.FindOpenedOatFileFromDexLocation(location); in ShouldProfileLocation() local
667 if (oat_file == nullptr) { in ShouldProfileLocation()
674 CompilerFilter::Filter filter = oat_file->GetCompilerFilter(); in ShouldProfileLocation()
678 << location << " oat location: " << oat_file->GetLocation(); in ShouldProfileLocation()

12