|
31 | 31 |
|
32 | 32 | import com.oracle.svm.core.log.Log; |
33 | 33 | import com.oracle.svm.core.option.RuntimeOptionKey; |
| 34 | +import com.oracle.svm.core.util.VMError; |
34 | 35 | import com.oracle.svm.interpreter.metadata.CremaResolvedJavaMethodImpl; |
35 | 36 | import com.oracle.svm.interpreter.metadata.InterpreterResolvedJavaMethod; |
36 | 37 | import com.oracle.svm.interpreter.metadata.profile.MethodProfile; |
|
40 | 41 | import com.oracle.svm.interpreter.ristretto.meta.RistrettoMethod; |
41 | 42 |
|
42 | 43 | import jdk.graal.compiler.api.replacements.Fold; |
43 | | -import jdk.graal.compiler.debug.GraalError; |
44 | 44 | import jdk.graal.compiler.nodes.PauseNode; |
45 | 45 |
|
46 | 46 | public class RistrettoProfileSupport { |
@@ -149,7 +149,7 @@ public static MethodProfile profileMethodEntry(InterpreterResolvedJavaMethod iMe |
149 | 149 | break; |
150 | 150 | } |
151 | 151 | default: |
152 | | - throw GraalError.shouldNotReachHere("Unknown state " + oldState); |
| 152 | + throw VMError.shouldNotReachHere("Unknown state " + oldState); |
153 | 153 | } |
154 | 154 | oldState = COMPILATION_STATE_UPDATER.get(rMethod); |
155 | 155 | } while (true); |
@@ -191,7 +191,7 @@ private static void methodEntryInitCase(InterpreterResolvedJavaMethod iMethod, R |
191 | 191 | trace(RistrettoRuntimeOptions.JITTraceCompilationQueuing, "[Ristretto Compile Queue]Entering state %s for %s%n", |
192 | 192 | RistrettoCompileStateMachine.toString(COMPILATION_STATE_UPDATER.get(rMethod)), iMethod); |
193 | 193 | if (!COMPILATION_STATE_UPDATER.compareAndSet(rMethod, RistrettoConstants.COMPILE_STATE_INITIALIZING, RistrettoConstants.COMPILE_STATE_NEVER_COMPILED)) { |
194 | | - throw GraalError.shouldNotReachHere("We set transition to COMPILE_STATE_INITIALIZING, we must be allowed to set it to COMPILE_STATE_NEVER_COMPILED"); |
| 194 | + throw VMError.shouldNotReachHere("We set transition to COMPILE_STATE_INITIALIZING, we must be allowed to set it to COMPILE_STATE_NEVER_COMPILED"); |
195 | 195 | } |
196 | 196 | // continue to the NEVER_COMPILED state |
197 | 197 | trace(RistrettoRuntimeOptions.JITTraceCompilationQueuing, "[Ristretto Compile Queue]Finished setting state %s for %s%n", |
|
0 commit comments