From ae12f96965dd1fb1cf5fefb0188b749e921ba88b Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Fri, 6 Jan 2023 12:06:13 +0000 Subject: Refactor code aroud method resolution. - Make unresolved AOT entrypoints use the tls cache - Remove duplicate code - Inline method access checks logic in its only use. - Fix in ClassLinker::ResolveMethodWithoutInvokeType() by calling shared helper. Test: test.py Change-Id: I1f42b5d0ac1dcd9c5eb483db9c5c5eefc9b2f4d1 --- runtime/entrypoints/entrypoint_utils.h | 1 + 1 file changed, 1 insertion(+) (limited to 'runtime/entrypoints/entrypoint_utils.h') diff --git a/runtime/entrypoints/entrypoint_utils.h b/runtime/entrypoints/entrypoint_utils.h index 777fd9880d..a69b055c1f 100644 --- a/runtime/entrypoints/entrypoint_utils.h +++ b/runtime/entrypoints/entrypoint_utils.h @@ -148,6 +148,7 @@ inline ArtMethod* FindMethodToCall(Thread* self, ArtMethod* referrer, ObjPtr* this_object, const Instruction& inst, + bool only_lookup_tls_cache, /*out*/ bool* string_init) REQUIRES_SHARED(Locks::mutator_lock_) REQUIRES(!Roles::uninterruptible_); -- cgit v1.2.3-59-g8ed1b