diff options
author | Eric Arseneau <earseneau@google.com> | 2021-12-19 22:49:18 -0800 |
---|---|---|
committer | Eric Arseneau <earseneau@google.com> | 2021-12-19 22:49:18 -0800 |
commit | 0c5adfaaa09b234ea4a11a28b931c91c3d68f423 (patch) | |
tree | e60b0a64a2b342e96f6b886ec3e2e453e494e567 /runtime/class_linker.h | |
parent | 6ad2c0ba3b84dffc86def566a9d6688d5a25e2d4 (diff) | |
parent | 00c84f21871a8df8c4acfd9469be80095f6c6a7d (diff) |
Merge s-mpr-2021-12-05
Change-Id: Ie30e6decc687dd07c62f61760ea1900c619d6ce0
Diffstat (limited to 'runtime/class_linker.h')
-rw-r--r-- | runtime/class_linker.h | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/runtime/class_linker.h b/runtime/class_linker.h index 547753a6d6..5faf7602cb 100644 --- a/runtime/class_linker.h +++ b/runtime/class_linker.h @@ -1024,20 +1024,26 @@ class ClassLinker { // dex files and does not recurse into its parent. // The method checks that the provided class loader is either a PathClassLoader or a // DexClassLoader. - // If the class is found the method returns the resolved class. Otherwise it returns null. - ObjPtr<mirror::Class> FindClassInBaseDexClassLoaderClassPath( + // If the class is found the method updates `result`. + // The method always returns true, to notify to the caller a + // BaseDexClassLoader has a known lookup. + bool FindClassInBaseDexClassLoaderClassPath( ScopedObjectAccessAlreadyRunnable& soa, const char* descriptor, size_t hash, - Handle<mirror::ClassLoader> class_loader) + Handle<mirror::ClassLoader> class_loader, + /*out*/ ObjPtr<mirror::Class>* result) REQUIRES_SHARED(Locks::mutator_lock_) REQUIRES(!Locks::dex_lock_); // Finds the class in the boot class loader. - // If the class is found the method returns the resolved class. Otherwise it returns null. - ObjPtr<mirror::Class> FindClassInBootClassLoaderClassPath(Thread* self, - const char* descriptor, - size_t hash) + // If the class is found the method updates `result`. + // The method always returns true, to notify to the caller the + // boot class loader has a known lookup. + bool FindClassInBootClassLoaderClassPath(Thread* self, + const char* descriptor, + size_t hash, + /*out*/ ObjPtr<mirror::Class>* result) REQUIRES_SHARED(Locks::mutator_lock_) REQUIRES(!Locks::dex_lock_); |