Search in sources :

Example 1 with JCJavaVMOption

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);
    }
}
Also used : ImagePointer(com.ibm.dtfj.image.ImagePointer) JCJavaVMOption(com.ibm.dtfj.java.javacore.JCJavaVMOption) BuilderFailureException(com.ibm.dtfj.javacore.builder.BuilderFailureException) JCInvalidArgumentsException(com.ibm.dtfj.java.javacore.JCInvalidArgumentsException)

Aggregations

ImagePointer (com.ibm.dtfj.image.ImagePointer)1 JCInvalidArgumentsException (com.ibm.dtfj.java.javacore.JCInvalidArgumentsException)1 JCJavaVMOption (com.ibm.dtfj.java.javacore.JCJavaVMOption)1 BuilderFailureException (com.ibm.dtfj.javacore.builder.BuilderFailureException)1