Search in sources :

Example 1 with CorruptJavaObject

use of com.ibm.j9ddr.vm29.view.dtfj.java.corrupt.CorruptJavaObject in project openj9 by eclipse.

the class DTFJJavaObject method getHeap.

public JavaHeap getHeap() throws CorruptDataException, DataUnavailable {
    try {
        if (heap == null) {
            DTFJJavaRuntime runtime = DTFJContext.getRuntime();
            heap = runtime.getHeapFromAddress(DTFJContext.getImagePointer(object.getAddress()));
            if (heap == null) {
                throw new CorruptDataException(new CorruptJavaObject(null, object));
            }
        }
        return heap;
    } catch (Throwable t) {
        throw J9DDRDTFJUtils.handleAsCorruptDataException(DTFJContext.getProcess(), t);
    }
}
Also used : CorruptJavaObject(com.ibm.j9ddr.vm29.view.dtfj.java.corrupt.CorruptJavaObject) CorruptDataException(com.ibm.dtfj.image.CorruptDataException)

Aggregations

CorruptDataException (com.ibm.dtfj.image.CorruptDataException)1 CorruptJavaObject (com.ibm.j9ddr.vm29.view.dtfj.java.corrupt.CorruptJavaObject)1