|
89 | 89 | import com.oracle.svm.core.hub.ReferenceType;
|
90 | 90 | import com.oracle.svm.core.jdk.InternalVMMethod;
|
91 | 91 | import com.oracle.svm.core.jdk.LambdaFormHiddenMethod;
|
92 |
| -import com.oracle.svm.core.option.HostedOptionKey; |
93 | 92 | import com.oracle.svm.core.option.SubstrateOptionsParser;
|
94 | 93 | import com.oracle.svm.core.thread.ContinuationSupport;
|
95 | 94 | import com.oracle.svm.core.threadlocal.VMThreadLocalInfo;
|
|
118 | 117 | import com.oracle.svm.hosted.phases.InlineBeforeAnalysisPolicyUtils;
|
119 | 118 | import com.oracle.svm.hosted.substitute.AnnotationSubstitutionProcessor;
|
120 | 119 | import com.oracle.svm.hosted.substitute.AutomaticUnsafeTransformationSupport;
|
121 |
| -import com.oracle.svm.util.LogUtils; |
122 | 120 | import com.oracle.svm.util.ReflectionUtil;
|
123 | 121 |
|
124 | 122 | import jdk.graal.compiler.core.common.spi.ForeignCallDescriptor;
|
|
133 | 131 | import jdk.graal.compiler.nodes.ValueNode;
|
134 | 132 | import jdk.graal.compiler.nodes.graphbuilderconf.GraphBuilderConfiguration;
|
135 | 133 | import jdk.graal.compiler.nodes.graphbuilderconf.IntrinsicContext;
|
136 |
| -import jdk.graal.compiler.options.Option; |
137 | 134 | import jdk.graal.compiler.options.OptionKey;
|
138 | 135 | import jdk.graal.compiler.options.OptionValues;
|
139 | 136 | import jdk.graal.compiler.phases.OptimisticOptimizations;
|
@@ -702,30 +699,6 @@ public InlineBeforeAnalysisGraphDecoder createInlineBeforeAnalysisGraphDecoder(B
|
702 | 699 | return new InlineBeforeAnalysisGraphDecoderImpl(bb, inlineBeforeAnalysisPolicy(method.getMultiMethodKey()), resultGraph, bb.getProviders(method));
|
703 | 700 | }
|
704 | 701 |
|
705 |
| - public static class Options { |
706 |
| - @Option(help = "Enable the behavior of old GraalVM versions. When enabled, interfaces not available for the current platform are filtered.", // |
707 |
| - deprecated = true, deprecationMessage = "This option was introduced to simplify migration to GraalVM 21.2 and will be removed in a future release")// |
708 |
| - public static final HostedOptionKey<Boolean> PlatformInterfaceCompatibilityMode = new HostedOptionKey<>(false); |
709 |
| - } |
710 |
| - |
711 |
| - @Override |
712 |
| - public boolean skipInterface(AnalysisUniverse universe, ResolvedJavaType interfaceType, ResolvedJavaType implementingType) { |
713 |
| - if (!platformSupported(interfaceType)) { |
714 |
| - String message = "The interface " + interfaceType.toJavaName(true) + " is not available in the current platform, but used by " + implementingType.toJavaName(true) + ". " + |
715 |
| - "GraalVM before version 21.2 ignored such interfaces, but this was an oversight."; |
716 |
| - |
717 |
| - String commandArgument = SubstrateOptionsParser.commandArgument(Options.PlatformInterfaceCompatibilityMode, "+"); |
718 |
| - if (Options.PlatformInterfaceCompatibilityMode.getValue()) { |
719 |
| - LogUtils.warning("%s The interface is filtered because the compatibility option %s is used. This option will be removed in a future GraalVM version.", message, commandArgument); |
720 |
| - return true; |
721 |
| - } else { |
722 |
| - throw new UnsupportedFeatureException( |
723 |
| - message + " The old behavior can be temporarily restored using the option " + commandArgument + ". This option will be removed in a future GraalVM version."); |
724 |
| - } |
725 |
| - } |
726 |
| - return false; |
727 |
| - } |
728 |
| - |
729 | 702 | @Override
|
730 | 703 | public boolean platformSupported(AnnotatedElement element) {
|
731 | 704 | if (element instanceof ResolvedJavaType) {
|
|
0 commit comments