[Mono-bugs] [Bug 386415] [PATCH] Implementation of mono_method_get_unmanaged_thunk
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Sun May 4 10:53:54 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=386415
User robertj at gmx.net added comment
https://bugzilla.novell.com/show_bug.cgi?id=386415#c9
--- Comment #9 from Robert Jordan <robertj at gmx.net> 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.
More information about the mono-bugs
mailing list