Class GCObjectIterator
java.lang.Object
com.ibm.j9ddr.vm29.j9.gc.GCBase
com.ibm.j9ddr.vm29.j9.gc.GCIterator
com.ibm.j9ddr.vm29.j9.gc.GCObjectIterator
- All Implemented Interfaces:
SlotIterator
,Iterator
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer
-
Constructor Summary
ModifierConstructorDescriptionprotected
GCObjectIterator
(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer object, boolean includeClassSlot) -
Method Summary
Modifier and TypeMethodDescriptionstatic GCObjectIterator
fromJ9Class
(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer clazz, VoidPointer addr) Factory method to construct an appropriate object iterator.static GCObjectIterator
fromJ9Object
(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer object, boolean includeClassSlot) Factory method to construct an appropriate object iterator.Methods declared in class com.ibm.j9ddr.vm29.j9.gc.GCBase
getExtensions, getJavaVM
Methods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods declared in interface java.util.Iterator
forEachRemaining, hasNext, next, remove
Methods declared in interface com.ibm.j9ddr.vm29.j9.SlotIterator
nextAddress
-
Field Details
-
object
protected com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer object -
includeClassSlot
protected boolean includeClassSlot
-
-
Constructor Details
-
GCObjectIterator
protected GCObjectIterator(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer object, boolean includeClassSlot) throws CorruptDataException - Throws:
CorruptDataException
-
-
Method Details
-
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 iterateincludeClassSlot
- 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:
addr
- pointer to object dataobject
- Object to iterateincludeClassSlot
- whether or not to include class of the object- Throws:
CorruptDataException
-