--- old/src/hotspot/share/oops/typeArrayOop.hpp 2019-03-11 14:26:27.466354861 +0100 +++ new/src/hotspot/share/oops/typeArrayOop.hpp 2019-03-11 14:26:27.258354863 +0100 @@ -114,7 +114,7 @@ // 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); @@ -130,7 +130,6 @@ return align_object_size((intptr_t)size_in_words); } - public: inline int object_size(); };