https://bugzilla.novell.com/show_bug.cgi?id=386415

User [EMAIL PROTECTED] added comment
https://bugzilla.novell.com/show_bug.cgi?id=386415#c9





--- Comment #9 from Robert Jordan <[EMAIL PROTECTED]>  2008-05-04 08:53:53 MST 
---
Hm, on Linux and Mac x86 there is struct size discrepancy:

the native struct

struct {
    int a;
    double b;
}

has sizeof == 12 and double's alignment is 4.

The managed struct

struct {
    public a;
    public b;
}

has sizeof == 16 and double's alignment is 8.


This is due to __alignof__'s usage in metadata.c (see patch).


Mono's managed alignment is of course superior, so the patch is probably
undesirable.

Should we just document this issue and let people fix their
native struct declarations to match mono's expectations?


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to