diff options
author | Ian Rogers <irogers@google.com> | 2013-10-30 01:00:44 -0700 |
---|---|---|
committer | Ian Rogers <irogers@google.com> | 2013-10-30 01:00:44 -0700 |
commit | dfb325e0ddd746cd8f7c2e3723b3a573eb7cc111 (patch) | |
tree | 0b63738b04404f42015da7164dfe5ec506452b02 /runtime/gc/heap-inl.h | |
parent | eda6df7374bf61c933d4a36635e2a9a30c9892a0 (diff) | |
download | art-dfb325e0ddd746cd8f7c2e3723b3a573eb7cc111.zip art-dfb325e0ddd746cd8f7c2e3723b3a573eb7cc111.tar.gz art-dfb325e0ddd746cd8f7c2e3723b3a573eb7cc111.tar.bz2 |
Don't use UTF16 length as length for MUTF8.
Bug 11367555.
Change-Id: Ia0b07072a1a49d435c3b71ed9a668b316b7ff5d8
Diffstat (limited to 'runtime/gc/heap-inl.h')
-rw-r--r-- | runtime/gc/heap-inl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/gc/heap-inl.h b/runtime/gc/heap-inl.h index b7ef77c..873eadc 100644 --- a/runtime/gc/heap-inl.h +++ b/runtime/gc/heap-inl.h @@ -127,7 +127,7 @@ inline bool Heap::TryAllocLargeObjectUninstrumented(Thread* self, mirror::Class* inline void Heap::DebugCheckPreconditionsForAllobObject(mirror::Class* c, size_t byte_count) { DCHECK(c == NULL || (c->IsClassClass() && byte_count >= sizeof(mirror::Class)) || (c->IsVariableSize() || c->GetObjectSize() == byte_count) || - ClassHelper(c).GetDescriptorAsStringPiece().length() == 0); + strlen(ClassHelper(c).GetDescriptor()) == 0); DCHECK_GE(byte_count, sizeof(mirror::Object)); } |