mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-25 22:04:51 +02:00
7154670: The instanceKlass _implementors[] and _nof_implementors are not needed for non-interface klass
Change implementor to embedded instanceKlass field. Reviewed-by: sspitsyn, minqi, coleenp
This commit is contained in:
parent
50a2f8c16d
commit
4a02eb3afe
14 changed files with 183 additions and 165 deletions
|
@ -1694,7 +1694,9 @@ void GraphBuilder::invoke(Bytecodes::Code code) {
|
|||
// they are roughly equivalent to Object.
|
||||
ciInstanceKlass* singleton = NULL;
|
||||
if (target->holder()->nof_implementors() == 1) {
|
||||
singleton = target->holder()->implementor(0);
|
||||
singleton = target->holder()->implementor();
|
||||
assert(singleton != NULL && singleton != target->holder(),
|
||||
"just checking");
|
||||
|
||||
assert(holder->is_interface(), "invokeinterface to non interface?");
|
||||
ciInstanceKlass* decl_interface = (ciInstanceKlass*)holder;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue