< prev index next >
src/jdk.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotJVMCIRuntime.java
Print this page
@@ -35,15 +35,15 @@
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
import java.util.TreeMap;
+import jdk.internal.misc.VM;
import jdk.vm.ci.code.Architecture;
import jdk.vm.ci.code.CompilationRequestResult;
import jdk.vm.ci.code.CompiledCode;
import jdk.vm.ci.code.InstalledCode;
-import jdk.vm.ci.common.JVMCIError;
import jdk.vm.ci.hotspot.services.HotSpotJVMCICompilerFactory;
import jdk.vm.ci.hotspot.services.HotSpotVMEventListener;
import jdk.vm.ci.inittimer.InitTimer;
import jdk.vm.ci.inittimer.SuppressFBWarnings;
import jdk.vm.ci.meta.JVMCIMetaAccessContext;
@@ -53,11 +53,10 @@
import jdk.vm.ci.runtime.JVMCI;
import jdk.vm.ci.runtime.JVMCIBackend;
import jdk.vm.ci.runtime.JVMCICompiler;
import jdk.vm.ci.runtime.services.JVMCICompilerFactory;
import jdk.vm.ci.services.Services;
-import jdk.internal.misc.VM;
//JaCoCo Exclude
/**
* HotSpot implementation of a JVMCI runtime.
@@ -139,11 +138,11 @@
if (type == boolean.class) {
this.value = Boolean.parseBoolean(propertyValue);
} else if (type == String.class) {
this.value = propertyValue;
} else {
- throw new JVMCIError("Unexpected option type " + type);
+ throw new InternalError("Unexpected option type " + type);
}
this.isDefault = false;
}
// Saved properties should not be interned - let's be sure
assert value != UNINITIALIZED;
@@ -189,11 +188,11 @@
if (factory.getArchitecture().equalsIgnoreCase(architecture)) {
return factory;
}
}
- throw new JVMCIError("No JVMCI runtime available for the %s architecture", architecture);
+ throw new InternalError(String.format("No JVMCI runtime available for the %s architecture", architecture));
}
/**
* Gets the kind of a word value on the {@linkplain #getHostJVMCIBackend() host} backend.
*/
< prev index next >