File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
substratevm/src/com.oracle.svm.interpreter/src/com/oracle/svm/interpreter Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments