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

Mark Probst mark.probst at gmail.com
Fri Nov 16 06:30:36 EST 2007


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: staticfields.diff
Type: text/x-patch
Size: 19507 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20071116/f094b7d8/attachment.bin 


More information about the Mono-devel-list mailing list