Search in sources :

Example 1 with MM_UnfinalizedObjectListPointer

use of com.ibm.j9ddr.vm29.pointer.generated.MM_UnfinalizedObjectListPointer in project openj9 by eclipse.

the class CheckUnfinalizedList method print.

@Override
public void print() {
    try {
        MM_UnfinalizedObjectListPointer unfinalizedObjectList = getGCExtensions().unfinalizedObjectLists();
        ScanFormatter formatter = new ScanFormatter(this, "unfinalizedObjectList");
        while (unfinalizedObjectList.notNull()) {
            formatter.section("list", unfinalizedObjectList);
            J9ObjectPointer object = unfinalizedObjectList._head();
            while (object.notNull()) {
                formatter.entry(object);
                object = ObjectAccessBarrier.getFinalizeLink(object);
            }
            formatter.endSection();
            unfinalizedObjectList = unfinalizedObjectList._nextList();
        }
        formatter.end("unfinalizedObjectList");
    } catch (CorruptDataException e) {
    // TODO: handle exception
    }
}
Also used : MM_UnfinalizedObjectListPointer(com.ibm.j9ddr.vm29.pointer.generated.MM_UnfinalizedObjectListPointer) CorruptDataException(com.ibm.j9ddr.CorruptDataException) J9ObjectPointer(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer)

Example 2 with MM_UnfinalizedObjectListPointer

use of com.ibm.j9ddr.vm29.pointer.generated.MM_UnfinalizedObjectListPointer in project openj9 by eclipse.

the class CheckUnfinalizedList method check.

@Override
public void check() {
    try {
        MM_UnfinalizedObjectListPointer unfinalizedObjectList = getGCExtensions().unfinalizedObjectLists();
        while (unfinalizedObjectList.notNull()) {
            J9ObjectPointer object = unfinalizedObjectList._head();
            while (object.notNull()) {
                if (_engine.checkSlotUnfinalizedList(object, unfinalizedObjectList) != CheckBase.J9MODRON_SLOT_ITERATOR_OK) {
                    return;
                }
                object = ObjectAccessBarrier.getFinalizeLink(object);
            }
            unfinalizedObjectList = unfinalizedObjectList._nextList();
        }
    } catch (CorruptDataException e) {
    // TODO: handle exception
    }
}
Also used : MM_UnfinalizedObjectListPointer(com.ibm.j9ddr.vm29.pointer.generated.MM_UnfinalizedObjectListPointer) CorruptDataException(com.ibm.j9ddr.CorruptDataException) J9ObjectPointer(com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer)

Aggregations

CorruptDataException (com.ibm.j9ddr.CorruptDataException)2 J9ObjectPointer (com.ibm.j9ddr.vm29.pointer.generated.J9ObjectPointer)2 MM_UnfinalizedObjectListPointer (com.ibm.j9ddr.vm29.pointer.generated.MM_UnfinalizedObjectListPointer)2