Search in sources :

Example 1 with GCVMClassSlotIterator

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());
    }
}
Also used : GCVMClassSlotIterator(com.ibm.j9ddr.vm29.j9.gc.GCVMClassSlotIterator)

Example 2 with GCVMClassSlotIterator

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
    }
}
Also used : J9ClassPointer(com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer) GCVMClassSlotIterator(com.ibm.j9ddr.vm29.j9.gc.GCVMClassSlotIterator) CorruptDataException(com.ibm.j9ddr.CorruptDataException)

Aggregations

GCVMClassSlotIterator (com.ibm.j9ddr.vm29.j9.gc.GCVMClassSlotIterator)2 CorruptDataException (com.ibm.j9ddr.CorruptDataException)1 J9ClassPointer (com.ibm.j9ddr.vm29.pointer.generated.J9ClassPointer)1