< prev index next >

src/hotspot/share/oops/instanceOop.hpp

Print this page
*** 30,18 ***
  // An instanceOop is an instance of a Java Class
  // Evaluating "new HashTable()" will create an instanceOop.
  
  class instanceOopDesc : public oopDesc {
   public:
-   // aligned header size.
-   static int header_size() { return sizeof(instanceOopDesc)/HeapWordSize; }
- 
    // If compressed, the offset of the fields of the instance may not be aligned.
    static int base_offset_in_bytes() {
!     return (UseCompressedClassPointers) ?
-             klass_gap_offset_in_bytes() :
-             sizeof(instanceOopDesc);
- 
    }
  };
  
  #endif // SHARE_OOPS_INSTANCEOOP_HPP
--- 30,12 ---
  // An instanceOop is an instance of a Java Class
  // Evaluating "new HashTable()" will create an instanceOop.
  
  class instanceOopDesc : public oopDesc {
   public:
    // If compressed, the offset of the fields of the instance may not be aligned.
    static int base_offset_in_bytes() {
!     return oopDesc::base_offset_in_bytes();
    }
  };
  
  #endif // SHARE_OOPS_INSTANCEOOP_HPP
< prev index next >