Module openj9.dtfj

Class JavaArrayClass

    • Constructor Detail

      • JavaArrayClass

        public JavaArrayClass​(JavaRuntime runtime,
                              ImagePointer pointer,
                              int modifiers,
                              int flagOffset,
                              int sizeOffset,
                              int bytesForSize,
                              int firstElementOffset,
                              long leafClassID,
                              int dimension,
                              long loaderID,
                              ImagePointer objectID,
                              int hashcodeSlot)
    • Method Detail

      • getLeafClass

        public JavaClass getLeafClass()
      • getBytesPerElement

        public int getBytesPerElement​(int refFieldSize)
                               throws CorruptDataException
        Looks up the class name of the child elements to determine the size of one element
        Parameters:
        refFieldSize - The size of reference fields (fj9object_t) in the heap of the object instance we are sizing
        Returns:
        The size of one element, in bytes
        Throws:
        CorruptDataException
      • getFirstElementOffset

        public int getFirstElementOffset()
        Returns:
      • getSizeOffset

        public int getSizeOffset()
        Returns:
        The offset into an array where the length (in elements) is found
      • getNumberOfSizeBytes

        public int getNumberOfSizeBytes()
        Returns:
        The number of bytes to read from the object header as the size field