< prev index next >

src/hotspot/share/oops/typeArrayOop.hpp

Print this page
*** 113,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");
--- 113,11 ---
  
    // Sizing
  
    // Returns the number of words necessary to hold an array of "len"
    // elements each of the given "byte_size".
! 
    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");
< prev index next >