Skip to content

Commit be5af9f

Browse files
committed
Don't check for user substitutions in the debugger
1 parent d5335a1 commit be5af9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

substratevm/src/com.oracle.svm.interpreter/src/com/oracle/svm/interpreter/DebuggerFeature.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ public void duringAnalysis(DuringAnalysisAccess access) {
320320

321321
if (method.isReachable() && !methodsProcessedDuringAnalysis.contains(method)) {
322322
methodsProcessedDuringAnalysis.add(method);
323-
if (method.wrapped instanceof SubstitutionMethod subMethod && subMethod.isUserSubstitution()) {
323+
if (method.wrapped instanceof SubstitutionMethod subMethod) {
324324
if (subMethod.getOriginal().isNative()) {
325325
accessImpl.registerAsRoot(method, isInvokeSpecial(method), "compiled entry point of substitution needed for interpreter");
326326
continue;
@@ -472,7 +472,7 @@ public void beforeCompilation(BeforeCompilationAccess access) {
472472
boolean needsMethodBody = InterpreterFeature.executableByInterpreter(aMethod) && InterpreterFeature.callableByInterpreter(hMethod, hMetaAccess);
473473
// Test if the methods needs to be compiled for execution in the interpreter:
474474
if (aMethod.getAnalyzedGraph() != null && //
475-
(aMethod.wrapped instanceof SubstitutionMethod subMethod && subMethod.isUserSubstitution() ||
475+
(aMethod.wrapped instanceof SubstitutionMethod ||
476476
invocationPlugins.lookupInvocation(aMethod, invocationLookupOptions) != null)) {
477477
// The method is substituted, or an invocation plugin is registered
478478
SubstrateCompilationDirectives.singleton().registerForcedCompilation(hMethod);

0 commit comments

Comments
 (0)