diff options
| author | 2015-07-08 14:59:35 +0000 | |
|---|---|---|
| committer | 2015-07-08 14:59:36 +0000 | |
| commit | c21dc873f5a6ce31d73299ee71805031ddb9b65a (patch) | |
| tree | 4e8893f5b4669e3c117ca146956be1f5c6bee6f4 | |
| parent | 30502f1fc8357bdaf11b70e6fc8f5311c6237194 (diff) | |
| parent | 6fcaf3f7b5c4fca67b506c4a4233e8373be6d48e (diff) | |
Merge "Fix oatdump after ArtMethod change."
| -rw-r--r-- | oatdump/oatdump.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/oatdump/oatdump.cc b/oatdump/oatdump.cc index cf4f82210c..8dde547bb2 100644 --- a/oatdump/oatdump.cc +++ b/oatdump/oatdump.cc @@ -1618,7 +1618,8 @@ class ImageDumper { stats_.alignment_bytes += bitmap_section.Offset() - image_header_.GetImageSize(); stats_.bitmap_bytes += bitmap_section.Size(); stats_.art_field_bytes += field_section.Size(); - stats_.art_method_bytes += method_section.Size(); + // RoundUp to 8 bytes to match the intern table alignment expectation. + stats_.art_method_bytes += RoundUp(method_section.Size(), sizeof(uint64_t)); stats_.interned_strings_bytes += intern_section.Size(); stats_.Dump(os); os << "\n"; |