[Mono-dev] Ping on nternal call builders
massi at ximian.com
Wed Jul 30 03:08:44 EDT 2008
I know finding a spare bit in MonoMethod is impossible :-)
On Tue, 2008-07-29 at 20:48 -0300, Rodrigo Kumpera wrote:
> Other option is to kill the inline_info bit in MonoMethod and
> use the space for a force_inline bit. inline_info can easily
> be replaced by a hash table in mini.c. This would be more
> general and useful.
About this point I'm not so sure...
The hash would likely need a lock to be used, and even if only
the methods that we try (and fail) to inline are put into it,
the memory and time wasted will probably be relatively high.
And we should also remember to free its entries when we unload
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...
More information about the Mono-devel-list