diff options
author | 2019-09-18 06:11:22 +0000 | |
---|---|---|
committer | 2019-09-18 06:12:13 +0000 | |
commit | 5a2301d897294ff4ee6de71f459dc2566dc3fa1a (patch) | |
tree | 2bd06ab3f463734994b3d251f6115514520dbb3f /runtime/class_linker.cc | |
parent | 4eb6eb40e88214fcc874d93e75660cb580cb4d58 (diff) |
Revert "Basic structural redefinition support"
This reverts commit c971eafeff43e4e26959a6e86b62ab0a8f1a6e1c.
Bug: 134162467
Reason for revert: Breaks on redefine-stress
Change-Id: I4e38da23d65b5b34b26b5ab537a3583328e078a4
Diffstat (limited to 'runtime/class_linker.cc')
-rw-r--r-- | runtime/class_linker.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/class_linker.cc b/runtime/class_linker.cc index 10b9da1239..9d9abe3d89 100644 --- a/runtime/class_linker.cc +++ b/runtime/class_linker.cc @@ -6146,7 +6146,7 @@ bool ClassLinker::LinkClass(Thread* self, // Update CHA info based on whether we override methods. // Have to do this before setting the class as resolved which allows // instantiation of klass. - if (LIKELY(descriptor != nullptr) && cha_ != nullptr) { + if (cha_ != nullptr) { cha_->UpdateAfterLoadingOf(klass); } @@ -6177,7 +6177,7 @@ bool ClassLinker::LinkClass(Thread* self, ObjectLock<mirror::Class> lock(self, h_new_class); FixupTemporaryDeclaringClass(klass.Get(), h_new_class.Get()); - if (LIKELY(descriptor != nullptr)) { + { WriterMutexLock mu(self, *Locks::classlinker_classes_lock_); const ObjPtr<mirror::ClassLoader> class_loader = h_new_class.Get()->GetClassLoader(); ClassTable* const table = InsertClassTableForClassLoader(class_loader); @@ -6197,7 +6197,7 @@ bool ClassLinker::LinkClass(Thread* self, // Update CHA info based on whether we override methods. // Have to do this before setting the class as resolved which allows // instantiation of klass. - if (LIKELY(descriptor != nullptr) && cha_ != nullptr) { + if (cha_ != nullptr) { cha_->UpdateAfterLoadingOf(h_new_class); } |