diff -r c48f141e7c5b -r 3661ad97da8f src/hotspot/share/code/dependencies.hpp --- a/src/hotspot/share/code/dependencies.hpp Mon May 06 14:47:55 2019 -0400 +++ b/src/hotspot/share/code/dependencies.hpp Mon May 06 12:15:49 2019 -0700 @@ -27,6 +27,7 @@ #include "ci/ciCallSite.hpp" #include "ci/ciKlass.hpp" +#include "ci/ciMethod.hpp" #include "ci/ciMethodHandle.hpp" #include "classfile/systemDictionary.hpp" #include "code/compressedStream.hpp" @@ -341,6 +342,9 @@ check_ctxk(ctxk); assert(!is_concrete_klass(ctxk->as_instance_klass()), "must be abstract"); } + static void check_unique_method(ciKlass* ctxk, ciMethod* m) { + assert(!m->can_be_statically_bound(ctxk->as_instance_klass()), "redundant"); + } void assert_common_1(DepType dept, ciBaseObject* x); void assert_common_2(DepType dept, ciBaseObject* x0, ciBaseObject* x1); @@ -368,6 +372,10 @@ check_ctxk(ctxk); assert(ctxk->is_abstract(), "must be abstract"); } + static void check_unique_method(Klass* ctxk, Method* m) { + assert(!m->can_be_statically_bound(InstanceKlass::cast(ctxk)), "redundant"); + } + void assert_common_1(DepType dept, DepValue x); void assert_common_2(DepType dept, DepValue x0, DepValue x1);