Skip to content
This repository has been archived by the owner on Nov 20, 2020. It is now read-only.

Commit

Permalink
samsung: increase String VTableLenght to support String.clear()
Browse files Browse the repository at this point in the history
  • Loading branch information
rovo89 authored and wanam committed Apr 23, 2016
1 parent 8ae13de commit 3e5b9ff
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions runtime/mirror/string-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ namespace mirror {

inline uint32_t String::ClassSize(size_t pointer_size) {
uint32_t vtable_entries = Object::kVTableLength + 52;
if (IsSamsungROM()) {
// Samsung added a new method "string.clear()"
// Increase vtable length to support it
vtable_entries++;
}
return Class::ComputeClassSize(true, vtable_entries, 0, 1, 0, 1, 2, pointer_size);
}

Expand Down

0 comments on commit 3e5b9ff

Please sign in to comment.