8221437: assert(java_lang_invoke_ResolvedMethodName::vmtarget(resolved_method()) == m()) failed: Should not change after link resolution
authorlmesnik
Tue, 02 Apr 2019 17:11:04 -0700
changeset 54389 772f62a13376
parent 54388 a1acc800c87a
child 54390 3326be37cd9a
8221437: assert(java_lang_invoke_ResolvedMethodName::vmtarget(resolved_method()) == m()) failed: Should not change after link resolution Reviewed-by: coleenp, sspitsyn
src/hotspot/share/prims/methodHandles.cpp
--- 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();