1.1 --- a/src/share/vm/oops/constantPool.hpp Thu Jan 24 23:30:45 2013 -0800 1.2 +++ b/src/share/vm/oops/constantPool.hpp Fri Jan 25 15:06:18 2013 -0500 1.3 @@ -80,6 +80,7 @@ 1.4 } 1.5 }; 1.6 1.7 +class KlassSizeStats; 1.8 class ConstantPool : public Metadata { 1.9 friend class VMStructs; 1.10 friend class BytecodeInterpreter; // Directly extracts an oop in the pool for fast instanceof/checkcast 1.11 @@ -684,9 +685,13 @@ 1.12 return 0 <= index && index < length(); 1.13 } 1.14 1.15 + // Sizing (in words) 1.16 static int header_size() { return sizeof(ConstantPool)/HeapWordSize; } 1.17 static int size(int length) { return align_object_size(header_size() + length); } 1.18 int size() const { return size(length()); } 1.19 +#if INCLUDE_SERVICES 1.20 + void collect_statistics(KlassSizeStats *sz) const; 1.21 +#endif 1.22 1.23 friend class ClassFileParser; 1.24 friend class SystemDictionary;