Skip to content

Commit ef37338

Browse files
committed
Make DeoptimizationFeature NATIVE_ONLY
1 parent e76f6cc commit ef37338

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

substratevm/src/com.oracle.svm.graal/src/com/oracle/svm/graal/hosted/DeoptimizationFeature.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@
3232
import org.graalvm.compiler.options.OptionValues;
3333
import org.graalvm.compiler.phases.util.Providers;
3434
import org.graalvm.nativeimage.ImageSingletons;
35+
import org.graalvm.nativeimage.Platforms;
3536
import org.graalvm.nativeimage.hosted.Feature;
37+
import org.graalvm.nativeimage.impl.InternalPlatform;
3638

3739
import com.oracle.graal.pointsto.meta.AnalysisMethod;
3840
import com.oracle.svm.core.deopt.DeoptimizationCanaryFeature;
@@ -57,6 +59,7 @@
5759
/**
5860
* Feature to allow deoptimization in a generated native image.
5961
*/
62+
@Platforms(InternalPlatform.NATIVE_ONLY.class)
6063
public final class DeoptimizationFeature implements InternalFeature {
6164

6265
private static final Method deoptStubMethod;

0 commit comments

Comments
 (0)