Search in sources :

Example 1 with J9HiddenInstanceFieldPointer

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

the class J9ObjectFieldOffsetIterator_V1 method copyHiddenInstanceFieldsList.

// Based on fieldOffsetsStartDo in resolvefield.cpp
private LinkedList<HiddenInstanceField> copyHiddenInstanceFieldsList(J9JavaVMPointer vm) throws CorruptDataException {
    LinkedList<HiddenInstanceField> list = new LinkedList<HiddenInstanceField>();
    J9HiddenInstanceFieldPointer fieldPointer = vm.hiddenInstanceFields();
    while (!fieldPointer.isNull()) {
        list.add(new HiddenInstanceField(fieldPointer));
        fieldPointer = fieldPointer.next();
    }
    return list;
}
Also used : J9HiddenInstanceFieldPointer(com.ibm.j9ddr.vm29.pointer.generated.J9HiddenInstanceFieldPointer) LinkedList(java.util.LinkedList)

Aggregations

J9HiddenInstanceFieldPointer (com.ibm.j9ddr.vm29.pointer.generated.J9HiddenInstanceFieldPointer)1 LinkedList (java.util.LinkedList)1