[Mono-dev] custom mscorlib.dll with fields in .Array
Zoltan Varga
vargaz at gmail.com
Fri Jun 5 07:18:34 EDT 2009
Hi,
That looks ok.
Zoltan
The code in class.c does not check if the System.Array type
> is originating from mscorlib. See attached patch.
>
> Robert
>
> Index: class.c
> ===================================================================
> --- class.c (revision 134593)
> +++ class.c (working copy)
> @@ -4328,7 +4328,7 @@
> class->method.count = 0;
>
> /* reserve space to store vector pointer in arrays */
> - if (!strcmp (nspace, "System") && !strcmp (name, "Array")) {
> + if (is_corlib_image (image) && !strcmp (nspace, "System") &&
> !strcmp (name, "Array")) {
> class->instance_size += 2 * sizeof (gpointer);
> g_assert (class->field.count == 0);
> }
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20090605/76fe6aeb/attachment.html
More information about the Mono-devel-list
mailing list