hotspot/src/share/vm/oops/constantPool.hpp
changeset 46619 a3919f5e8d2b
parent 46618 d503911aa948
child 46625 edefffab74e2
equal deleted inserted replaced
46618:d503911aa948 46619:a3919f5e8d2b
   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;