Commit 120e0b6
[mono][mini] Disable inlining if we encounter class initialization failure (#112005)
method_make_alwaysthrow_typeloadfailure replaces the entire method code with a throw of type load exception. This behaviour not only seem dubious, if it is triggered from inlining a method, that might never even get called, but it also does changes to the set of basic blocks that can lead to crashes later on during compilation.
Co-authored-by: Vlad Brezae <brezaevlad@gmail.com>1 parent 61d986c commit 120e0b6
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10143 | 10143 | | |
10144 | 10144 | | |
10145 | 10145 | | |
| 10146 | + | |
| 10147 | + | |
10146 | 10148 | | |
10147 | 10149 | | |
10148 | 10150 | | |
| |||
0 commit comments