Mercurial > hg > graal-jvmci-8
diff jvmci/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotVMConfigVerifier.java @ 23392:b3a816d3b844
Backed out changeset: a920338dd4d4
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Thu, 12 May 2016 11:06:49 +0200 |
parents | a920338dd4d4 |
children |
line wrap: on
line diff
--- a/jvmci/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotVMConfigVerifier.java Thu May 12 14:24:15 2016 +0200 +++ b/jvmci/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotVMConfigVerifier.java Thu May 12 11:06:49 2016 +0200 @@ -34,6 +34,7 @@ import java.util.Arrays; import java.util.Objects; +import jdk.vm.ci.common.JVMCIError; import jdk.internal.org.objectweb.asm.ClassReader; import jdk.internal.org.objectweb.asm.ClassVisitor; import jdk.internal.org.objectweb.asm.Label; @@ -67,7 +68,7 @@ */ return true; } catch (IOException e) { - throw new InternalError(e); + throw new JVMCIError(e); } } @@ -75,7 +76,7 @@ try { return Class.forName(name.replace('/', '.')); } catch (ClassNotFoundException e) { - throw new InternalError(e); + throw new JVMCIError(e); } } @@ -109,7 +110,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 InternalError(errorMessage); + throw new JVMCIError(errorMessage); }