diff options
Diffstat (limited to 'runtime/entrypoints/entrypoint_utils-inl.h')
-rw-r--r-- | runtime/entrypoints/entrypoint_utils-inl.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/entrypoints/entrypoint_utils-inl.h b/runtime/entrypoints/entrypoint_utils-inl.h index 91163f4139..cbe754337c 100644 --- a/runtime/entrypoints/entrypoint_utils-inl.h +++ b/runtime/entrypoints/entrypoint_utils-inl.h @@ -519,6 +519,7 @@ ArtMethod* FindMethodToCall(Thread* self, ArtMethod* caller, ObjPtr<mirror::Object>* this_object, const Instruction& inst, + bool only_lookup_tls_cache, /*out*/ bool* string_init) REQUIRES_SHARED(Locks::mutator_lock_) { PointerSize pointer_size = Runtime::Current()->GetClassLinker()->GetImagePointerSize(); @@ -526,6 +527,9 @@ ArtMethod* FindMethodToCall(Thread* self, // Try to find the method in thread-local cache. size_t tls_value = 0u; if (!self->GetInterpreterCache()->Get(self, &inst, &tls_value)) { + if (only_lookup_tls_cache) { + return nullptr; + } DCHECK(!self->IsExceptionPending()); // NterpGetMethod can suspend, so save this_object. StackHandleScope<1> hs(self); |