mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8036580: CHA: improve default method support
Reviewed-by: thartmann, neliasso
This commit is contained in:
parent
20479c3de9
commit
74b70a5677
6 changed files with 229 additions and 22 deletions
|
@ -1988,8 +1988,7 @@ void GraphBuilder::invoke(Bytecodes::Code code) {
|
|||
// no point in inlining.
|
||||
ciInstanceKlass* declared_interface = callee_holder;
|
||||
ciInstanceKlass* singleton = declared_interface->unique_implementor();
|
||||
if (singleton != NULL &&
|
||||
(!target->is_default_method() || target->is_overpass()) /* CHA doesn't support default methods yet. */ ) {
|
||||
if (singleton != NULL) {
|
||||
assert(singleton != declared_interface, "not a unique implementor");
|
||||
cha_monomorphic_target = target->find_monomorphic_target(calling_klass, declared_interface, singleton);
|
||||
if (cha_monomorphic_target != NULL) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue