diff --git a/substratevm/src/com.oracle.svm.graal/src/com/oracle/svm/graal/hosted/runtimecompilation/CallTreeInfo.java b/substratevm/src/com.oracle.svm.graal/src/com/oracle/svm/graal/hosted/runtimecompilation/CallTreeInfo.java index d333ad27fd38..55a4eccfe4ba 100644 --- a/substratevm/src/com.oracle.svm.graal/src/com/oracle/svm/graal/hosted/runtimecompilation/CallTreeInfo.java +++ b/substratevm/src/com.oracle.svm.graal/src/com/oracle/svm/graal/hosted/runtimecompilation/CallTreeInfo.java @@ -162,7 +162,7 @@ public void initialize(Set registeredRoots) { for (AnalysisMethod callee : invokeInfo.getAllCallees()) { if (SubstrateCompilationDirectives.isRuntimeCompiledMethod(callee)) { MethodNode calleeMethodNode = analysisMethodMap.get(callee); - if (calleeMethodNode.trace == null) { + if (calleeMethodNode != null && calleeMethodNode.trace == null) { /* * If this was the first time this node was reached, then add to * worklist. diff --git a/substratevm/src/com.oracle.svm.graal/src/com/oracle/svm/graal/hosted/runtimecompilation/RuntimeCompilationFeature.java b/substratevm/src/com.oracle.svm.graal/src/com/oracle/svm/graal/hosted/runtimecompilation/RuntimeCompilationFeature.java index 70a51fd40054..5bf2b9f3abc8 100644 --- a/substratevm/src/com.oracle.svm.graal/src/com/oracle/svm/graal/hosted/runtimecompilation/RuntimeCompilationFeature.java +++ b/substratevm/src/com.oracle.svm.graal/src/com/oracle/svm/graal/hosted/runtimecompilation/RuntimeCompilationFeature.java @@ -568,13 +568,11 @@ public void reportAnalysisError(AnalysisUniverse aUniverse, Throwable t) { checkMaxRuntimeCompiledMethods(treeInfo); - boolean foundError = false; if (t instanceof ParallelExecutionException exception) { for (var e : exception.getExceptions()) { if (e instanceof AnalysisError.ParsingError parsingError) { AnalysisMethod errorMethod = parsingError.getMethod(); if (errorMethod.isDeoptTarget() || SubstrateCompilationDirectives.isRuntimeCompiledMethod(errorMethod)) { - foundError = true; AnalysisMethod failingRuntimeMethod = null; if (SubstrateCompilationDirectives.isRuntimeCompiledMethod(errorMethod)) { failingRuntimeMethod = errorMethod; @@ -593,10 +591,6 @@ public void reportAnalysisError(AnalysisUniverse aUniverse, Throwable t) { } } } - - if (foundError) { - throw VMError.shouldNotReachHere("Analysis failed while parsing deopt and/or runtime methods"); - } } private class RuntimeCompilationParsingSupport implements SVMParsingSupport {