hotspot/src/share/vm/oops/klassVtable.cpp
changeset 13952 e3cf184080bc
parent 13728 882756847a04
child 14385 959bbcc16725
equal deleted inserted replaced
13918:b01a48301e67 13952:e3cf184080bc
  1094 
  1094 
  1095   static void compute() {
  1095   static void compute() {
  1096     SystemDictionary::classes_do(do_class);
  1096     SystemDictionary::classes_do(do_class);
  1097     fixed  = no_klasses * oopSize;      // vtable length
  1097     fixed  = no_klasses * oopSize;      // vtable length
  1098     // filler size is a conservative approximation
  1098     // filler size is a conservative approximation
  1099     filler = oopSize * (no_klasses - no_instance_klasses) * (sizeof(InstanceKlass) - sizeof(arrayKlass) - 1);
  1099     filler = oopSize * (no_klasses - no_instance_klasses) * (sizeof(InstanceKlass) - sizeof(ArrayKlass) - 1);
  1100     entries = sizeof(vtableEntry) * sum_of_vtable_len;
  1100     entries = sizeof(vtableEntry) * sum_of_vtable_len;
  1101     array_entries = sizeof(vtableEntry) * sum_of_array_vtable_len;
  1101     array_entries = sizeof(vtableEntry) * sum_of_array_vtable_len;
  1102   }
  1102   }
  1103 };
  1103 };
  1104 
  1104