1.1 --- a/src/share/vm/classfile/classFileParser.cpp Wed Sep 16 15:42:46 2009 -0400 1.2 +++ b/src/share/vm/classfile/classFileParser.cpp Mon Sep 21 09:30:24 2009 -0600 1.3 @@ -3231,6 +3231,12 @@ 1.4 this_klass->set_has_final_method(); 1.5 } 1.6 this_klass->set_method_ordering(method_ordering()); 1.7 + // The instanceKlass::_methods_jmethod_ids cache and the 1.8 + // instanceKlass::_methods_cached_itable_indices cache are 1.9 + // both managed on the assumption that the initial cache 1.10 + // size is equal to the number of methods in the class. If 1.11 + // that changes, then instanceKlass::idnum_can_increment() 1.12 + // has to be changed accordingly. 1.13 this_klass->set_initial_method_idnum(methods->length()); 1.14 this_klass->set_name(cp->klass_name_at(this_class_index)); 1.15 if (LinkWellKnownClasses || is_anonymous()) // I am well known to myself