use of com.ibm.j9ddr.vm29.view.dtfj.java.DTFJJavaRuntime in project openj9 by eclipse.
the class DTFJBootstrapShim method run.
public void run(IVMData vmData, Object[] userData) {
Object[] passbackArray = (Object[]) userData[0];
J9DDRImageProcess process = (J9DDRImageProcess) userData[1];
DTFJJavaRuntime runtime = new DTFJJavaRuntime();
passbackArray[0] = runtime;
DTFJContext.setRuntime(runtime);
DTFJContext.setImageProcess(process);
}
use of com.ibm.j9ddr.vm29.view.dtfj.java.DTFJJavaRuntime 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