src/hotspot/share/oops/cpCache.cpp
changeset 48463 474cec233fb2
parent 47890 2219a502fd45
child 48608 1dab70e20292
child 48784 899b522ed65c
equal deleted inserted replaced
48462:0bce2ae39928 48463:474cec233fb2
   175     case Bytecodes::_invokeinterface:
   175     case Bytecodes::_invokeinterface:
   176       // We get here from InterpreterRuntime::resolve_invoke when an invokeinterface
   176       // We get here from InterpreterRuntime::resolve_invoke when an invokeinterface
   177       // instruction somehow links to a non-interface method (in Object).
   177       // instruction somehow links to a non-interface method (in Object).
   178       // In that case, the method has no itable index and must be invoked as a virtual.
   178       // In that case, the method has no itable index and must be invoked as a virtual.
   179       // Set a flag to keep track of this corner case.
   179       // Set a flag to keep track of this corner case.
       
   180       assert(method->is_public(), "Calling non-public method in Object with invokeinterface");
   180       change_to_virtual = true;
   181       change_to_virtual = true;
   181 
   182 
   182       // ...and fall through as if we were handling invokevirtual:
   183       // ...and fall through as if we were handling invokevirtual:
   183     case Bytecodes::_invokevirtual:
   184     case Bytecodes::_invokevirtual:
   184       {
   185       {