diff options
| author | 2016-02-03 10:51:15 +0000 | |
|---|---|---|
| committer | 2016-02-03 10:51:15 +0000 | |
| commit | 6b5a17a84d84fc4a9131d7a256e6586d906be064 (patch) | |
| tree | 19b32ee41e2768c2d2c797cb3cabe9d8dc423500 | |
| parent | 371d75ef9e478ccd54e43e727e48ff5c4918e55e (diff) | |
| parent | 0d4909e45fb5f3c4d8ce568890fc9cedad44202c (diff) | |
Merge "ART: Fix rounding up in DexCacheArraysLayout constructor."
| -rw-r--r-- | runtime/utils/dex_cache_arrays_layout-inl.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/runtime/utils/dex_cache_arrays_layout-inl.h b/runtime/utils/dex_cache_arrays_layout-inl.h index f6ee6a2b1a..6922564fb2 100644 --- a/runtime/utils/dex_cache_arrays_layout-inl.h +++ b/runtime/utils/dex_cache_arrays_layout-inl.h @@ -31,14 +31,14 @@ inline DexCacheArraysLayout::DexCacheArraysLayout(size_t pointer_size, const DexFile::Header& header) : pointer_size_(pointer_size), /* types_offset_ is always 0u, so it's constexpr */ - methods_offset_(types_offset_ + - RoundUp(TypesSize(header.type_ids_size_), MethodsAlignment())), - strings_offset_(methods_offset_ + - RoundUp(MethodsSize(header.method_ids_size_), StringsAlignment())), - fields_offset_(strings_offset_ + - RoundUp(StringsSize(header.string_ids_size_), FieldsAlignment())), - size_(fields_offset_ + - RoundUp(FieldsSize(header.field_ids_size_), Alignment())) { + methods_offset_( + RoundUp(types_offset_ + TypesSize(header.type_ids_size_), MethodsAlignment())), + strings_offset_( + RoundUp(methods_offset_ + MethodsSize(header.method_ids_size_), StringsAlignment())), + fields_offset_( + RoundUp(strings_offset_ + StringsSize(header.string_ids_size_), FieldsAlignment())), + size_( + RoundUp(fields_offset_ + FieldsSize(header.field_ids_size_), Alignment())) { DCHECK(ValidPointerSize(pointer_size)) << pointer_size; } |