summaryrefslogtreecommitdiffstats
path: root/runtime/mirror/array-inl.h
diff options
context:
space:
mode:
authorMathieu Chartier <mathieuc@google.com>2014-02-28 02:46:39 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-02-28 02:46:40 +0000
commit1b22ddf2efe48ae1cbcdc34468037eca6072fe5c (patch)
treeda6e717eb6f77c8cf959a9b0d1f8073f63d4e9fd /runtime/mirror/array-inl.h
parentb63841060cdca9603bf72e737de52a9cec0d6434 (diff)
parent8580154e01910459d99074ef10584b8d647d912f (diff)
downloadandroid_art-1b22ddf2efe48ae1cbcdc34468037eca6072fe5c.tar.gz
android_art-1b22ddf2efe48ae1cbcdc34468037eca6072fe5c.tar.bz2
android_art-1b22ddf2efe48ae1cbcdc34468037eca6072fe5c.zip
Merge "Fix 080-oom-throw with semispace GC."
Diffstat (limited to 'runtime/mirror/array-inl.h')
-rw-r--r--runtime/mirror/array-inl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/mirror/array-inl.h b/runtime/mirror/array-inl.h
index 8158bc5f61..1d37775f93 100644
--- a/runtime/mirror/array-inl.h
+++ b/runtime/mirror/array-inl.h
@@ -141,6 +141,7 @@ inline Array* Array::Alloc(Thread* self, Class* array_class, int32_t component_c
allocator_type, visitor));
}
if (kIsDebugBuild && result != nullptr && Runtime::Current()->IsStarted()) {
+ array_class = result->GetClass(); // In case the array class moved.
CHECK_EQ(array_class->GetComponentSize(), component_size);
if (!fill_usable) {
CHECK_EQ(result->SizeOf(), size);