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);
}
}
Aggregations