src/hotspot/share/oops/cpCache.cpp
changeset 48608 1dab70e20292
parent 48557 2e867226b914
parent 48463 474cec233fb2
child 48819 ee513596f3ee
equal deleted inserted replaced
48607:7fc3d62481ba 48608:1dab70e20292
   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       {