summaryrefslogtreecommitdiff
path: root/patchoat/patchoat.h
diff options
context:
space:
mode:
author Mathieu Chartier <mathieuc@google.com> 2016-04-14 10:49:19 -0700
committer Mathieu Chartier <mathieuc@google.com> 2016-04-27 12:45:30 -0700
commite42888f9df4163303244070c65d5229d3e201742 (patch)
treec3c3e380ed16676186040f1da6042fc2cd58e041 /patchoat/patchoat.h
parent7f98c9a6babe3a21d84ce1f1e1273c99975a47f5 (diff)
Write conflict tables in image
Add image sections for runtime methods and conflict tables. This makes it that we do not need to fake up a length prefixed array for runtime methods. Reduces .art private dirty and PSS. System wide .art PSS goes from 32.5MB to 30.5MB after system boot. Business card .art private dirty goes from 588K to 504K. Increases image size by ~100K. Bug: 27906566 (cherry picked from commit cda9386add68d94697449c6cb08b356747e55c21) Change-Id: I38cbe3150c3eeb385b8cad7cf93614e3980f4162
Diffstat (limited to 'patchoat/patchoat.h')
-rw-r--r--patchoat/patchoat.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/patchoat/patchoat.h b/patchoat/patchoat.h
index 510ff1e5be..3ef837fde9 100644
--- a/patchoat/patchoat.h
+++ b/patchoat/patchoat.h
@@ -117,6 +117,8 @@ class PatchOat {
bool PatchImage(bool primary_image) SHARED_REQUIRES(Locks::mutator_lock_);
void PatchArtFields(const ImageHeader* image_header) SHARED_REQUIRES(Locks::mutator_lock_);
void PatchArtMethods(const ImageHeader* image_header) SHARED_REQUIRES(Locks::mutator_lock_);
+ void PatchImtConflictTables(const ImageHeader* image_header)
+ SHARED_REQUIRES(Locks::mutator_lock_);
void PatchInternedStrings(const ImageHeader* image_header)
SHARED_REQUIRES(Locks::mutator_lock_);
void PatchClassTable(const ImageHeader* image_header)