< prev index next >
src/hotspot/share/oops/typeArrayOop.hpp
Print this page
@@ -112,11 +112,11 @@
// Sizing
// Returns the number of words necessary to hold an array of "len"
// elements each of the given "byte_size".
- private:
+
static int 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");
@@ -128,10 +128,9 @@
assert(size_in_words <= (julong)max_jint, "no overflow");
return align_object_size((intptr_t)size_in_words);
}
- public:
inline int object_size();
};
#endif // SHARE_OOPS_TYPEARRAYOOP_HPP
< prev index next >