< prev index next > src/hotspot/share/oops/typeArrayOop.hpp
Print this page
// Sizing
// Returns the number of words necessary to hold an array of "len"
// elements each of the given "byte_size".
- private:
static size_t object_size(int lh, int length) {
int instance_header_size = Klass::layout_helper_header_size(lh);
int element_shift = Klass::layout_helper_log2_element_size(lh);
DEBUG_ONLY(BasicType etype = Klass::layout_helper_element_type(lh));
assert(length <= arrayOopDesc::max_array_length(etype), "no overflow");
< prev index next >