Skip to content

Commit 7969a2c

Browse files
committed
fixup
1 parent 375fe08 commit 7969a2c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
import static com.oracle.svm.common.meta.MultiMethod.DEOPT_TARGET_METHOD;
2828
import static com.oracle.svm.common.meta.MultiMethod.ORIGINAL_METHOD;
2929
import static com.oracle.svm.hosted.code.SubstrateCompilationDirectives.RUNTIME_COMPILED_METHOD;
30+
import static com.oracle.svm.hosted.phases.InlineBeforeAnalysisPolicyUtils.Options.InlineBeforeAnalysisAllowedDepth;
31+
import static org.graalvm.compiler.java.BytecodeParserOptions.InlineDuringParsingMaxDepth;
3032

3133
import java.util.ArrayList;
3234
import java.util.Collection;
@@ -50,7 +52,6 @@
5052
import org.graalvm.compiler.debug.Indent;
5153
import org.graalvm.compiler.graph.NodeClass;
5254
import org.graalvm.compiler.java.BytecodeParser;
53-
import org.graalvm.compiler.java.BytecodeParserOptions;
5455
import org.graalvm.compiler.java.GraphBuilderPhase;
5556
import org.graalvm.compiler.loop.phases.ConvertDeoptimizeToGuardPhase;
5657
import org.graalvm.compiler.nodes.CallTargetNode;
@@ -934,19 +935,19 @@ public Function<AnalysisType, ResolvedJavaType> getStrengthenGraphsToTargetFunct
934935
/**
935936
* This policy is a combination of the default InliningBeforeAnalysisImpl and the Trivial
936937
* Inlining Policy. When the depth is less than
937-
* {@link BytecodeParserOptions#InlineDuringParsingMaxDepth} (and all inlined parents were also
938+
* {@code BytecodeParserOptions#InlineDuringParsingMaxDepth} (and all inlined parents were also
938939
* trivial inlined), then it will continue to try to trivial inline methods (i.e., inline
939940
* methods with less than a given number of nodes). Then, up to
940-
* {@link InlineBeforeAnalysisPolicyUtils.Options#InlineBeforeAnalysisAllowedDepth}, inlining is
941+
* {@code InlineBeforeAnalysisPolicyUtils.Options#InlineBeforeAnalysisAllowedDepth}, inlining is
941942
* enabled as long as the cumulative number of nodes inlined stays within the specified limits.
942943
*
943944
* Note that this policy is used exclusively by the runtime compiled methods, so there is no
944945
* need to check multi-method keys; all callers (and callees) should be
945946
* {@code RUNTIME_COMPILED_METHOD}s.
946947
*/
947948
private class RuntimeCompilationInlineBeforeAnalysisPolicy extends InlineBeforeAnalysisPolicy {
948-
private final int accumulativeAllowedInliningDepth = InlineBeforeAnalysisPolicyUtils.Options.InlineBeforeAnalysisAllowedDepth.getValue();
949-
private final int trivialAllowingInliningDepth = BytecodeParserOptions.InlineDuringParsingMaxDepth.getDefaultValue();
949+
private final int accumulativeAllowedInliningDepth = InlineBeforeAnalysisAllowedDepth.getValue();
950+
private final int trivialAllowingInliningDepth = InlineDuringParsingMaxDepth.getDefaultValue();
950951

951952
final SVMHost hostVM;
952953
final InlineBeforeAnalysisPolicyUtils inliningUtils;

0 commit comments

Comments
 (0)