src/hotspot/share/runtime/sharedRuntime.cpp
changeset 53315 3d4e47348142
parent 52896 98408c7c0b73
child 53965 86ee52ca11e3
equal deleted inserted replaced
53314:827db73f2d6a 53315:3d4e47348142
  1374     tty->print_cr(" at pc: " INTPTR_FORMAT " to code: " INTPTR_FORMAT,
  1374     tty->print_cr(" at pc: " INTPTR_FORMAT " to code: " INTPTR_FORMAT,
  1375                   p2i(caller_frame.pc()), p2i(callee_method->code()));
  1375                   p2i(caller_frame.pc()), p2i(callee_method->code()));
  1376   }
  1376   }
  1377 #endif
  1377 #endif
  1378 
  1378 
       
  1379   // Do not patch call site for static call when the class is not
       
  1380   // fully initialized.
       
  1381   if (invoke_code == Bytecodes::_invokestatic &&
       
  1382       !callee_method->method_holder()->is_initialized()) {
       
  1383     assert(callee_method->method_holder()->is_linked(), "must be");
       
  1384     return callee_method;
       
  1385   }
       
  1386 
  1379   // JSR 292 key invariant:
  1387   // JSR 292 key invariant:
  1380   // If the resolved method is a MethodHandle invoke target, the call
  1388   // If the resolved method is a MethodHandle invoke target, the call
  1381   // site must be a MethodHandle call site, because the lambda form might tail-call
  1389   // site must be a MethodHandle call site, because the lambda form might tail-call
  1382   // leaving the stack in a state unknown to either caller or callee
  1390   // leaving the stack in a state unknown to either caller or callee
  1383   // TODO detune for now but we might need it again
  1391   // TODO detune for now but we might need it again