src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotCodeCacheProvider.java
changeset 57957 4364524f8cac
parent 54669 ad45b3802d4e
equal deleted inserted replaced
57956:e0b8b019d2f5 57957:4364524f8cac
   142                 if (msg != null) {
   142                 if (msg != null) {
   143                     msg = String.format("Code installation failed: %s%n%s", resultDesc, msg);
   143                     msg = String.format("Code installation failed: %s%n%s", resultDesc, msg);
   144                 } else {
   144                 } else {
   145                     msg = String.format("Code installation failed: %s", resultDesc);
   145                     msg = String.format("Code installation failed: %s", resultDesc);
   146                 }
   146                 }
   147                 if (result == config.codeInstallResultDependenciesInvalid) {
       
   148                     throw new AssertionError(resultDesc + " " + msg);
       
   149                 }
       
   150                 throw new BailoutException(result != config.codeInstallResultDependenciesFailed, msg);
   147                 throw new BailoutException(result != config.codeInstallResultDependenciesFailed, msg);
   151             } else {
   148             } else {
   152                 throw new BailoutException("Error installing %s: %s", ((HotSpotCompiledCode) compiledCode).getName(), resultDesc);
   149                 throw new BailoutException("Error installing %s: %s", ((HotSpotCompiledCode) compiledCode).getName(), resultDesc);
   153             }
   150             }
   154         }
   151         }