diff options
Diffstat (limited to 'runtime/gc/heap_verification_test.cc')
-rw-r--r-- | runtime/gc/heap_verification_test.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/gc/heap_verification_test.cc b/runtime/gc/heap_verification_test.cc index 40ee86ce79..4f06ee6910 100644 --- a/runtime/gc/heap_verification_test.cc +++ b/runtime/gc/heap_verification_test.cc @@ -18,6 +18,7 @@ #include "base/memory_tool.h" #include "class_linker-inl.h" +#include "class_root.h" #include "handle_scope-inl.h" #include "mirror/object-inl.h" #include "mirror/object_array-inl.h" @@ -36,10 +37,9 @@ class VerificationTest : public CommonRuntimeTest { template <class T> mirror::ObjectArray<T>* AllocObjectArray(Thread* self, size_t length) REQUIRES_SHARED(Locks::mutator_lock_) { - ClassLinker* const class_linker = Runtime::Current()->GetClassLinker(); return mirror::ObjectArray<T>::Alloc( self, - class_linker->GetClassRoot(ClassLinker::ClassRoot::kObjectArrayClass), + GetClassRoot<mirror::ObjectArray<mirror::Object>>(), length); } }; |