diff options
author | 2017-12-08 12:00:50 +0000 | |
---|---|---|
committer | 2017-12-08 16:50:21 +0000 | |
commit | 208f67072283be64da231b51f9c195aff403dceb (patch) | |
tree | 97748c71e6c16ae110ccdbb13f50a78e5a21cd33 /runtime/art_field.h | |
parent | 4388fb213ec746ee18a6bea38ee894f8c19990b9 (diff) |
Change ArtField::ProxyFindSystemClass() to lookup the class.
As the function is called from ArtField::LookupType(),
we should avoid calls that appear to allow type resolution
rather than plain lookup. The lookup should always succeed.
Also rename ArtField::LookupType() to LookupResolvedType()
to align with naming used in ClassLinker and ArtMethod.
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Change-Id: I0a87347b5341575e47e0fdba6d58ade2543387c8
Diffstat (limited to 'runtime/art_field.h')
-rw-r--r-- | runtime/art_field.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/art_field.h b/runtime/art_field.h index 866bf0bc70..a6f050810f 100644 --- a/runtime/art_field.h +++ b/runtime/art_field.h @@ -205,7 +205,7 @@ class ArtField FINAL { bool IsPrimitiveType() REQUIRES_SHARED(Locks::mutator_lock_); - ObjPtr<mirror::Class> LookupType() REQUIRES_SHARED(Locks::mutator_lock_); + ObjPtr<mirror::Class> LookupResolvedType() REQUIRES_SHARED(Locks::mutator_lock_); ObjPtr<mirror::Class> ResolveType() REQUIRES_SHARED(Locks::mutator_lock_); size_t FieldSize() REQUIRES_SHARED(Locks::mutator_lock_); |