Class Model32

java.lang.Object
org.openjdk.jol.datamodel.Model32
All Implemented Interfaces:
DataModel

public class Model32 extends Object implements DataModel
32 bits model.
  • Field Details

    • align

      private final int align
  • Constructor Details

    • Model32

      public Model32()
    • Model32

      public Model32(int align)
  • Method Details

    • markHeaderSize

      public int markHeaderSize()
      Description copied from interface: DataModel
      Return the mark header size.
      Specified by:
      markHeaderSize in interface DataModel
      Returns:
      mark header size in bytes.
    • classHeaderSize

      public int classHeaderSize()
      Description copied from interface: DataModel
      Return the class header size.
      Specified by:
      classHeaderSize in interface DataModel
      Returns:
      class header size in bytes.
    • arrayLengthHeaderSize

      public int arrayLengthHeaderSize()
      Description copied from interface: DataModel
      Return the array length header size.
      Specified by:
      arrayLengthHeaderSize in interface DataModel
      Returns:
      array length header size in bytes.
    • headerSize

      public int headerSize()
      Description copied from interface: DataModel
      Return the object header size.
      Specified by:
      headerSize in interface DataModel
      Returns:
      object header size in bytes.
    • arrayHeaderSize

      public int arrayHeaderSize()
      Description copied from interface: DataModel
      Return the array header size.
      Specified by:
      arrayHeaderSize in interface DataModel
      Returns:
      object header size in bytes.
    • sizeOf

      public int sizeOf(String klass)
      Description copied from interface: DataModel
      Return the size of the type.
      Specified by:
      sizeOf in interface DataModel
      Parameters:
      klass - string representation of the type.
      Returns:
      size in bytes.
    • objectAlignment

      public int objectAlignment()
      Description copied from interface: DataModel
      Return the object alignment.
      Specified by:
      objectAlignment in interface DataModel
      Returns:
      minimal object alignment
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object