8223422: [Graal] assert(!m->can_be_statically_bound(InstanceKlass::cast(ctxk))) failed: redundant
authorvlivanov
Mon, 06 May 2019 21:31:36 -0700
changeset 54734 e8f1b9fc82cc
parent 54733 28dd27202591
child 54735 a9f729b641a3
8223422: [Graal] assert(!m->can_be_statically_bound(InstanceKlass::cast(ctxk))) failed: redundant Reviewed-by: kvn
src/hotspot/share/code/dependencies.hpp
--- 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);