equal
deleted
inserted
replaced
2907 #if INCLUDE_SERVICES |
2907 #if INCLUDE_SERVICES |
2908 // Size Statistics |
2908 // Size Statistics |
2909 void InstanceKlass::collect_statistics(KlassSizeStats *sz) const { |
2909 void InstanceKlass::collect_statistics(KlassSizeStats *sz) const { |
2910 Klass::collect_statistics(sz); |
2910 Klass::collect_statistics(sz); |
2911 |
2911 |
2912 sz->_inst_size = HeapWordSize * size_helper(); |
2912 sz->_inst_size = wordSize * size_helper(); |
2913 sz->_vtab_bytes = HeapWordSize * vtable_length(); |
2913 sz->_vtab_bytes = wordSize * vtable_length(); |
2914 sz->_itab_bytes = HeapWordSize * itable_length(); |
2914 sz->_itab_bytes = wordSize * itable_length(); |
2915 sz->_nonstatic_oopmap_bytes = HeapWordSize * nonstatic_oop_map_size(); |
2915 sz->_nonstatic_oopmap_bytes = wordSize * nonstatic_oop_map_size(); |
2916 |
2916 |
2917 int n = 0; |
2917 int n = 0; |
2918 n += (sz->_methods_array_bytes = sz->count_array(methods())); |
2918 n += (sz->_methods_array_bytes = sz->count_array(methods())); |
2919 n += (sz->_method_ordering_bytes = sz->count_array(method_ordering())); |
2919 n += (sz->_method_ordering_bytes = sz->count_array(method_ordering())); |
2920 n += (sz->_local_interfaces_bytes = sz->count_array(local_interfaces())); |
2920 n += (sz->_local_interfaces_bytes = sz->count_array(local_interfaces())); |