diff options
author | Mathieu Chartier <mathieuc@google.com> | 2014-11-24 18:29:54 -0800 |
---|---|---|
committer | Mathieu Chartier <mathieuc@google.com> | 2014-11-25 16:02:04 -0800 |
commit | eace45873190a27302b3644c32ec82854b59d299 (patch) | |
tree | 73fbf327839263b6847bdc4359ac1dbea2b897e3 /compiler/image_writer.cc | |
parent | 8ac8d5556fae9c728bcebcc9036a1bbf40087c76 (diff) | |
download | art-eace45873190a27302b3644c32ec82854b59d299.tar.gz art-eace45873190a27302b3644c32ec82854b59d299.tar.bz2 art-eace45873190a27302b3644c32ec82854b59d299.zip |
Move dexCacheStrings from ArtMethod to Class
Adds one load for const strings which are not direct.
Saves >= 60KB of memory avg per app.
Image size: -350KB.
Bug: 17643507
Change-Id: I2d1a3253d9de09682be9bc6b420a29513d592cc8
(cherry picked from commit f521f423b66e952f746885dd9f6cf8ef2788955d)
Diffstat (limited to 'compiler/image_writer.cc')
-rw-r--r-- | compiler/image_writer.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/image_writer.cc b/compiler/image_writer.cc index 03899cc75..3b1d914f6 100644 --- a/compiler/image_writer.cc +++ b/compiler/image_writer.cc @@ -967,7 +967,7 @@ void ImageWriter::CopyAndFixupObjectsCallback(Object* obj, void* arg) { if (obj->IsArtMethod()) { // Size without pointer fields since we don't want to overrun the buffer if target art method // is 32 bits but source is 64 bits. - n = mirror::ArtMethod::SizeWithoutPointerFields(); + n = mirror::ArtMethod::SizeWithoutPointerFields(sizeof(void*)); } else { n = obj->SizeOf(); } |