Lines Matching refs:ImageSpace
77 Atomic<uint32_t> ImageSpace::bitmap_index_(0);
79 ImageSpace::ImageSpace(const std::string& image_filename, in ImageSpace() function in art::gc::space::ImageSpace
255 bool ImageSpace::FindImageFilename(const char* image_location, in FindImageFilename()
340 void ImageSpace::VerifyImageAllocations() { in VerifyImageAllocations()
418 class ImageSpace::PatchObjectVisitor final {
663 class ImageSpace::ClassTableVisitor final {
678 class ImageSpace::RemapInternedStringsVisitor {
727 class ImageSpace::Loader {
729 static std::unique_ptr<ImageSpace> InitAppImage(const char* image_filename, in InitAppImage()
732 ArrayRef<ImageSpace* const> boot_image_spaces, in InitAppImage()
737 std::unique_ptr<ImageSpace> space = Init(image_filename, in InitAppImage()
801 ArrayRef<ImageSpace* const> old_spaces = in InitAppImage()
826 static std::unique_ptr<ImageSpace> Init(const char* image_filename, in Init()
854 static std::unique_ptr<ImageSpace> Init(File* file, in Init()
945 const uint32_t bitmap_index = ImageSpace::bitmap_index_.fetch_add(1); in Init()
968 std::unique_ptr<ImageSpace> space(new ImageSpace(image_filename, in Init()
977 static bool CheckImageComponentCount(const ImageSpace& space, in CheckImageComponentCount()
991 static bool CheckImageReservationSize(const ImageSpace& space, in CheckImageReservationSize()
1008 /*inout*/ImageSpace* new_space, in RemoveInternTableDuplicates()
1031 ImageSpace* new_space) REQUIRES_SHARED(Locks::mutator_lock_) { in RemapInternedStringDuplicates()
1079 ArrayRef<ImageSpace* const> boot_image_spaces, in ValidateBootImageChecksum()
1598 static_assert(ImageSpace::kImageChecksumPrefix == 'i', "Format prefix check."); in AppendImageChecksum()
1620 class ImageSpace::BootImageLayout {
1789 std::string ImageSpace::BootImageLayout::GetPrimaryImageLocation() { in GetPrimaryImageLocation()
1812 bool ImageSpace::BootImageLayout::VerifyImageLocation( in VerifyImageLocation()
1900 bool ImageSpace::BootImageLayout::MatchNamedComponents( in MatchNamedComponents()
1970 bool ImageSpace::BootImageLayout::ValidateBootImageChecksum(const char* file_description, in ValidateBootImageChecksum()
2029 bool ImageSpace::BootImageLayout::ValidateHeader(const ImageHeader& header, in ValidateHeader()
2062 bool ImageSpace::BootImageLayout::ReadHeader(const std::string& base_location, in ReadHeader()
2100 bool ImageSpace::BootImageLayout::CompileExtension(const std::string& base_location, in CompileExtension()
2288 bool ImageSpace::BootImageLayout::CheckAndRemoveLastChunkChecksum( in CheckAndRemoveLastChunkChecksum()
2322 bool ImageSpace::BootImageLayout::LoadOrValidate(FilenameFn&& filename_fn, in LoadOrValidate()
2328 static_assert(ImageSpace::kImageChecksumPrefix == 'i', "Format prefix check."); in LoadOrValidate()
2464 bool ImageSpace::BootImageLayout::LoadOrValidateFromSystem(InstructionSet image_isa, in LoadOrValidateFromSystem()
2476 bool ImageSpace::BootImageLayout::LoadOrValidateFromDalvikCache( in LoadOrValidateFromDalvikCache()
2488 class ImageSpace::BootImageLoader {
2547 /*out*/std::vector<std::unique_ptr<ImageSpace>>* boot_image_spaces,
2554 /*out*/std::vector<std::unique_ptr<ImageSpace>>* boot_image_spaces,
2564 /*out*/std::vector<std::unique_ptr<ImageSpace>>* boot_image_spaces, in LoadImage()
2592 std::vector<std::unique_ptr<ImageSpace>> spaces; in LoadImage()
2660 DeduplicateInternedStrings(ArrayRef<const std::unique_ptr<ImageSpace>>(spaces), logger); in LoadImage()
2755 static void DoRelocateSpaces(ArrayRef<const std::unique_ptr<ImageSpace>>& spaces, in DoRelocateSpaces()
2784 static void DoRelocateSpaces(ArrayRef<const std::unique_ptr<ImageSpace>> spaces, in DoRelocateSpaces()
2860 for (const std::unique_ptr<ImageSpace>& space : spaces) { in DoRelocateSpaces()
2943 for (const std::unique_ptr<ImageSpace>& space : spaces) { in DoRelocateSpaces()
2983 void MaybeRelocateSpaces(const std::vector<std::unique_ptr<ImageSpace>>& spaces, in MaybeRelocateSpaces()
2987 ImageSpace* first_space = spaces.front().get(); in MaybeRelocateSpaces()
2996 ArrayRef<const std::unique_ptr<ImageSpace>> spaces_ref(spaces); in MaybeRelocateSpaces()
3005 void DeduplicateInternedStrings(ArrayRef<const std::unique_ptr<ImageSpace>> spaces, in DeduplicateInternedStrings()
3035 ArrayRef<const std::unique_ptr<ImageSpace>> old_spaces = in DeduplicateInternedStrings()
3039 ImageSpace* new_space = spaces[space_pos + i].get(); in DeduplicateInternedStrings()
3045 ImageSpace* new_space = spaces[space_pos + i].get(); in DeduplicateInternedStrings()
3055 std::unique_ptr<ImageSpace> Load(const std::string& image_location, in Load()
3070 std::unique_ptr<ImageSpace> result = Loader::Init(&image_file, in Load()
3115 bool OpenOatFile(ImageSpace* space, in OpenOatFile()
3120 ArrayRef<const std::unique_ptr<ImageSpace>> dependencies, in OpenOatFile()
3240 if (!ImageSpace::ValidateOatFile(*oat_file, error_msg)) { in OpenOatFile()
3254 /*inout*/std::vector<std::unique_ptr<ImageSpace>>* spaces, in LoadComponents()
3262 explicit Guard(std::vector<std::unique_ptr<ImageSpace>>* spaces_in) in LoadComponents()
3273 std::vector<std::unique_ptr<ImageSpace>>* const spaces_; in LoadComponents()
3304 const ImageSpace* space = spaces->back().get(); in LoadComponents()
3341 ArrayRef<const std::unique_ptr<ImageSpace>> dependencies = in LoadComponents()
3342 ArrayRef<const std::unique_ptr<ImageSpace>>(*spaces).SubArray( in LoadComponents()
3345 ImageSpace* space = (*spaces)[spaces->size() - chunk.image_space_count + i].get(); in LoadComponents()
3422 bool ImageSpace::BootImageLoader::LoadFromSystem( in LoadFromSystem()
3425 /*out*/std::vector<std::unique_ptr<ImageSpace>>* boot_image_spaces, in LoadFromSystem()
3453 bool ImageSpace::BootImageLoader::LoadFromDalvikCache( in LoadFromDalvikCache()
3456 /*out*/std::vector<std::unique_ptr<ImageSpace>>* boot_image_spaces, in LoadFromDalvikCache()
3484 bool ImageSpace::IsBootClassPathOnDisk(InstructionSet image_isa) { in IsBootClassPathOnDisk()
3553 bool ImageSpace::LoadBootImage( in LoadBootImage()
3563 /*out*/std::vector<std::unique_ptr<ImageSpace>>* boot_image_spaces, in LoadBootImage()
3709 ImageSpace::~ImageSpace() { in ~ImageSpace()
3713 std::unique_ptr<ImageSpace> ImageSpace::CreateFromAppImage(const char* image, in CreateFromAppImage()
3717 const std::vector<ImageSpace*>& boot_image_spaces = in CreateFromAppImage()
3721 ArrayRef<ImageSpace* const>(boot_image_spaces), in CreateFromAppImage()
3725 std::unique_ptr<ImageSpace> ImageSpace::CreateFromAppImage( in CreateFromAppImage()
3728 ArrayRef<ImageSpace* const> boot_image_spaces, in CreateFromAppImage()
3737 const OatFile* ImageSpace::GetOatFile() const { in GetOatFile()
3741 std::unique_ptr<const OatFile> ImageSpace::ReleaseOatFile() { in ReleaseOatFile()
3746 void ImageSpace::Dump(std::ostream& os) const { in Dump()
3754 bool ImageSpace::ValidateOatFile(const OatFile& oat_file, std::string* error_msg) { in ValidateOatFile()
3814 std::string ImageSpace::GetBootClassPathChecksums( in GetBootClassPathChecksums()
3815 ArrayRef<ImageSpace* const> image_spaces, in GetBootClassPathChecksums()
3822 const ImageSpace* main_space = image_spaces[image_pos]; in GetBootClassPathChecksums()
3837 const ImageSpace* space = image_spaces[image_pos + space_index]; in GetBootClassPathChecksums()
3901 bool ImageSpace::VerifyBootClassPathChecksums(std::string_view oat_checksums, in VerifyBootClassPathChecksums()
3961 static_assert(ImageSpace::kDexFileChecksumPrefix == 'd', "Format prefix check."); in VerifyBootClassPathChecksums()
4008 bool ImageSpace::VerifyBootClassPathChecksums( in VerifyBootClassPathChecksums()
4011 ArrayRef<const std::unique_ptr<ImageSpace>> image_spaces, in VerifyBootClassPathChecksums()
4100 std::vector<std::string> ImageSpace::ExpandMultiImageLocations( in ExpandMultiImageLocations()
4156 void ImageSpace::DumpSections(std::ostream& os) const { in DumpSections()
4167 void ImageSpace::DisablePreResolvedStrings() { in DisablePreResolvedStrings()
4177 void ImageSpace::ReleaseMetadata() { in ReleaseMetadata()