Class Model64

  • All Implemented Interfaces:
    DataModel

    public class Model64
    extends java.lang.Object
    implements DataModel
    64 bits model.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int align  
      private boolean compKlass  
      private boolean compRefs  
    • Constructor Summary

      Constructors 
      Constructor Description
      Model64​(boolean compressedRefs, boolean compressedClasses)  
      Model64​(boolean compressedRefs, boolean compressedClasses, int align)  
    • Field Detail

      • align

        private final int align
      • compRefs

        private final boolean compRefs
      • compKlass

        private final boolean compKlass
    • Constructor Detail

      • Model64

        public Model64​(boolean compressedRefs,
                       boolean compressedClasses,
                       int align)
      • Model64

        public Model64​(boolean compressedRefs,
                       boolean compressedClasses)
    • Method Detail

      • 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​(java.lang.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 java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object