hotspot/src/share/vm/ci/ciEnv.cpp
changeset 14391 df0a1573d5bd
parent 13974 791cba24758f
child 14488 ab48109f7d1b
child 14477 95e66ea71f71
equal deleted inserted replaced
14390:bd0d881cf1c5 14391:df0a1573d5bd
   766     if (holder_is_accessible) {  // Our declared holder is loaded.
   766     if (holder_is_accessible) {  // Our declared holder is loaded.
   767       InstanceKlass* lookup = declared_holder->get_instanceKlass();
   767       InstanceKlass* lookup = declared_holder->get_instanceKlass();
   768       Method* m = lookup_method(accessor->get_instanceKlass(), lookup, name_sym, sig_sym, bc);
   768       Method* m = lookup_method(accessor->get_instanceKlass(), lookup, name_sym, sig_sym, bc);
   769       if (m != NULL &&
   769       if (m != NULL &&
   770           (bc == Bytecodes::_invokestatic
   770           (bc == Bytecodes::_invokestatic
   771            ?  InstanceKlass::cast(m->method_holder())->is_not_initialized()
   771            ?  m->method_holder()->is_not_initialized()
   772            : !InstanceKlass::cast(m->method_holder())->is_loaded())) {
   772            : !m->method_holder()->is_loaded())) {
   773         m = NULL;
   773         m = NULL;
   774       }
   774       }
   775       if (m != NULL) {
   775       if (m != NULL) {
   776         // We found the method.
   776         // We found the method.
   777         return get_method(m);
   777         return get_method(m);
  1054           tty->print_cr("Installing osr method (%d) %s @ %d",
  1054           tty->print_cr("Installing osr method (%d) %s @ %d",
  1055                         comp_level,
  1055                         comp_level,
  1056                         method_name,
  1056                         method_name,
  1057                         entry_bci);
  1057                         entry_bci);
  1058         }
  1058         }
  1059         InstanceKlass::cast(method->method_holder())->add_osr_nmethod(nm);
  1059         method->method_holder()->add_osr_nmethod(nm);
  1060 
  1060 
  1061       }
  1061       }
  1062     }
  1062     }
  1063   }
  1063   }
  1064   // JVMTI -- compiled method notification (must be done outside lock)
  1064   // JVMTI -- compiled method notification (must be done outside lock)