comparison jvmci/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotJVMCIRuntime.java @ 23387:a920338dd4d4

remove JVMCIError and UnsafeUtil classes (JDK-8156759)
author Doug Simon <doug.simon@oracle.com>
date Wed, 11 May 2016 15:54:36 +0200
parents f102ee538647
children dd9f3badc978
comparison
equal deleted inserted replaced
23386:2625b10989ee 23387:a920338dd4d4
39 39
40 import jdk.vm.ci.code.Architecture; 40 import jdk.vm.ci.code.Architecture;
41 import jdk.vm.ci.code.CompilationRequestResult; 41 import jdk.vm.ci.code.CompilationRequestResult;
42 import jdk.vm.ci.code.CompiledCode; 42 import jdk.vm.ci.code.CompiledCode;
43 import jdk.vm.ci.code.InstalledCode; 43 import jdk.vm.ci.code.InstalledCode;
44 import jdk.vm.ci.common.JVMCIError;
45 import jdk.vm.ci.hotspot.services.HotSpotJVMCICompilerFactory; 44 import jdk.vm.ci.hotspot.services.HotSpotJVMCICompilerFactory;
46 import jdk.vm.ci.hotspot.services.HotSpotVMEventListener; 45 import jdk.vm.ci.hotspot.services.HotSpotVMEventListener;
47 import jdk.vm.ci.inittimer.InitTimer; 46 import jdk.vm.ci.inittimer.InitTimer;
48 import jdk.vm.ci.inittimer.SuppressFBWarnings; 47 import jdk.vm.ci.inittimer.SuppressFBWarnings;
49 import jdk.vm.ci.meta.JVMCIMetaAccessContext; 48 import jdk.vm.ci.meta.JVMCIMetaAccessContext;
138 if (type == boolean.class) { 137 if (type == boolean.class) {
139 this.value = Boolean.parseBoolean(propertyValue); 138 this.value = Boolean.parseBoolean(propertyValue);
140 } else if (type == String.class) { 139 } else if (type == String.class) {
141 this.value = propertyValue; 140 this.value = propertyValue;
142 } else { 141 } else {
143 throw new JVMCIError("Unexpected option type " + type); 142 throw new InternalError("Unexpected option type " + type);
144 } 143 }
145 this.isDefault = false; 144 this.isDefault = false;
146 } 145 }
147 // Saved properties should not be interned - let's be sure 146 // Saved properties should not be interned - let's be sure
148 assert value != UNINITIALIZED; 147 assert value != UNINITIALIZED;
188 if (factory.getArchitecture().equalsIgnoreCase(architecture)) { 187 if (factory.getArchitecture().equalsIgnoreCase(architecture)) {
189 return factory; 188 return factory;
190 } 189 }
191 } 190 }
192 191
193 throw new JVMCIError("No JVMCI runtime available for the %s architecture", architecture); 192 throw new InternalError(String.format("No JVMCI runtime available for the %s architecture", architecture));
194 } 193 }
195 194
196 /** 195 /**
197 * Gets the kind of a word value on the {@linkplain #getHostJVMCIBackend() host} backend. 196 * Gets the kind of a word value on the {@linkplain #getHostJVMCIBackend() host} backend.
198 */ 197 */