--- old/src/jdk.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotVMConfigVerifier.java 2016-05-12 09:40:48.000000000 +0200 +++ new/src/jdk.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotVMConfigVerifier.java 2016-05-12 09:40:48.000000000 +0200 @@ -33,14 +33,13 @@ import java.util.Arrays; import java.util.Objects; -import jdk.vm.ci.common.JVMCIError; +import jdk.internal.misc.Unsafe; import jdk.internal.org.objectweb.asm.ClassReader; import jdk.internal.org.objectweb.asm.ClassVisitor; import jdk.internal.org.objectweb.asm.Label; import jdk.internal.org.objectweb.asm.MethodVisitor; import jdk.internal.org.objectweb.asm.Opcodes; import jdk.internal.org.objectweb.asm.Type; -import jdk.internal.misc.Unsafe; /** * A {@link ClassVisitor} that verifies {@link HotSpotVMConfig} does not access {@link Unsafe} from @@ -61,7 +60,7 @@ cr.accept(cv, 0); return true; } catch (IOException e) { - throw new JVMCIError(e); + throw new InternalError(e); } } @@ -79,7 +78,7 @@ try { return Class.forName(name.replace('/', '.')); } catch (ClassNotFoundException e) { - throw new JVMCIError(e); + throw new InternalError(e); } } @@ -101,7 +100,7 @@ void error(String message) { String errorMessage = format("%s:%d: %s is not allowed in the context of compilation replay. The unsafe access should be moved into the %s constructor and the result cached in a field", sourceFile, lineNo, message, HotSpotVMConfig.class.getSimpleName()); - throw new JVMCIError(errorMessage); + throw new InternalError(errorMessage); }