/art/runtime/ |
oat_file_manager.cc | 44 #include "oat_file.h" 59 const OatFile* OatFileManager::RegisterOatFile(std::unique_ptr<const OatFile> oat_file) { 62 LocationIsOnSystem(oat_file->GetLocation().c_str()) || 63 !oat_file->IsExecutable()) 64 << "Registering a non /system oat file: " << oat_file->GetLocation(); 65 DCHECK(oat_file != nullptr); 67 CHECK(oat_files_.find(oat_file) == oat_files_.end()); 69 CHECK_NE(oat_file.get(), existing.get()) << oat_file->GetLocation(); 72 CHECK_NE(oat_file->Begin(), existing->Begin()) << "Oat file already mapped at that location" [all...] |
oat_file_manager.h | 52 // with the same base address. Returns the oat file pointer from oat_file. 53 const OatFile* RegisterOatFile(std::unique_ptr<const OatFile> oat_file) 56 void UnRegisterAndDeleteOatFile(const OatFile* oat_file) 119 // Return true if there are any class definition collisions in the oat_file. 120 bool HasCollisions(const OatFile* oat_file,
|
oat_file_assistant_test.cc | 37 #include "oat_file.h" 154 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); local 155 EXPECT_EQ(nullptr, oat_file.get()); 520 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); local 521 ASSERT_TRUE(oat_file.get() != nullptr); 522 EXPECT_TRUE(oat_file->IsExecutable()); 524 dex_files = oat_file_assistant.LoadDexFiles(*oat_file, dex_location.c_str()); 610 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); local 611 ASSERT_TRUE(oat_file.get() != nullptr); 612 EXPECT_TRUE(oat_file->IsExecutable()) 777 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); local 805 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); local 845 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); local 922 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); local 975 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); local 1003 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); local 1032 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); local 1171 const OatFile* oat_file = nullptr; local 1227 const OatFile* oat_file = task->GetLoadedOatFile(); local 1247 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); local 1269 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); local 1368 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); local 1386 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); local 1413 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); local 1431 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); local 1451 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); local [all...] |
class_table-inl.h | 23 #include "oat_file.h" 38 for (const OatFile* oat_file : oat_files_) { 39 for (GcRoot<mirror::Object>& root : oat_file->GetBssGcRoots()) { 56 for (const OatFile* oat_file : oat_files_) { 57 for (GcRoot<mirror::Object>& root : oat_file->GetBssGcRoots()) {
|
class_table.cc | 21 #include "oat_file.h" 242 const OatFile* oat_file = dex_file->GetOatDexFile()->GetOatFile(); local 243 if (oat_file != nullptr && !oat_file->GetBssGcRoots().empty()) { 244 InsertOatFileLocked(oat_file); // Ignore return value. 251 bool ClassTable::InsertOatFile(const OatFile* oat_file) { 253 return InsertOatFileLocked(oat_file); 256 bool ClassTable::InsertOatFileLocked(const OatFile* oat_file) { 257 if (ContainsElement(oat_files_, oat_file)) { 260 oat_files_.push_back(oat_file); [all...] |
oat_file_assistant.cc | 342 const OatFile &oat_file, const char *dex_location) { 344 if (LoadDexFiles(oat_file, dex_location, &dex_files)) { 352 const OatFile &oat_file, 357 const OatFile::OatDexFile* oat_dex_file = oat_file.GetOatDexFile( 374 oat_dex_file = oat_file.GetOatDexFile(multidex_dex_location.c_str(), nullptr); 760 File* oat_file = oat_file_wrapper.GetFile(); local 761 if (oat_file == nullptr) { 767 if (fchmod(oat_file->Fd(), file_mode) != 0) { 776 args.push_back("--oat-fd=" + std::to_string(oat_file->Fd())); 793 if (oat_file->FlushCloseOrErase() != 0) 1322 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); local [all...] |
oat_file.cc | 17 #include "oat_file.h" 61 #include "oat_file-inl.h" 390 inline static bool ReadOatDexFileData(const OatFile& oat_file, 395 DCHECK_LE(*oat, oat_file.End()); 396 if (UNLIKELY(static_cast<size_t>(oat_file.End() - *oat) < sizeof(T))) { 437 static bool ReadIndexBssMapping(OatFile* oat_file, 445 if (UNLIKELY(!ReadOatDexFileData(*oat_file, oat, &index_bss_mapping_offset))) { 448 oat_file->GetLocation().c_str(), 456 index_bss_mapping_offset <= oat_file->Size() && 458 oat_file->Size() - index_bss_mapping_offset >= IndexBssMapping::ComputeSize(0) [all...] |
oat_file_assistant.h | 31 #include "oat_file.h" 244 static std::unique_ptr<gc::space::ImageSpace> OpenImageSpace(const OatFile* oat_file); 253 // dex_files will only remain valid as long as the oat_file is valid. 255 const OatFile& oat_file, const char* dex_location); 260 static bool LoadDexFiles(const OatFile& oat_file,
|
class_table.h | 237 bool InsertOatFile(const OatFile* oat_file) 282 bool InsertOatFileLocked(const OatFile* oat_file)
|
oat_file.h | 235 return OatClass(/* oat_file */ nullptr, 244 OatClass(const OatFile* oat_file, 378 // Was this oat_file loaded executable? 518 OatDexFile(const OatFile* oat_file,
|
class_loader_context.cc | 63 for (std::unique_ptr<OatFile>& oat_file : info.opened_oat_files) { 64 oat_file.release(); 233 std::unique_ptr<OatFile> oat_file(oat_file_assistant.GetBestOatFile()); 235 if (oat_file != nullptr && 236 OatFileAssistant::LoadDexFiles(*oat_file, location, &oat_dex_files)) { 237 info.opened_oat_files.push_back(std::move(oat_file)); [all...] |
/art/test/117-nopatchoat/ |
nopatchoat.cc | 22 #include "oat_file.h" 57 const OatFile* oat_file = oat_dex_file->GetOatFile(); local 58 return !oat_file->IsPic() 59 && CompilerFilter::IsAotCompilationEnabled(oat_file->GetCompilerFilter());
|
/art/runtime/entrypoints/quick/ |
quick_dexcache_entrypoints.cc | 30 #include "oat_file.h" 36 const OatFile* oat_file, 44 if (UNLIKELY(!oat_file->IsExecutable())) { 51 const_cast<uint8_t*>(oat_file->BssBegin() + bss_offset)); 52 DCHECK_GE(slot, oat_file->GetBssGcRoots().data()); 53 DCHECK_LT(slot, oat_file->GetBssGcRoots().data() + oat_file->GetBssGcRoots().size()); 62 CHECK(class_table != nullptr && !class_table->InsertOatFile(oat_file)) 64 << oat_file->GetLocation(); 69 runtime->GetClassLinker()->WriteBarrierForBootOatFileBssRoots(oat_file); [all...] |
/art/runtime/gc/space/ |
image_space.h | 52 const OatFile* oat_file, 143 static bool ValidateOatFile(const OatFile& oat_file, std::string* error_msg); 170 // OatFile in /data/dalvik-cache if necessary. If the oat_file is null, it uses the oat file from 175 const OatFile* oat_file,
|
image_space.cc | 50 #include "oat_file.h" 546 /* oat_file */nullptr, 553 const OatFile* oat_file, 590 if (oat_file != nullptr) { 593 const uint32_t oat_checksum = oat_file->GetOatHeader().GetChecksum(); 703 oat_file, 720 if (oat_file == nullptr) { 729 space->oat_file_non_owned_ = oat_file; 743 // If oat_file is null, then it is the boot image space. Use oat_file_non_owned_ from the space 745 CHECK_EQ(oat_file != nullptr, image_header->IsAppImage()) [all...] |
/art/runtime/native/ |
dalvik_system_DexFile.cc | 45 #include "oat_file.h" 61 /*out*/ const OatFile*& oat_file) { 77 oat_file = reinterpret_cast<const OatFile*>(static_cast<uintptr_t>(long_data[kOatFileIndex])); 88 const OatFile* oat_file, 102 long_data[kOatFileIndex] = reinterpret_cast<uintptr_t>(oat_file); 283 const OatFile* oat_file = nullptr; local 288 /*out*/ &oat_file, 292 jlongArray array = ConvertDexFilesToJavaArray(env, oat_file, dex_files); 319 const OatFile* oat_file; local 320 if (!ConvertJavaArrayToDexFiles(env, cookie, dex_files, oat_file)) { 368 const OatFile* oat_file; local 428 const OatFile* oat_file = nullptr; local 739 const OatFile* oat_file = nullptr; local 803 const OatFile* oat_file = nullptr; local 830 const OatFile* oat_file; local [all...] |
/art/openjdkjvmti/ |
fixed_up_dex_file.cc | 43 #include "oat_file.h" 71 const art::OatFile* oat_file = oat_dex->GetOatFile(); local 72 if (oat_file == nullptr) { 75 return oat_file->GetVdexFile();
|
/art/dex2oat/linker/ |
oat_writer_test.cc | 46 #include "oat_file-inl.h" 121 File* oat_file, 140 return DoWriteElf(vdex_file, oat_file, oat_writer, key_value_store, verify); 144 File* oat_file, 159 return DoWriteElf(vdex_file, oat_file, oat_writer, key_value_store, verify); 163 File* oat_file, 176 return DoWriteElf(vdex_file, oat_file, oat_writer, key_value_store, verify); 180 File* oat_file, 188 oat_file); 423 std::unique_ptr<OatFile> oat_file(OatFile::Open(/* zip_fd */ -1 869 ScratchFile oat_file, vdex_file(oat_file, ".vdex"); local [all...] |
image_test.h | 120 for (ScratchFile& oat_file : oat_files) { 121 oat_file.Unlink(); 243 for (ScratchFile& oat_file : oat_files) { 247 oat_file.GetFile())); 359 std::unique_ptr<File> oat_file(OS::OpenFileReadWrite(oat_filename)); 360 ASSERT_TRUE(oat_file != nullptr); 361 bool success_fixup = ElfWriter::Fixup(oat_file.get(), 364 ASSERT_EQ(oat_file->FlushCloseOrErase(), 0) << "Could not flush and close oat file "
|
/art/dex2oat/ |
dex2oat.cc | 93 #include "oat_file.h" 675 for (std::unique_ptr<File>& oat_file : oat_files_) { 676 oat_file.release(); 2136 std::unique_ptr<File>& oat_file = oat_files_[i]; local [all...] |
dex2oat_image_test.cc | 130 std::string oat_file = scratch.GetFilename() + ".oat"; local 133 int64_t oat_size = OS::GetFileSizeBytes(oat_file.c_str()); 136 CHECK_GT(oat_size, 0u) << oat_file;
|
dex2oat_test.cc | 43 #include "oat_file.h" 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"; [all...] |
/art/oatdump/ |
oatdump.cc | 72 #include "oat_file-inl.h" 127 OatSymbolizer(const OatFile* oat_file, const std::string& output_name, bool no_bits) : 128 oat_file_(oat_file), 389 OatDumper(const OatFile& oat_file, const OatDumperOptions& options) 390 : oat_file_(oat_file), 391 oat_dex_files_(oat_file.GetOatDexFiles()), 398 oat_file.Begin(), 399 oat_file.End(), 2078 const OatFile* oat_file = image_space_.GetOatFile(); local [all...] |
/art/test/common/ |
runtime_state.cc | 32 #include "oat_file.h" 108 const OatFile* oat_file = oat_dex_file->GetOatFile(); local 109 CHECK(oat_file != nullptr); 111 const char* cmd_line = oat_file->GetOatHeader().GetStoreValueByKey(OatHeader::kDex2OatCmdLineKey);
|
/art/runtime/gc/collector/ |
immune_spaces_test.cc | 23 #include "oat_file.h" 45 std::unique_ptr<DummyOatFile>&& oat_file, 53 oat_file_ = std::move(oat_file); 111 std::unique_ptr<DummyOatFile> oat_file(new DummyOatFile(oat_map->Begin(), oat_map->End())); 136 std::move(oat_file),
|