diff options
| author | 2017-07-18 00:12:13 +0000 | |
|---|---|---|
| committer | 2017-07-18 00:12:13 +0000 | |
| commit | d317295ed07384c69d5890d6b17b80d57139a082 (patch) | |
| tree | 7ef48ea60165f89c852bf957207c65c155d49026 /runtime/class_linker.h | |
| parent | 71a8e5b25f0be5ab5bf0e1c73a9e5aabc3a23488 (diff) | |
| parent | 0cb172874481f736c6b7c491dd621166cc25561b (diff) | |
Merge "Do superclass validation at compile time and log with new class status."
Diffstat (limited to 'runtime/class_linker.h')
| -rw-r--r-- | runtime/class_linker.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/runtime/class_linker.h b/runtime/class_linker.h index 8b8a6fd420..864d37fa89 100644 --- a/runtime/class_linker.h +++ b/runtime/class_linker.h @@ -675,6 +675,10 @@ class ClassLinker { void VisitClassLoaders(ClassLoaderVisitor* visitor) const REQUIRES_SHARED(Locks::classlinker_classes_lock_, Locks::mutator_lock_); + // Checks that a class and its superclass from another class loader have the same virtual methods. + bool ValidateSuperClassDescriptors(Handle<mirror::Class> klass) + REQUIRES_SHARED(Locks::mutator_lock_); + struct DexCacheData { // Construct an invalid data object. DexCacheData() @@ -907,8 +911,6 @@ class ClassLinker { bool WaitForInitializeClass(Handle<mirror::Class> klass, Thread* self, ObjectLock<mirror::Class>& lock); - bool ValidateSuperClassDescriptors(Handle<mirror::Class> klass) - REQUIRES_SHARED(Locks::mutator_lock_); bool IsSameDescriptorInDifferentClassContexts(Thread* self, const char* descriptor, |