changeset 54389:772f62a13376

8221437: assert(java_lang_invoke_ResolvedMethodName::vmtarget(resolved_method()) == m()) failed: Should not change after link resolution Reviewed-by: coleenp, sspitsyn
author lmesnik
date Tue, 02 Apr 2019 17:11:04 -0700
parents a1acc800c87a
children 3326be37cd9a
files src/hotspot/share/prims/methodHandles.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/share/prims/methodHandles.cpp	Thu Mar 14 09:53:15 2019 -0400
+++ b/src/hotspot/share/prims/methodHandles.cpp	Tue Apr 02 17:11:04 2019 -0700
@@ -316,7 +316,7 @@
   }
 
   Handle resolved_method = info.resolved_method_name();
-  assert(java_lang_invoke_ResolvedMethodName::vmtarget(resolved_method()) == m(),
+  assert(java_lang_invoke_ResolvedMethodName::vmtarget(resolved_method()) == m() || m->is_old(),
          "Should not change after link resolution");
 
   oop mname_oop = mname();