diff options
Diffstat (limited to 'runtime/class_linker.h')
-rw-r--r-- | runtime/class_linker.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/class_linker.h b/runtime/class_linker.h index 9a57bd4658..86e2881f05 100644 --- a/runtime/class_linker.h +++ b/runtime/class_linker.h @@ -764,6 +764,11 @@ class ClassLinker { ObjPtr<mirror::Class> GetHoldingClassOfCopiedMethod(ArtMethod* method) REQUIRES_SHARED(Locks::mutator_lock_); + // Get the class loader holding class for a copied method. + ObjPtr<mirror::ClassLoader> GetHoldingClassLoaderOfCopiedMethod(Thread* self, ArtMethod* method) + REQUIRES_SHARED(Locks::mutator_lock_) + REQUIRES(!Locks::classlinker_classes_lock_); + // Returns null if not found. // This returns a pointer to the class-table, without requiring any locking - including the // boot class-table. It is the caller's responsibility to access this under lock, if required. |