< prev index next >
src/share/vm/oops/constantPool.hpp
Print this page
*** 721,732 ****
bool is_within_bounds(int index) const {
return 0 <= index && index < length();
}
// Sizing (in words)
! static int header_size() { return sizeof(ConstantPool)/HeapWordSize; }
! static int size(int length) { return align_object_size(header_size() + length); }
int size() const { return size(length()); }
#if INCLUDE_SERVICES
void collect_statistics(KlassSizeStats *sz) const;
#endif
--- 721,732 ----
bool is_within_bounds(int index) const {
return 0 <= index && index < length();
}
// Sizing (in words)
! static int header_size() { return sizeof(ConstantPool)/wordSize; }
! static int size(int length) { return align_metadata_size(header_size() + length); }
int size() const { return size(length()); }
#if INCLUDE_SERVICES
void collect_statistics(KlassSizeStats *sz) const;
#endif
< prev index next >