From b74cd29802f364b4cec88f4913fa38ade26b8fab Mon Sep 17 00:00:00 2001 From: Mathieu Chartier Date: Thu, 29 May 2014 14:31:33 -0700 Subject: 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 --- runtime/interpreter/interpreter.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/interpreter/interpreter.cc') 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(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(self, array_class, length, -- cgit v1.2.3