< prev index next >

src/hotspot/share/services/classLoadingService.cpp

Print this page

        

@@ -170,11 +170,13 @@
   if (k->is_instance_klass()) {
     class_size += k->methods()->size();
     // FIXME: Need to count the contents of methods
     class_size += k->constants()->size();
     class_size += k->local_interfaces()->size();
+    if (k->transitive_interfaces() != NULL) {
     class_size += k->transitive_interfaces()->size();
+    }
     // We do not have to count implementors, since we only store one!
     // FIXME: How should these be accounted for, now when they have moved.
     //class_size += k->fields()->size();
   }
   return class_size * oopSize;
< prev index next >