Search in sources :

Example 1 with HostedOptionKey

use of com.oracle.svm.core.option.HostedOptionKey in project graal by oracle.

the class RuntimeOptionFeature method collectOptionKeys.

private Object collectOptionKeys(Object obj) {
    if (obj instanceof OptionKey) {
        OptionKey<?> optionKey = (OptionKey<?>) obj;
        if (!(optionKey instanceof HostedOptionKey)) {
            OptionDescriptor optionDescriptor = optionKey.getDescriptor();
            if (optionDescriptor == null) {
                throw VMError.shouldNotReachHere("No OptionDescriptor registered for an OptionKey. Often that is the result of an incomplete build. " + "The registration code is generated by an annotation processor at build time, so a clean and full rebuild often helps to solve this problem");
            }
            reachableOptions.put(optionDescriptor, true);
        }
    }
    return obj;
}
Also used : HostedOptionKey(com.oracle.svm.core.option.HostedOptionKey) OptionDescriptor(org.graalvm.compiler.options.OptionDescriptor) OptionKey(org.graalvm.compiler.options.OptionKey) HostedOptionKey(com.oracle.svm.core.option.HostedOptionKey)

Aggregations

HostedOptionKey (com.oracle.svm.core.option.HostedOptionKey)1 OptionDescriptor (org.graalvm.compiler.options.OptionDescriptor)1 OptionKey (org.graalvm.compiler.options.OptionKey)1