Skip to content

Commit 375fe08

Browse files
committed
fixup
1 parent b8ec4a0 commit 375fe08

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/phases/InlineBeforeAnalysisPolicyUtils.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,14 @@ public static boolean inliningAllowed(SVMHost hostVM, GraphBuilderContext b, Res
9999
if (!Uninterruptible.Utils.inliningAllowed(caller, callee)) {
100100
return false;
101101
}
102+
if (callee.getReturnsAllInstantiatedTypes()) {
103+
/*
104+
* When a callee returns all instantiated types then it cannot be inlined. Inlining the
105+
* method would expose the method's return values instead of treating it as an
106+
* AllInstantiatedTypeFlow.
107+
*/
108+
return false;
109+
}
102110
return true;
103111
}
104112

0 commit comments

Comments
 (0)