Lines Matching refs:ImageSpace

76 Atomic<uint32_t> ImageSpace::bitmap_index_(0);
78 ImageSpace::ImageSpace(const std::string& image_filename, in ImageSpace() function in art::gc::space::ImageSpace
135 bool ImageSpace::FindImageFilename(const char* image_location, in FindImageFilename()
181 void ImageSpace::VerifyImageAllocations() { in VerifyImageAllocations()
259 class ImageSpace::PatchObjectVisitor final {
427 class ImageSpace::ClassTableVisitor final {
442 class ImageSpace::RemapInternedStringsVisitor {
491 class ImageSpace::Loader {
493 static std::unique_ptr<ImageSpace> InitAppImage(const char* image_filename, in InitAppImage()
496 ArrayRef<ImageSpace* const> boot_image_spaces, in InitAppImage()
501 std::unique_ptr<ImageSpace> space = Init(image_filename, in InitAppImage()
565 ArrayRef<ImageSpace* const> old_spaces = in InitAppImage()
590 static std::unique_ptr<ImageSpace> Init(const char* image_filename, in Init()
618 static std::unique_ptr<ImageSpace> Init(File* file, in Init()
709 const uint32_t bitmap_index = ImageSpace::bitmap_index_.fetch_add(1); in Init()
732 std::unique_ptr<ImageSpace> space(new ImageSpace(image_filename, in Init()
741 static bool CheckImageComponentCount(const ImageSpace& space, in CheckImageComponentCount()
755 static bool CheckImageReservationSize(const ImageSpace& space, in CheckImageReservationSize()
772 /*inout*/ImageSpace* new_space, in RemoveInternTableDuplicates()
795 ImageSpace* new_space) REQUIRES_SHARED(Locks::mutator_lock_) { in RemapInternedStringDuplicates()
843 ArrayRef<ImageSpace* const> boot_image_spaces, in ValidateBootImageChecksum()
849 size_t expected_image_component_count = ImageSpace::GetNumberOfComponents(boot_image_spaces); in ValidateBootImageChecksum()
1365 static_assert(ImageSpace::kImageChecksumPrefix == 'i', "Format prefix check."); in AppendImageChecksum()
1387 class ImageSpace::BootImageLayout {
1541 std::string ImageSpace::BootImageLayout::GetPrimaryImageLocation() { in GetPrimaryImageLocation()
1564 bool ImageSpace::BootImageLayout::VerifyImageLocation( in VerifyImageLocation()
1652 bool ImageSpace::BootImageLayout::MatchNamedComponents( in MatchNamedComponents()
1722 bool ImageSpace::BootImageLayout::ValidateBootImageChecksum(const char* file_description, in ValidateBootImageChecksum()
1781 bool ImageSpace::BootImageLayout::ValidateHeader(const ImageHeader& header, in ValidateHeader()
1814 bool ImageSpace::BootImageLayout::ReadHeader(const std::string& base_location, in ReadHeader()
1852 bool ImageSpace::BootImageLayout::CompileExtension(const std::string& base_location, in CompileExtension()
2040 bool ImageSpace::BootImageLayout::CheckAndRemoveLastChunkChecksum( in CheckAndRemoveLastChunkChecksum()
2074 bool ImageSpace::BootImageLayout::LoadOrValidate(FilenameFn&& filename_fn, in LoadOrValidate()
2080 static_assert(ImageSpace::kImageChecksumPrefix == 'i', "Format prefix check."); in LoadOrValidate()
2216 bool ImageSpace::BootImageLayout::LoadOrValidateFromSystem(InstructionSet image_isa, in LoadOrValidateFromSystem()
2228 class ImageSpace::BootImageLoader {
2259 /*out*/std::vector<std::unique_ptr<ImageSpace>>* boot_image_spaces,
2269 /*out*/std::vector<std::unique_ptr<ImageSpace>>* boot_image_spaces, in LoadImage()
2297 std::vector<std::unique_ptr<ImageSpace>> spaces; in LoadImage()
2365 DeduplicateInternedStrings(ArrayRef<const std::unique_ptr<ImageSpace>>(spaces), logger); in LoadImage()
2460 static void DoRelocateSpaces(ArrayRef<const std::unique_ptr<ImageSpace>>& spaces, in DoRelocateSpaces()
2489 static void DoRelocateSpaces(ArrayRef<const std::unique_ptr<ImageSpace>> spaces, in DoRelocateSpaces()
2565 for (const std::unique_ptr<ImageSpace>& space : spaces) { in DoRelocateSpaces()
2650 for (const std::unique_ptr<ImageSpace>& space : spaces) { in DoRelocateSpaces()
2685 void MaybeRelocateSpaces(const std::vector<std::unique_ptr<ImageSpace>>& spaces, in MaybeRelocateSpaces()
2689 ImageSpace* first_space = spaces.front().get(); in MaybeRelocateSpaces()
2698 ArrayRef<const std::unique_ptr<ImageSpace>> spaces_ref(spaces); in MaybeRelocateSpaces()
2707 void DeduplicateInternedStrings(ArrayRef<const std::unique_ptr<ImageSpace>> spaces, in DeduplicateInternedStrings()
2737 ArrayRef<const std::unique_ptr<ImageSpace>> old_spaces = in DeduplicateInternedStrings()
2741 ImageSpace* new_space = spaces[space_pos + i].get(); in DeduplicateInternedStrings()
2747 ImageSpace* new_space = spaces[space_pos + i].get(); in DeduplicateInternedStrings()
2757 std::unique_ptr<ImageSpace> Load(const std::string& image_location, in Load()
2772 std::unique_ptr<ImageSpace> result = Loader::Init(&image_file, in Load()
2810 bool OpenOatFile(ImageSpace* space, in OpenOatFile()
2815 ArrayRef<const std::unique_ptr<ImageSpace>> dependencies, in OpenOatFile()
2935 if (!ImageSpace::ValidateOatFile(*oat_file, error_msg)) { in OpenOatFile()
2949 /*inout*/std::vector<std::unique_ptr<ImageSpace>>* spaces, in LoadComponents()
2957 explicit Guard(std::vector<std::unique_ptr<ImageSpace>>* spaces_in) in LoadComponents()
2968 std::vector<std::unique_ptr<ImageSpace>>* const spaces_; in LoadComponents()
2999 const ImageSpace* space = spaces->back().get(); in LoadComponents()
3036 ArrayRef<const std::unique_ptr<ImageSpace>> dependencies = in LoadComponents()
3037 ArrayRef<const std::unique_ptr<ImageSpace>>(*spaces).SubArray( in LoadComponents()
3040 ImageSpace* space = (*spaces)[spaces->size() - chunk.image_space_count + i].get(); in LoadComponents()
3111 bool ImageSpace::BootImageLoader::LoadFromSystem( in LoadFromSystem()
3113 /*out*/std::vector<std::unique_ptr<ImageSpace>>* boot_image_spaces, in LoadFromSystem()
3141 bool ImageSpace::IsBootClassPathOnDisk(InstructionSet image_isa) { in IsBootClassPathOnDisk()
3164 bool ImageSpace::LoadBootImage( in LoadBootImage()
3172 /*out*/std::vector<std::unique_ptr<ImageSpace>>* boot_image_spaces, in LoadBootImage()
3225 ImageSpace::~ImageSpace() { in ~ImageSpace()
3229 std::unique_ptr<ImageSpace> ImageSpace::CreateFromAppImage(const char* image, in CreateFromAppImage()
3233 const std::vector<ImageSpace*>& boot_image_spaces = in CreateFromAppImage()
3237 ArrayRef<ImageSpace* const>(boot_image_spaces), in CreateFromAppImage()
3241 std::unique_ptr<ImageSpace> ImageSpace::CreateFromAppImage( in CreateFromAppImage()
3244 ArrayRef<ImageSpace* const> boot_image_spaces, in CreateFromAppImage()
3253 const OatFile* ImageSpace::GetOatFile() const { in GetOatFile()
3257 std::unique_ptr<const OatFile> ImageSpace::ReleaseOatFile() { in ReleaseOatFile()
3262 void ImageSpace::Dump(std::ostream& os) const { in Dump()
3270 bool ImageSpace::ValidateOatFile(const OatFile& oat_file, std::string* error_msg) { in ValidateOatFile()
3332 std::string ImageSpace::GetBootClassPathChecksums( in GetBootClassPathChecksums()
3333 ArrayRef<ImageSpace* const> image_spaces, in GetBootClassPathChecksums()
3340 const ImageSpace* main_space = image_spaces[image_pos]; in GetBootClassPathChecksums()
3355 const ImageSpace* space = image_spaces[image_pos + space_index]; in GetBootClassPathChecksums()
3387 size_t ImageSpace::GetNumberOfComponents(ArrayRef<ImageSpace* const> image_spaces) { in GetNumberOfComponents()
3427 bool ImageSpace::VerifyBootClassPathChecksums(std::string_view oat_checksums, in VerifyBootClassPathChecksums()
3474 static_assert(ImageSpace::kDexFileChecksumPrefix == 'd', "Format prefix check."); in VerifyBootClassPathChecksums()
3520 bool ImageSpace::VerifyBootClassPathChecksums( in VerifyBootClassPathChecksums()
3523 ArrayRef<const std::unique_ptr<ImageSpace>> image_spaces, in VerifyBootClassPathChecksums()
3612 std::vector<std::string> ImageSpace::ExpandMultiImageLocations( in ExpandMultiImageLocations()
3668 void ImageSpace::DumpSections(std::ostream& os) const { in DumpSections()
3679 void ImageSpace::ReleaseMetadata() { in ReleaseMetadata()