src/hotspot/share/code/dependencies.hpp
changeset 54734 e8f1b9fc82cc
parent 54721 3661ad97da8f
child 55298 1fe17d2be502
child 58678 9cf78a70fa4f
--- a/src/hotspot/share/code/dependencies.hpp	Thu Apr 25 13:35:34 2019 -0700
+++ b/src/hotspot/share/code/dependencies.hpp	Mon May 06 21:31:36 2019 -0700
@@ -373,7 +373,8 @@
     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");
+    // Graal can register redundant dependencies
+    assert(UseJVMCICompiler || !m->can_be_statically_bound(InstanceKlass::cast(ctxk)), "redundant");
   }
 
   void assert_common_1(DepType dept, DepValue x);