- java.lang.Object
-
- com.ibm.j9ddr.vm29.j9.walkers.HeapWalker
-
- All Implemented Interfaces:
IEventListener
public class HeapWalker extends Object implements IEventListener
-
-
Constructor Summary
Constructors Constructor Description HeapWalker(com.ibm.j9ddr.vm29.pointer.generated.J9JavaVMPointer vm, GCHeapRegionDescriptor hrd, HeapWalkerEvents sink)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SortedSet<ObjectMonitor>
getFlatLockedMonitors()
Returns a lazily-initialized list of flat-locked object monitors.boolean
hasNext()
void
walk()
-
Methods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods declared in interface com.ibm.j9ddr.events.IEventListener
corruptData
-
-
-
-
Constructor Detail
-
HeapWalker
public HeapWalker(com.ibm.j9ddr.vm29.pointer.generated.J9JavaVMPointer vm, GCHeapRegionDescriptor hrd, HeapWalkerEvents sink) throws CorruptDataException
- Throws:
CorruptDataException
-
-
Method Detail
-
hasNext
public boolean hasNext()
-
walk
public void walk()
-
getFlatLockedMonitors
public static SortedSet<ObjectMonitor> getFlatLockedMonitors() throws CorruptDataException
Returns a lazily-initialized list of flat-locked object monitors. Will run initialization if it hasn't already been performed.- Returns:
- List of flat-locked object monitors
- Throws:
CorruptDataException
-
-