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

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





--- Comment #10 from Casey Marshall <[EMAIL PROTECTED]>  2008-03-03 20:08:37 
MST ---
The issue seems to be change 40141:

r40141 | zoltan | 2005-02-04 10:08:18 -0800 (Fri, 04 Feb 2005) | 6 lines

2005-02-04  Zoltan Varga  <[EMAIL PROTECTED]>

        * class-internals.h marshal.c: Add two new wrappers, ldfld_remote and
        stfld_remote which call mono_load/store_field_new. This allows methods
        calling ldfld/stfld wrappers to be AOTed.

Yes, it is three years old; I just tried the same testcase with mono 1.2.4 that
was installed by my distribution, and it fails in the exact same way. It looks
like the extra method call inserts an extra value on the stack (presumably, the
space to be used to store the struct being returned) and that misaligns the
arguments passed to mono_load_remote_field_new. Maybe it misaligns the stack at
the call to the second generated wrapper method, I'm not sure.

The attached patch fixes the test case for me, but it's clearly not the right
fix,  and I don't understand this well enough yet.


-- 
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