Skip to content

Commit

Permalink
Creating a Truffle compiler is a UserError.
Browse files Browse the repository at this point in the history
  • Loading branch information
fniephaus committed Feb 5, 2024
1 parent 2957819 commit b2c405a
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,17 @@
*/
package com.oracle.svm.truffle;

import jdk.graal.compiler.truffle.TruffleCompilerImpl;
import jdk.graal.compiler.truffle.TruffleElementCache;
import jdk.graal.compiler.truffle.host.TruffleHostEnvironment;
import org.graalvm.nativeimage.Platform;
import org.graalvm.nativeimage.Platforms;

import com.oracle.svm.core.util.UserError;
import com.oracle.truffle.compiler.HostMethodInfo;
import com.oracle.truffle.compiler.TruffleCompilable;
import com.oracle.truffle.compiler.TruffleCompilerRuntime;

import jdk.graal.compiler.truffle.TruffleCompilerImpl;
import jdk.graal.compiler.truffle.TruffleElementCache;
import jdk.graal.compiler.truffle.host.TruffleHostEnvironment;
import jdk.vm.ci.meta.MetaAccessProvider;
import jdk.vm.ci.meta.ResolvedJavaMethod;

Expand All @@ -49,7 +50,7 @@ final class SubstrateTruffleHostEnvironment extends TruffleHostEnvironment {

@Override
protected TruffleCompilerImpl createCompiler(TruffleCompilable compilable) {
throw new UnsupportedOperationException("Creating a truffle compiler during SVM host compilation is not supported.");
throw UserError.abort("Creating a truffle compiler during SVM host compilation is not supported.");
}

@Override
Expand Down

0 comments on commit b2c405a

Please sign in to comment.