[Mono-dev] Ping on nternal call builders

Kornél Pál kornelpal at gmail.com
Wed Jul 30 03:19:56 EDT 2008


Hi,

Massimiliano Mantione wrote:
> IMHO, it is just easier to force inlining according to wrapper
> type: IIRC we already force inlining of certain wrappers, so we
> would not change the code logic that much.
> 
> And if there are two "kinds" of "managed to managed" wrappers,
> one that must be forced inline and one not, we could just
> declare those two wrapper types explicitly...

I believe that there is no use to force managed-to-managed wrappers to 
be inlined. I just would like to elminiate the code that prevents them 
being inlined. If inlining is considered carefully (this should be the 
case) then I don't think that forcing inlining is a good idea. Just 
short managed-to-managed wrappers that call no methods and throw no 
exceptions (in other words those that would be inlined if they weren't 
wrappers) should be inlined.

I still didn't find out how to implement this. Could someone please help me?

Thanks.

Kornél


More information about the Mono-devel-list mailing list