8175932: Improve host instance supports

Reviewed-by: coleenp, mschoene
This commit is contained in:
Harold Seigel 2017-03-20 13:05:00 -04:00 committed by Harold Seigel
parent 979cec24f8
commit dd5b1ee367
2 changed files with 6 additions and 1 deletions

View file

@ -804,7 +804,7 @@ void InterpreterRuntime::resolve_invoke(JavaThread* thread, Bytecodes::Code byte
// it is not an interface. The receiver for invokespecial calls within interface
// methods must be checked for every call.
InstanceKlass* sender = pool->pool_holder();
sender = sender->is_anonymous() ? sender->host_klass() : sender;
sender = sender->has_host_klass() ? sender->host_klass() : sender;
switch (info.call_kind()) {
case CallInfo::direct_call: