[Mono-dev] [PATCH] Generic sharing: Static field access

Zoltan Varga vargaz at gmail.com
Fri Nov 16 12:51:18 EST 2007


                              Hi,

  I don't really understand why a new trampoline is needed here. Since
the argument
to the trampoline is dynamic, it is not possible to patch the caller code, so a
normal call to mono_runtime_class_init () would be sufficient.

                                     Zoltan

On Nov 16, 2007 12:30 PM, Mark Probst <mark.probst at gmail.com> wrote:
> Hey everybody!
>
> Paolo asked me to post my generic sharing patches here so that more
> people can take a look at them before they are committed.  Here's the
> next one in line: static field access.
>
> The main part of this patch is actually the introduction of a new
> trampoline call to initialize a generic class.  The reason we couldn't
> use the class init trampoline is that it requires the vtable argument to
> be know at method-compile-time which is not the case here.  Note that
> this trampoline has only been implemented on x86 and amd64 yet.  The
> code should still work on other architectures, but it will refuse to
> share a method with static field accesses of generic classes, because
> that trampoline isn't implemented there yet.
>
> Mark
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>



More information about the Mono-devel-list mailing list