2855 st->print(" = "); 2856 vmtarget->print_value_on(st); 2857 } else { 2858 java_lang_invoke_MemberName::clazz(obj)->print_value_on(st); 2859 st->print("."); 2860 java_lang_invoke_MemberName::name(obj)->print_value_on(st); 2861 } 2862 } 2863 } 2864 2865 const char* InstanceKlass::internal_name() const { 2866 return external_name(); 2867 } 2868 2869 #if INCLUDE_SERVICES 2870 // Size Statistics 2871 void InstanceKlass::collect_statistics(KlassSizeStats *sz) const { 2872 Klass::collect_statistics(sz); 2873 2874 sz->_inst_size = HeapWordSize * size_helper(); 2875 sz->_vtab_bytes = HeapWordSize * align_object_offset(vtable_length()); 2876 sz->_itab_bytes = HeapWordSize * align_object_offset(itable_length()); 2877 sz->_nonstatic_oopmap_bytes = HeapWordSize * 2878 ((is_interface() || is_anonymous()) ? 2879 align_object_offset(nonstatic_oop_map_size()) : 2880 nonstatic_oop_map_size()); 2881 2882 int n = 0; 2883 n += (sz->_methods_array_bytes = sz->count_array(methods())); 2884 n += (sz->_method_ordering_bytes = sz->count_array(method_ordering())); 2885 n += (sz->_local_interfaces_bytes = sz->count_array(local_interfaces())); 2886 n += (sz->_transitive_interfaces_bytes = sz->count_array(transitive_interfaces())); 2887 n += (sz->_fields_bytes = sz->count_array(fields())); 2888 n += (sz->_inner_classes_bytes = sz->count_array(inner_classes())); 2889 sz->_ro_bytes += n; 2890 2891 const ConstantPool* cp = constants(); 2892 if (cp) { 2893 cp->collect_statistics(sz); 2894 } 2895 2896 const Annotations* anno = annotations(); 2897 if (anno) { 2898 anno->collect_statistics(sz); 2899 } 2900 | 2855 st->print(" = "); 2856 vmtarget->print_value_on(st); 2857 } else { 2858 java_lang_invoke_MemberName::clazz(obj)->print_value_on(st); 2859 st->print("."); 2860 java_lang_invoke_MemberName::name(obj)->print_value_on(st); 2861 } 2862 } 2863 } 2864 2865 const char* InstanceKlass::internal_name() const { 2866 return external_name(); 2867 } 2868 2869 #if INCLUDE_SERVICES 2870 // Size Statistics 2871 void InstanceKlass::collect_statistics(KlassSizeStats *sz) const { 2872 Klass::collect_statistics(sz); 2873 2874 sz->_inst_size = HeapWordSize * size_helper(); 2875 sz->_vtab_bytes = HeapWordSize * vtable_length(); 2876 sz->_itab_bytes = HeapWordSize * itable_length(); 2877 sz->_nonstatic_oopmap_bytes = HeapWordSize * nonstatic_oop_map_size(); 2878 2879 int n = 0; 2880 n += (sz->_methods_array_bytes = sz->count_array(methods())); 2881 n += (sz->_method_ordering_bytes = sz->count_array(method_ordering())); 2882 n += (sz->_local_interfaces_bytes = sz->count_array(local_interfaces())); 2883 n += (sz->_transitive_interfaces_bytes = sz->count_array(transitive_interfaces())); 2884 n += (sz->_fields_bytes = sz->count_array(fields())); 2885 n += (sz->_inner_classes_bytes = sz->count_array(inner_classes())); 2886 sz->_ro_bytes += n; 2887 2888 const ConstantPool* cp = constants(); 2889 if (cp) { 2890 cp->collect_statistics(sz); 2891 } 2892 2893 const Annotations* anno = annotations(); 2894 if (anno) { 2895 anno->collect_statistics(sz); 2896 } 2897 |