Author: zoltan
Date: 2005-03-27 17:07:51 -0500 (Sun, 27 Mar 2005)
New Revision: 42293

Modified:
   trunk/mono/mono/metadata/marshal.c
Log:
2005-03-28  Zoltan Varga  <[EMAIL PROTECTED]>

        * marshal.c (mono_marshal_get_runtime_invoke): Emit the interruption
        checkpoint before loading the arguments so they won't get spilled.


Modified: trunk/mono/mono/metadata/marshal.c
===================================================================
--- trunk/mono/mono/metadata/marshal.c  2005-03-27 21:32:37 UTC (rev 42292)
+++ trunk/mono/mono/metadata/marshal.c  2005-03-27 22:07:51 UTC (rev 42293)
@@ -3397,6 +3397,8 @@
        mono_mb_emit_byte (mb, CEE_LDNULL);
        mono_mb_emit_byte (mb, CEE_STIND_I);
 
+       emit_thread_force_interrupt_checkpoint (mb);
+
        if (sig->hasthis) {
                if (method->string_ctor) {
                        mono_mb_emit_byte (mb, MONO_CUSTOM_PREFIX);
@@ -3484,7 +3486,6 @@
        }
        
        mono_mb_emit_ldarg (mb, 3);
-       emit_thread_force_interrupt_checkpoint (mb);
        mono_mb_emit_calli (mb, callsig);
 
        if (sig->ret->byref) {

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to