diff options
Diffstat (limited to 'runtime/class_linker.cc')
-rw-r--r-- | runtime/class_linker.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/runtime/class_linker.cc b/runtime/class_linker.cc index 009d705caf..70eea2d268 100644 --- a/runtime/class_linker.cc +++ b/runtime/class_linker.cc @@ -10569,7 +10569,7 @@ ObjPtr<mirror::MethodHandle> ClassLinker::ResolveMethodHandleForField( return nullptr; } - StackHandleScope<5> hs(self); + StackHandleScope<4> hs(self); ObjPtr<mirror::Class> array_of_class = GetClassRoot<mirror::ObjectArray<mirror::Class>>(this); Handle<mirror::ObjectArray<mirror::Class>> method_params(hs.NewHandle( mirror::ObjectArray<mirror::Class>::Alloc(self, array_of_class, num_params))); @@ -10629,8 +10629,7 @@ ObjPtr<mirror::MethodHandle> ClassLinker::ResolveMethodHandleForField( return nullptr; } - Handle<mirror::Field> target(hs.NewHandle( - mirror::Field::CreateFromArtField(self, target_field, /*force_resolve=*/ true))); + uintptr_t target = reinterpret_cast<uintptr_t>(target_field); return mirror::MethodHandleImpl::Create(self, target, kind, method_type); } |