2892 if (vmtarget != NULL) { 2893 st->print(" = "); 2894 vmtarget->print_value_on(st); 2895 } else { 2896 java_lang_invoke_MemberName::clazz(obj)->print_value_on(st); 2897 st->print("."); 2898 java_lang_invoke_MemberName::name(obj)->print_value_on(st); 2899 } 2900 } 2901 } 2902 2903 const char* InstanceKlass::internal_name() const { 2904 return external_name(); 2905 } 2906 2907 #if INCLUDE_SERVICES 2908 // Size Statistics 2909 void InstanceKlass::collect_statistics(KlassSizeStats *sz) const { 2910 Klass::collect_statistics(sz); 2911 2912 sz->_inst_size = HeapWordSize * size_helper(); 2913 sz->_vtab_bytes = HeapWordSize * vtable_length(); 2914 sz->_itab_bytes = HeapWordSize * itable_length(); 2915 sz->_nonstatic_oopmap_bytes = HeapWordSize * nonstatic_oop_map_size(); 2916 2917 int n = 0; 2918 n += (sz->_methods_array_bytes = sz->count_array(methods())); 2919 n += (sz->_method_ordering_bytes = sz->count_array(method_ordering())); 2920 n += (sz->_local_interfaces_bytes = sz->count_array(local_interfaces())); 2921 n += (sz->_transitive_interfaces_bytes = sz->count_array(transitive_interfaces())); 2922 n += (sz->_fields_bytes = sz->count_array(fields())); 2923 n += (sz->_inner_classes_bytes = sz->count_array(inner_classes())); 2924 sz->_ro_bytes += n; 2925 2926 const ConstantPool* cp = constants(); 2927 if (cp) { 2928 cp->collect_statistics(sz); 2929 } 2930 2931 const Annotations* anno = annotations(); 2932 if (anno) { 2933 anno->collect_statistics(sz); 2934 } 2935 | 2892 if (vmtarget != NULL) { 2893 st->print(" = "); 2894 vmtarget->print_value_on(st); 2895 } else { 2896 java_lang_invoke_MemberName::clazz(obj)->print_value_on(st); 2897 st->print("."); 2898 java_lang_invoke_MemberName::name(obj)->print_value_on(st); 2899 } 2900 } 2901 } 2902 2903 const char* InstanceKlass::internal_name() const { 2904 return external_name(); 2905 } 2906 2907 #if INCLUDE_SERVICES 2908 // Size Statistics 2909 void InstanceKlass::collect_statistics(KlassSizeStats *sz) const { 2910 Klass::collect_statistics(sz); 2911 2912 sz->_inst_size = wordSize * size_helper(); 2913 sz->_vtab_bytes = wordSize * vtable_length(); 2914 sz->_itab_bytes = wordSize * itable_length(); 2915 sz->_nonstatic_oopmap_bytes = wordSize * nonstatic_oop_map_size(); 2916 2917 int n = 0; 2918 n += (sz->_methods_array_bytes = sz->count_array(methods())); 2919 n += (sz->_method_ordering_bytes = sz->count_array(method_ordering())); 2920 n += (sz->_local_interfaces_bytes = sz->count_array(local_interfaces())); 2921 n += (sz->_transitive_interfaces_bytes = sz->count_array(transitive_interfaces())); 2922 n += (sz->_fields_bytes = sz->count_array(fields())); 2923 n += (sz->_inner_classes_bytes = sz->count_array(inner_classes())); 2924 sz->_ro_bytes += n; 2925 2926 const ConstantPool* cp = constants(); 2927 if (cp) { 2928 cp->collect_statistics(sz); 2929 } 2930 2931 const Annotations* anno = annotations(); 2932 if (anno) { 2933 anno->collect_statistics(sz); 2934 } 2935 |