< prev index next >
src/jdk.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotJVMCICompilerConfig.java
Print this page
@@ -24,11 +24,10 @@
import java.lang.reflect.Module;
import jdk.vm.ci.code.CompilationRequest;
import jdk.vm.ci.code.CompilationRequestResult;
-import jdk.vm.ci.common.JVMCIError;
import jdk.vm.ci.hotspot.HotSpotJVMCIRuntime.Option;
import jdk.vm.ci.runtime.JVMCICompiler;
import jdk.vm.ci.runtime.JVMCIRuntime;
import jdk.vm.ci.runtime.services.JVMCICompilerFactory;
import jdk.vm.ci.services.Services;
@@ -36,11 +35,11 @@
final class HotSpotJVMCICompilerConfig {
private static class DummyCompilerFactory extends JVMCICompilerFactory implements JVMCICompiler {
public CompilationRequestResult compileMethod(CompilationRequest request) {
- throw new JVMCIError("no JVMCI compiler selected");
+ throw new InternalError("no JVMCI compiler selected");
}
@Override
public String getCompilerName() {
return "<none>";
@@ -74,11 +73,11 @@
f.onSelection();
factory = f;
}
}
if (factory == null) {
- throw new JVMCIError("JVMCI compiler '%s' not found", compilerName);
+ throw new InternalError(String.format("JVMCI compiler '%s' not found", compilerName));
}
} else {
factory = new DummyCompilerFactory();
}
compilerFactory = factory;
< prev index next >