We don't inline calls due to a correctness issue with stack unwinding.<div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Nov 27, 2012 at 1:25 PM, Stack Pointer <span dir="ltr"><<a href="mailto:stackpointer@me.com" target="_blank">stackpointer@me.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">At: <a href="https://github.com/mono/mono/blob/master/mono/mini/method-to-ir.c:7596" target="_blank">https://github.com/mono/mono/blob/master/mono/mini/method-to-ir.c:7596</a><div>
<br></div><div><pre style="margin-top:0px;margin-bottom:0px;padding:0px;border:0px;font-size:12px;font-family:Consolas,'Liberation Mono',Courier,monospace;color:rgb(51,51,51);line-height:16px"><div style="margin:0px;padding:0px 0px 0px 10px;border:0px">
        <span style="margin:0px;padding:0px;border:0px;color:rgb(153,153,136);font-style:italic">/* Common call */</span></div><div style="margin:0px;padding:0px 0px 0px 10px;border:0px"> <span style="margin:0px;padding:0px;border:0px">INLINE_FAILURE</span> <span style="margin:0px;padding:0px;border:0px">(</span><span style="margin:0px;padding:0px;border:0px;color:rgb(221,17,68)">"call"</span><span style="margin:0px;padding:0px;border:0px">);</span></div>
</pre><div><br></div></div><div>Why do you throw a failure directly? Shouldn't there be an attempt to inline methods which only consists calls or other simple body? Is this detrimental to the performance?</div><div><br>
</div><div>I'd like to understand inlining vs performance trade-offs that mono does.</div></div><br>_______________________________________________<br>
Mono-devel-list mailing list<br>
<a href="mailto:Mono-devel-list@lists.ximian.com">Mono-devel-list@lists.ximian.com</a><br>
<a href="http://lists.ximian.com/mailman/listinfo/mono-devel-list" target="_blank">http://lists.ximian.com/mailman/listinfo/mono-devel-list</a><br>
<br></blockquote></div><br></div>