diff options
Diffstat (limited to 'runtime/interpreter/mterp/mterp.cc')
-rw-r--r-- | runtime/interpreter/mterp/mterp.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/runtime/interpreter/mterp/mterp.cc b/runtime/interpreter/mterp/mterp.cc index 5927c92555..c8506a09f6 100644 --- a/runtime/interpreter/mterp/mterp.cc +++ b/runtime/interpreter/mterp/mterp.cc @@ -763,11 +763,8 @@ ALWAYS_INLINE bool MterpFieldAccessFast(Instruction* inst, // This effectively inlines the fast path from ArtMethod::GetDexCache. ArtMethod* referrer = shadow_frame->GetMethod(); if (LIKELY(!referrer->IsObsolete() && !do_access_checks)) { - // Avoid read barriers, since we need only the pointer to the native (non-movable) - // DexCache field array which we can get even through from-space objects. - ObjPtr<mirror::Class> klass = referrer->GetDeclaringClass<kWithoutReadBarrier>(); - ObjPtr<mirror::DexCache> dex_cache = - klass->GetDexCache<kDefaultVerifyFlags, kWithoutReadBarrier>(); + ObjPtr<mirror::Class> klass = referrer->GetDeclaringClass(); + ObjPtr<mirror::DexCache> dex_cache = klass->GetDexCache<kDefaultVerifyFlags>(); // Try to find the desired field in DexCache. uint32_t field_idx = kIsStatic ? inst->VRegB_21c() : inst->VRegC_22c(); |