RFR 8162477: [JVMCI] assert(wf.check_method_context(ctxk, m)) failed: proper context

Vladimir Kozlov vladimir.kozlov at oracle.com
Mon Jul 25 20:21:29 UTC 2016



On 7/25/16 9:54 AM, Tom Rodriguez wrote:
> http://cr.openjdk.java.net/~never/8162477/webrev <http://cr.openjdk.java.net/~never/8162477/webrev>
> https://bugs.openjdk.java.net/browse/JDK-8162477
> While looking up an interface method in a class using Dependencies::find_unique_concrete_method, Dependencies::check_method_context can fail if the method is declared in two interfaces that both
> define the method.
> interface I { void m(); }
> interface J { void m(); }
> abstract class C implements I, J { }
> Resolving J.m against C asserts because the current code expects I.m since it’s the first occurrence of the name and signature in the ordered interfaces.  This only causes an assertion failure
> and find_unique_concrete_method just returns null as there is nothing find.
> tom

More information about the hotspot-compiler-dev mailing list