hotspot/src/share/vm/classfile/classFileParser.cpp
changeset 3824 86e9e4b25bdf
parent 3822 388b0393a042
child 4478 c3a8af0fc6b0
child 4494 1f53dff2f6a5
equal deleted inserted replaced
3822:388b0393a042 3824:86e9e4b25bdf
  3229     this_klass->set_methods(methods());
  3229     this_klass->set_methods(methods());
  3230     if (has_final_method) {
  3230     if (has_final_method) {
  3231       this_klass->set_has_final_method();
  3231       this_klass->set_has_final_method();
  3232     }
  3232     }
  3233     this_klass->set_method_ordering(method_ordering());
  3233     this_klass->set_method_ordering(method_ordering());
       
  3234     // The instanceKlass::_methods_jmethod_ids cache and the
       
  3235     // instanceKlass::_methods_cached_itable_indices cache are
       
  3236     // both managed on the assumption that the initial cache
       
  3237     // size is equal to the number of methods in the class. If
       
  3238     // that changes, then instanceKlass::idnum_can_increment()
       
  3239     // has to be changed accordingly.
  3234     this_klass->set_initial_method_idnum(methods->length());
  3240     this_klass->set_initial_method_idnum(methods->length());
  3235     this_klass->set_name(cp->klass_name_at(this_class_index));
  3241     this_klass->set_name(cp->klass_name_at(this_class_index));
  3236     if (LinkWellKnownClasses || is_anonymous())  // I am well known to myself
  3242     if (LinkWellKnownClasses || is_anonymous())  // I am well known to myself
  3237       cp->klass_at_put(this_class_index, this_klass()); // eagerly resolve
  3243       cp->klass_at_put(this_class_index, this_klass()); // eagerly resolve
  3238     this_klass->set_protection_domain(protection_domain());
  3244     this_klass->set_protection_domain(protection_domain());