equal
deleted
inserted
replaced
754 return 0 <= index && index < length(); |
754 return 0 <= index && index < length(); |
755 } |
755 } |
756 |
756 |
757 // Sizing (in words) |
757 // Sizing (in words) |
758 static int header_size() { |
758 static int header_size() { |
759 return align_size_up((int)sizeof(ConstantPool), wordSize) / wordSize; |
759 return align_up((int)sizeof(ConstantPool), wordSize) / wordSize; |
760 } |
760 } |
761 static int size(int length) { return align_metadata_size(header_size() + length); } |
761 static int size(int length) { return align_metadata_size(header_size() + length); } |
762 int size() const { return size(length()); } |
762 int size() const { return size(length()); } |
763 #if INCLUDE_SERVICES |
763 #if INCLUDE_SERVICES |
764 void collect_statistics(KlassSizeStats *sz) const; |
764 void collect_statistics(KlassSizeStats *sz) const; |