Module openj9.dtfj

Class GCObjectIterator

    • Field Detail

      • object

        protected com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer object
      • includeClassSlot

        protected boolean includeClassSlot
    • Constructor Detail

    • Method Detail

      • fromJ9Object

        public static GCObjectIterator fromJ9Object​(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer object,
                                                    boolean includeClassSlot)
                                             throws CorruptDataException
        Factory method to construct an appropriate object iterator.
        Parameters:
        object - Object to iterate
        includeClassSlot - whether or not to include class of the object
        Throws:
        CorruptDataException
      • fromJ9Class

        public static GCObjectIterator fromJ9Class​(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer clazz,
                                                   VoidPointer addr)
                                            throws CorruptDataException
        Factory method to construct an appropriate object iterator.
        Parameters:
        object - Object to iterate
        includeClassSlot - whether or not to include class of the object
        addr - pointer to object data
        Throws:
        CorruptDataException