< prev index next >

src/hotspot/share/oops/arrayOop.hpp

Print this page
*** 42,11 ***
  class arrayOopDesc : public oopDesc {
    friend class VMStructs;
    friend class arrayOopDescTest;
  
    // Interpreter/Compiler offsets
! 
    // Header size computation.
    // The header is considered the oop part of this type plus the length.
    // Returns the aligned header_size_in_bytes.  This is not equivalent to
    // sizeof(arrayOopDesc) which should not appear in the code.
    static int header_size_in_bytes() {
--- 42,11 ---
  class arrayOopDesc : public oopDesc {
    friend class VMStructs;
    friend class arrayOopDescTest;
  
    // Interpreter/Compiler offsets
! protected:
    // Header size computation.
    // The header is considered the oop part of this type plus the length.
    // Returns the aligned header_size_in_bytes.  This is not equivalent to
    // sizeof(arrayOopDesc) which should not appear in the code.
    static int header_size_in_bytes() {

*** 69,11 ***
  
    // Check whether an element of a typeArrayOop with the given type must be
    // aligned 0 mod 8.  The typeArrayOop itself must be aligned at least this
    // strongly.
    static bool element_type_should_be_aligned(BasicType type) {
!     return type == T_DOUBLE || type == T_LONG;
    }
  
   public:
    // The _length field is not declared in C++.  It is allocated after the
    // declared nonstatic fields in arrayOopDesc if not compressed, otherwise
--- 69,11 ---
  
    // Check whether an element of a typeArrayOop with the given type must be
    // aligned 0 mod 8.  The typeArrayOop itself must be aligned at least this
    // strongly.
    static bool element_type_should_be_aligned(BasicType type) {
!     return type == T_DOUBLE || type == T_LONG || type == T_INLINE_TYPE;
    }
  
   public:
    // The _length field is not declared in C++.  It is allocated after the
    // declared nonstatic fields in arrayOopDesc if not compressed, otherwise
< prev index next >