summaryrefslogtreecommitdiffstats
path: root/runtime/interpreter/interpreter.cc
diff options
context:
space:
mode:
authorMathieu Chartier <mathieuc@google.com>2014-05-29 14:31:33 -0700
committerMathieu Chartier <mathieuc@google.com>2014-05-30 13:58:22 -0700
commitb74cd29802f364b4cec88f4913fa38ade26b8fab (patch)
tree73ccdce1c5a6e57d5763cae1f889e53dca2b5e24 /runtime/interpreter/interpreter.cc
parent11138c73e0c5f8a90d1eeed3c48a2b63b310671c (diff)
downloadart-b74cd29802f364b4cec88f4913fa38ade26b8fab.tar.gz
art-b74cd29802f364b4cec88f4913fa38ade26b8fab.tar.bz2
art-b74cd29802f364b4cec88f4913fa38ade26b8fab.zip
Compaction cleanup for FindArrayClass.
We now pass double pointer in to signify that it can cause thread suspension, this double pointer gets wrapped by a handle if don't find the array class in the cache. Change-Id: I43436b6c35597c7252b65d1180baddb5ac4caabb
Diffstat (limited to 'runtime/interpreter/interpreter.cc')
-rw-r--r--runtime/interpreter/interpreter.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/interpreter/interpreter.cc b/runtime/interpreter/interpreter.cc
index f77a0f6d3..9cfba8d5d 100644
--- a/runtime/interpreter/interpreter.cc
+++ b/runtime/interpreter/interpreter.cc
@@ -33,7 +33,7 @@ static void UnstartedRuntimeJni(Thread* self, ArtMethod* method,
DCHECK_GE(length, 0);
mirror::Class* element_class = reinterpret_cast<Object*>(args[0])->AsClass();
Runtime* runtime = Runtime::Current();
- mirror::Class* array_class = runtime->GetClassLinker()->FindArrayClass(self, element_class);
+ mirror::Class* array_class = runtime->GetClassLinker()->FindArrayClass(self, &element_class);
DCHECK(array_class != nullptr);
gc::AllocatorType allocator = runtime->GetHeap()->GetCurrentAllocator();
result->SetL(mirror::Array::Alloc<true>(self, array_class, length,