use of com.ibm.dtfj.java.javacore.JCJavaVMOption in project openj9 by eclipse.
the class JavaRuntimeBuilder method addVMOption.
/**
* Adds an individual VM option to JavaVMInitArgs, with 'extra information' field
*/
public void addVMOption(String option, long extraInfo) throws BuilderFailureException {
if (fJavaVMInitArgs == null) {
throw new BuilderFailureException("JCJavaVMInitArgs must be created before options added");
}
try {
ImagePointer pointer = fAddressSpace.getPointer(extraInfo);
fJavaVMInitArgs.addOption(new JCJavaVMOption(option, pointer));
} catch (JCInvalidArgumentsException e) {
throw new BuilderFailureException(e);
}
}
Aggregations