8266347: assert(Dependencies::is_concrete_root_method(fm, ctxk) == Dependencies::is_concrete_method(m, ctxk)) failed: mismatch

Reviewed-by: vlivanov, thartmann
(cherry picked from commit 89f7998aa7)
This commit is contained in:
Jamsheed Mohammed C M
2021-05-04 07:25:14 +00:00
committed by Vitaly Provodin
parent 385892a4cc
commit e2bf64a981

View File

@@ -1857,6 +1857,9 @@ Method* Dependencies::find_unique_concrete_method(InstanceKlass* ctxk, Method* m
if (participant != NULL) {
(*participant) = wf.participant(0);
}
if (!Dependencies::is_concrete_method(fm, NULL)) {
fm = NULL; // ignore abstract methods
}
if (Dependencies::is_concrete_method(m, ctxk)) {
if (fm == NULL) {
// It turns out that m was always the only implementation.