[Mono-dev] Inlining common calls

Rodrigo Kumpera kumpera at gmail.com
Tue Nov 27 23:57:15 UTC 2012

On Tue, Nov 27, 2012 at 6:24 PM, Stack Pointer <stackpointer at me.com> wrote:

> I made a quick hack to bypass this and I do see more functions being
> inlined, so far no "crashes". But at the same time, I see worse
> performance. So may be there is a correctness + performance issue.

It won't crash, just give wrong results on code that depends on stack
walking. Try the tests in mono/tests, some will fail with inlining enabled.
Performance doesn't always improve with inlining, that's
why it's no silver bullet.

> I see a similar thing for "Internal Calls". There are correctness issues
> there as well?

An icall is just a call to a wrapper that does the managed-unmanaged
transitions. It doesn't hurt, but inlining
those wrappers would fail due to their big size.

Is this something on your roadmap to fix? Or should we just "work around" it

No plans for it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20121127/c2602825/attachment.html>

More information about the Mono-devel-list mailing list