diff options
author | Mathieu Chartier <mathieuc@google.com> | 2015-12-04 15:07:48 -0800 |
---|---|---|
committer | Mathieu Chartier <mathieuc@google.com> | 2015-12-04 15:19:10 -0800 |
commit | 41dc8cef5d1f86e3ade30b8aaf20d29d8d0c712b (patch) | |
tree | 000d84e9b7d321b86349da577f744977ecf191d6 /patchoat | |
parent | bf0e73604f836e3b8f7d6481e83110c3426350b6 (diff) | |
download | art-41dc8cef5d1f86e3ade30b8aaf20d29d8d0c712b.tar.gz art-41dc8cef5d1f86e3ade30b8aaf20d29d8d0c712b.tar.bz2 art-41dc8cef5d1f86e3ade30b8aaf20d29d8d0c712b.zip |
Combine class sets when writing a class table
Reduces the boot.art size since we allocate a new class set with the
default load factor. The load factor in the combined class table is
higher to pruning classes, this reduces the size of the boot image.
Also fixes the hypothetical case where the class table being written
has multiple class sets.
Boot.art size
Before: 8122368
After: 8044544
Slight cleanup in patchoat.cc.
Bug: 22858531
Change-Id: I31b3ea2004ece6f6c853ee906074bb2792dee958
Diffstat (limited to 'patchoat')
-rw-r--r-- | patchoat/patchoat.cc | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/patchoat/patchoat.cc b/patchoat/patchoat.cc index 7d2d89905a..723bb1762d 100644 --- a/patchoat/patchoat.cc +++ b/patchoat/patchoat.cc @@ -528,7 +528,6 @@ void PatchOat::PatchInternedStrings(const ImageHeader* image_header) { void PatchOat::PatchClassTable(const ImageHeader* image_header) { const auto& section = image_header->GetImageSection(ImageHeader::kSectionClassTable); - // ClassTable temp_table; // Note that we require that ReadFromMemory does not make an internal copy of the elements. // This also relies on visit roots not doing any verification which could fail after we update // the roots to be the image addresses. |