Home
last modified time | relevance | path

Searched refs:oat_file (Results 1 – 25 of 35) 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.cc160 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F() local
161 ASSERT_TRUE(oat_file.get() != nullptr); in TEST_F()
162 EXPECT_TRUE(oat_file->IsExecutable()); in TEST_F()
164 dex_files = oat_file_assistant.LoadDexFiles(*oat_file, dex_location.c_str()); in TEST_F()
189 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F() local
190 EXPECT_NE(nullptr, oat_file.get()); in TEST_F()
192 oat_file->GetOatHeader().GetStoreValueByKey(OatHeader::kClassPathKey)); in TEST_F()
262 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F() local
263 EXPECT_EQ(nullptr, oat_file.get()); in TEST_F()
654 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F() local
[all …]
Dclass_table.cc236 const OatFile* oat_file = dex_file->GetOatDexFile()->GetOatFile(); in InsertStrongRoot() local
237 if (oat_file != nullptr && !oat_file->GetBssGcRoots().empty()) { in InsertStrongRoot()
238 InsertOatFileLocked(oat_file); // Ignore return value. in InsertStrongRoot()
245 bool ClassTable::InsertOatFile(const OatFile* oat_file) { in InsertOatFile() argument
247 return InsertOatFileLocked(oat_file); in InsertOatFile()
250 bool ClassTable::InsertOatFileLocked(const OatFile* oat_file) { in InsertOatFileLocked() argument
251 if (ContainsElement(oat_files_, oat_file)) { in InsertOatFileLocked()
254 oat_files_.push_back(oat_file); in InsertOatFileLocked()
Doat_file_assistant.cc253 const OatFile &oat_file, const char *dex_location) { in LoadDexFiles() argument
255 if (LoadDexFiles(oat_file, dex_location, &dex_files)) { in LoadDexFiles()
263 const OatFile &oat_file, in LoadDexFiles() argument
268 const OatDexFile* oat_dex_file = oat_file.GetOatDexFile( in LoadDexFiles()
285 oat_dex_file = oat_file.GetOatDexFile(multidex_dex_location.c_str(), nullptr); in LoadDexFiles()
599 bool OatFileAssistant::ValidateBootClassPathChecksums(const OatFile& oat_file) { in ValidateBootClassPathChecksums() argument
602 oat_file.GetOatHeader().GetStoreValueByKey(OatHeader::kBootClassPathChecksumsKey); in ValidateBootClassPathChecksums()
604 oat_file.GetOatHeader().GetStoreValueByKey(OatHeader::kBootClassPathKey); in ValidateBootClassPathChecksums()
627 VLOG(oat) << "Failed to verify checksums of oat file " << oat_file.GetLocation() in ValidateBootClassPathChecksums()
674 std::unique_ptr<gc::space::ImageSpace> OatFileAssistant::OpenImageSpace(const OatFile* oat_file) { in OpenImageSpace() argument
[all …]
Doat_file_assistant.h181 static std::unique_ptr<gc::space::ImageSpace> OpenImageSpace(const OatFile* oat_file);
192 const OatFile& oat_file, const char* dex_location);
197 static bool LoadDexFiles(const OatFile& oat_file,
399 bool ValidateBootClassPathChecksums(const OatFile& oat_file);
Dclass_table-inl.h41 for (const OatFile* oat_file : oat_files_) { in VisitRoots() local
42 for (GcRoot<mirror::Object>& root : oat_file->GetBssGcRoots()) { in VisitRoots()
59 for (const OatFile* oat_file : oat_files_) { in VisitRoots() local
60 for (GcRoot<mirror::Object>& root : oat_file->GetBssGcRoots()) { in VisitRoots()
Doat_file.cc406 inline static bool ReadOatDexFileData(const OatFile& oat_file, in ReadOatDexFileData() argument
411 DCHECK_LE(*oat, oat_file.End()); in ReadOatDexFileData()
412 if (UNLIKELY(static_cast<size_t>(oat_file.End() - *oat) < sizeof(T))) { in ReadOatDexFileData()
422 static bool ReadIndexBssMapping(OatFile* oat_file, in ReadIndexBssMapping() argument
430 if (UNLIKELY(!ReadOatDexFileData(*oat_file, oat, &index_bss_mapping_offset))) { in ReadIndexBssMapping()
433 oat_file->GetLocation().c_str(), in ReadIndexBssMapping()
441 index_bss_mapping_offset <= oat_file->Size() && in ReadIndexBssMapping()
443 oat_file->Size() - index_bss_mapping_offset >= IndexBssMapping::ComputeSize(0); in ReadIndexBssMapping()
445 ? reinterpret_cast<const IndexBssMapping*>(oat_file->Begin() + index_bss_mapping_offset) in ReadIndexBssMapping()
450 UNLIKELY(oat_file->Size() - index_bss_mapping_offset < in ReadIndexBssMapping()
[all …]
Doat_file_manager.h55 const OatFile* RegisterOatFile(std::unique_ptr<const OatFile> oat_file)
58 void UnRegisterAndDeleteOatFile(const OatFile* oat_file)
Doat_file.h278 OatClass(const OatFile* oat_file,
560 OatDexFile(const OatFile* oat_file,
574 OatDexFile(const OatFile* oat_file,
Dcommon_runtime_test.cc459 std::unique_ptr<File> oat_file; in CompileBootImage() local
463 oat_file.reset(OS::CreateEmptyFile((use_fd_prefix + ".oat").c_str())); in CompileBootImage()
466 argv.push_back("--oat-fd=" + std::to_string(oat_file->Fd())); in CompileBootImage()
490 if (oat_file != nullptr) { in CompileBootImage()
491 CHECK_EQ(0, oat_file->FlushClose()); in CompileBootImage()
Dclass_table.h237 bool InsertOatFile(const OatFile* oat_file)
282 bool InsertOatFileLocked(const OatFile* oat_file)
/art/runtime/native/
Ddalvik_system_DexFile.cc64 /*out*/ const OatFile*& oat_file) { in ConvertJavaArrayToDexFiles() argument
80 oat_file = reinterpret_cast64<const OatFile*>(long_data[kOatFileIndex]); in ConvertJavaArrayToDexFiles()
91 const OatFile* oat_file, in ConvertDexFilesToJavaArray() argument
105 long_data[kOatFileIndex] = reinterpret_cast64<jlong>(oat_file); in ConvertDexFilesToJavaArray()
172 const OatFile* oat_file, in CreateCookieFromOatFileManagerResult() argument
188 jlongArray array = ConvertDexFilesToJavaArray(env, oat_file, dex_files); in CreateCookieFromOatFileManagerResult()
294 const OatFile* oat_file = nullptr; in DexFile_openInMemoryDexFilesNative() local
299 /*out*/ &oat_file, in DexFile_openInMemoryDexFilesNative()
301 return CreateCookieFromOatFileManagerResult(env, dex_files, oat_file, error_msgs); in DexFile_openInMemoryDexFilesNative()
318 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()
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/
Doat_writer_test.cc103 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 …]
Dimage_test.h126 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()
349 std::unique_ptr<File> oat_file(OS::OpenFileReadWrite(oat_filename)); in DoCompile()
350 ASSERT_TRUE(oat_file != nullptr); in DoCompile()
351 bool success_fixup = ElfWriter::Fixup(oat_file.get(), writer->GetOatDataBegin(i)); in DoCompile()
353 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.h142 const OatFile* oat_file,
148 const OatFile* oat_file,
268 static bool ValidateOatFile(const OatFile& oat_file, std::string* error_msg);
293 const OatFile* oat_file,
Dimage_space.cc731 const OatFile* oat_file, in InitAppImage() argument
743 space->oat_file_non_owned_ = oat_file; in InitAppImage()
747 const uint32_t oat_checksum = oat_file->GetOatHeader().GetChecksum(); in InitAppImage()
759 oat_file, in InitAppImage()
783 oat_file, in InitAppImage()
789 oat_file, in InitAppImage()
1078 const OatFile* oat_file, in ValidateBootImageChecksum() argument
1133 oat_file->GetOatHeader().GetStoreValueByKey(OatHeader::kBootClassPathChecksumsKey); in ValidateBootImageChecksum()
3130 std::unique_ptr<OatFile> oat_file; in OpenOatFile() local
3140 oat_file.reset(OatFile::Open(/*zip_fd=*/ -1, in OpenOatFile()
[all …]
/art/tools/
Dart201 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/
Dentrypoint_utils.cc297 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/oatdump/
Doatdump.cc133 OatSymbolizer(const OatFile* oat_file, const std::string& output_name, bool no_bits) : in OatSymbolizer() argument
134 oat_file_(oat_file), in OatSymbolizer()
382 OatDumper(const OatFile& oat_file, const OatDumperOptions& options) in OatDumper() argument
383 : oat_file_(oat_file), in OatDumper()
384 oat_dex_files_(oat_file.GetOatDexFiles()), in OatDumper()
391 oat_file.Begin(), in OatDumper()
392 oat_file.End(), in OatDumper()
1889 const OatFile* oat_file = image_space_.GetOatFile(); in Dump() local
1890 if (oat_file == nullptr) { in Dump()
1891 oat_file = runtime->GetOatFileManager().FindOpenedOatFileFromOatLocation(oat_location); in Dump()
[all …]
/art/runtime/gc/collector/
Dimmune_spaces_test.cc45 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/
Ddex2oat.cc851 for (std::unique_ptr<File>& oat_file : oat_files_) { in ~Dex2Oat()
852 oat_file.release(); // NOLINT in ~Dex2Oat()
1468 std::unique_ptr<File> oat_file(OS::CreateEmptyFile(oat_filename.c_str())); in OpenFile() local
1469 if (oat_file == nullptr) { in OpenFile()
1473 if (fchmod(oat_file->Fd(), 0644) != 0) { in OpenFile()
1475 oat_file->Erase(); in OpenFile()
1478 oat_files_.push_back(std::move(oat_file)); in OpenFile()
1512 std::unique_ptr<File> oat_file( in OpenFile() local
1514 if (!oat_file->IsOpened()) { in OpenFile()
1518 if (oat_file->SetLength(0) != 0) { in OpenFile()
[all …]
Ddex2oat_test.cc79 std::unique_ptr<File> oat_file; local
86 oat_file.reset(OS::CreateEmptyFile(odex_location.c_str()));
87 CHECK(oat_file != nullptr) << odex_location;
88 args.push_back("--oat-fd=" + std::to_string(oat_file->Fd()));
104 if (oat_file != nullptr) {
105 CHECK_EQ(oat_file->FlushClose(), 0) << "Could not flush and close oat file";
1107 auto check_oat = [expected_classpath_key](const OatFile& oat_file) { in RunTest() argument
1109 const char* classpath = oat_file.GetOatHeader().GetStoreValueByKey(OatHeader::kClassPathKey); in RunTest()
1196 std::unique_ptr<OatFile> oat_file(oat_file_assistant.GetBestOatFile()); in TEST_F() local
1198 OatFileAssistant::LoadDexFiles(*oat_file, stripped_classpath.c_str()); in TEST_F()
[all …]
/art/test/common/
Druntime_state.cc125 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()

12