use of com.ibm.j9ddr.IVMData in project openj9 by eclipse.
the class DDRTestLauncher method main.
public static void main(String[] args) throws Exception {
// This code would be located in the DTFJ ImageFactory
String testName = args[0];
String coreFileName = args[1];
List<String> remainingArguments = new LinkedList<String>();
for (int i = 2; i < args.length; i++) {
remainingArguments.add(args[i]);
}
ICore core = CoreReader.readCoreFile(coreFileName);
List<IAddressSpace> addressSpaces = new ArrayList<IAddressSpace>(core.getAddressSpaces());
IVMData aVMData = VMDataFactory.getVMData(addressSpaces.get(0).getProcesses().iterator().next());
aVMData.bootstrap(testName, remainingArguments);
}
Aggregations