Module openj9.dtfj

Class JavaAbstractClass

    • Constructor Detail

      • JavaAbstractClass

        protected JavaAbstractClass​(JavaRuntime vm,
                                    ImagePointer id,
                                    int modifiers,
                                    long loaderID,
                                    ImagePointer objectID,
                                    int flagOffset,
                                    int hashcodeSlot)
    • Method Detail

      • addInterfaceName

        public void addInterfaceName​(String interfaceName)
      • getInstanceSize

        public abstract int getInstanceSize​(JavaObject instance)
        Parameters:
        instance - The instance is needed for array types to calculate the size of a per-instance basis
        Returns:
        The size, in bytes, of an instance of this class (required for iterating the heap)
      • getHashcodeSlotSize

        public int getHashcodeSlotSize()
        Returns the size of the extra slot needed for stored hashcode - if the object was moved - in JVMs built with J9VM_OPT_NEW_OBJECT_HASH. If the hashcode could fit in spare space in the object header, this will return 0. . *
        Returns:
        object instance size delta, in bytes
      • addClassLoaderReference

        protected void addClassLoaderReference​(Collection coll)
      • addSuperclassReference

        protected void addSuperclassReference​(Collection coll)
      • addClassObjectReference

        protected void addClassObjectReference​(Collection coll)