use of com.ibm.j9ddr.vm29.j9.gc.GCVMClassSlotIterator in project openj9 by eclipse.
the class RootScanner method scanVMClassSlots.
protected void scanVMClassSlots() throws CorruptDataException {
GCVMClassSlotIterator classSlotIterator = GCVMClassSlotIterator.from();
GCVMClassSlotIterator addressIterator = GCVMClassSlotIterator.from();
setReachability(Reachability.STRONG);
while (classSlotIterator.hasNext()) {
doVMClassSlot(classSlotIterator.next(), addressIterator.nextAddress());
}
}
use of com.ibm.j9ddr.vm29.j9.gc.GCVMClassSlotIterator in project openj9 by eclipse.
the class CheckVMClassSlots method print.
@Override
public void print() {
try {
GCVMClassSlotIterator classSlotIterator = GCVMClassSlotIterator.from();
ScanFormatter formatter = new ScanFormatter(this, "VMClass Slot");
while (classSlotIterator.hasNext()) {
J9ClassPointer theClazz = classSlotIterator.next();
if (theClazz.notNull()) {
formatter.entry(theClazz);
}
}
formatter.end("VMClass Slot");
} catch (CorruptDataException e) {
// TODO: handle exception
}
}
Aggregations