[Mono-devel-list] VTable & Interfaces

Ben Maurer bmaurer at ximian.com
Mon Feb 28 15:42:10 EST 2005


On Mon, 2005-02-28 at 21:02 +0100, Willibald Krenn wrote:
> > 
> > For some meanings of `very high costs'. The cost is likely orders of
> > magnitude less than the actual recompilation.
> 
> Ahm, yes - of course. But I meant in comparison to 'normal' instance 
> methods..
> Any answer to the 'real' question?

The answer is `yes, you have to, but it doesn't cost nearly as much as
you think it does'

It wouldn't be too hard to set a little hack where each class has two
extra fields:

MonoClass* first_child
MonoClass* next_sibling

This would allow us to easily just look at the people who derived.

Also, why do you need to patch the actual vtable? Isn't the address to
the method going to be embeded in quite a few places anyways?

-- Ben




More information about the Mono-devel-list mailing list