ART: Clean up CreateImageSections() comment.
And reorder ImageHeader section getters.
Test: Rely on TreeHugger.
Bug: 77856493
Change-Id: Ifebb12d454065d0b4686bb48262f93e3958d36f0
diff --git a/dex2oat/linker/image_writer.h b/dex2oat/linker/image_writer.h
index 6f43527..7bdaebe 100644
--- a/dex2oat/linker/image_writer.h
+++ b/dex2oat/linker/image_writer.h
@@ -287,9 +287,8 @@
/*
* Creates ImageSection objects that describe most of the sections of a
- * boot or AppImage. The following sections are not included:
+ * boot or AppImage. The following sections are not included:
* - ImageHeader::kSectionImageBitmap
- * - ImageHeader::kSectionStringReferenceOffsets
*
* In addition, the ImageHeader is not covered here.
*
diff --git a/runtime/image.h b/runtime/image.h
index 0496650..bd903da 100644
--- a/runtime/image.h
+++ b/runtime/image.h
@@ -289,14 +289,14 @@
return GetImageSection(kSectionClassTable);
}
- const ImageSection& GetImageBitmapSection() const {
- return GetImageSection(kSectionImageBitmap);
- }
-
const ImageSection& GetImageStringReferenceOffsetsSection() const {
return GetImageSection(kSectionStringReferenceOffsets);
}
+ const ImageSection& GetImageBitmapSection() const {
+ return GetImageSection(kSectionImageBitmap);
+ }
+
template <ReadBarrierOption kReadBarrierOption = kWithReadBarrier>
ObjPtr<mirror::Object> GetImageRoot(ImageRoot image_root) const
REQUIRES_SHARED(Locks::mutator_lock_);