diff options
author | 2019-09-18 06:11:22 +0000 | |
---|---|---|
committer | 2019-09-18 06:12:13 +0000 | |
commit | 5a2301d897294ff4ee6de71f459dc2566dc3fa1a (patch) | |
tree | 2bd06ab3f463734994b3d251f6115514520dbb3f /runtime/mirror/executable-inl.h | |
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/mirror/executable-inl.h')
-rw-r--r-- | runtime/mirror/executable-inl.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/runtime/mirror/executable-inl.h b/runtime/mirror/executable-inl.h index ce35d6ef20..6d4b46a31d 100644 --- a/runtime/mirror/executable-inl.h +++ b/runtime/mirror/executable-inl.h @@ -20,7 +20,6 @@ #include "executable.h" #include "object-inl.h" -#include "verify_object.h" namespace art { namespace mirror { @@ -37,17 +36,6 @@ inline ObjPtr<mirror::Class> Executable::GetDeclaringClass() { return GetFieldObject<mirror::Class>(DeclaringClassOffset()); } -template<typename Visitor, VerifyObjectFlags kVerifiyFlags> -inline void Executable::VisitTarget(Visitor&& v) { - ArtMethod* orig = GetArtMethod<kVerifiyFlags>(); - ArtMethod* new_target = v(orig); - if (orig != new_target) { - SetArtMethod(new_target); - SetDexMethodIndex(new_target->GetDexMethodIndex()); - SetDeclaringClass(new_target->GetDeclaringClass()); - } -} - } // namespace mirror } // namespace art |