diff options
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 03899cc755..3b1d914f6e 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(); } |