diff options
author | 2017-11-06 16:00:51 +0000 | |
---|---|---|
committer | 2017-11-06 16:24:06 +0000 | |
commit | 4098a7ad22535212c193f5c66eaf8a7387e1b7fc (patch) | |
tree | b6fbfef133515376185b769ea2c9625a6a637a04 /runtime/common_dex_operations.h | |
parent | 383684585824efa60350b208b92362efab3962eb (diff) |
Refactor ArtField::GetType<>() as {Lookup,Resolve}Type().
And add no thread suspension assertion to LookupType()
as well as ArtMethod::LookupResolvedClassFromTypeIndex().
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Change-Id: If1541ccb0aafeabb6d1dd5566f10afcac98a2ef1
Diffstat (limited to 'runtime/common_dex_operations.h')
-rw-r--r-- | runtime/common_dex_operations.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/common_dex_operations.h b/runtime/common_dex_operations.h index 6a78637ab1..267735fe95 100644 --- a/runtime/common_dex_operations.h +++ b/runtime/common_dex_operations.h @@ -201,7 +201,7 @@ ALWAYS_INLINE bool DoFieldPutCommon(Thread* self, StackHandleScope<2> hs(self); HandleWrapperObjPtr<mirror::Object> h_reg(hs.NewHandleWrapper(®)); HandleWrapperObjPtr<mirror::Object> h_obj(hs.NewHandleWrapper(&obj)); - field_class = field->GetType<true>(); + field_class = field->ResolveType(); } if (!reg->VerifierInstanceOf(field_class.Ptr())) { // This should never happen. |