< prev index next >
src/share/vm/memory/heapInspection.cpp
Print this page
rev 9847 : 8146395: Add inline qualifier in oop.hpp and fix inlining in gc files
Summary: Fix remaining issues after 8146401
@@ -38,10 +38,18 @@
#include "gc/parallel/parallelScavengeHeap.hpp"
#endif // INCLUDE_ALL_GCS
// HeapInspection
+int KlassSizeStats::count(oop x) {
+ return (HeapWordSize * (((x) != NULL) ? (x)->size() : 0));
+}
+
+int KlassSizeStats::count_array(objArrayOop x) {
+ return (HeapWordSize * (((x) != NULL) ? (x)->size() : 0));
+}
+
inline KlassInfoEntry::~KlassInfoEntry() {
if (_subclasses != NULL) {
delete _subclasses;
}
}
< prev index next >