summaryrefslogtreecommitdiff
path: root/patchoat/patchoat.h
diff options
context:
space:
mode:
author Mathieu Chartier <mathieuc@google.com> 2015-12-02 15:44:07 -0800
committer Mathieu Chartier <mathieuc@google.com> 2015-12-03 16:29:03 -0800
commit208a5cb383dd9dcd3461f89b74af5df67dc8d794 (patch)
tree9ed531a445d24a7685e577b1c5822e50dc1c1b1d /patchoat/patchoat.h
parent5337bbfbd1cd502bb2842698a6b2a543ab6a6c32 (diff)
Store class tables in the image
Reduces how long it takes to load an application image. N5 boot.art size Before: 8007680 After: 8122368 Also reduces boot time by how long AddImageClassesToClassTable used to take (~20ms). Changed class hashes to be uint32_t to fix cross compilation. We need serialized hash tables to be valid with different pointer sizes. Bug: 22858531 Change-Id: I463fc83f499ff75f509e80c253a55b9116ee5b89
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 09150144ec..38bd865b22 100644
--- a/patchoat/patchoat.h
+++ b/patchoat/patchoat.h
@@ -116,6 +116,8 @@ class PatchOat {
void PatchArtMethods(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)
+ SHARED_REQUIRES(Locks::mutator_lock_);
void PatchDexFileArrays(mirror::ObjectArray<mirror::Object>* img_roots)
SHARED_REQUIRES(Locks::mutator_lock_);