Author: zoltan
Date: 2005-03-30 14:11:06 -0500 (Wed, 30 Mar 2005)
New Revision: 42384

Modified:
   trunk/mono/mono/mini/ChangeLog
   trunk/mono/mono/mini/mini-x86.c
Log:
2005-03-30  Zoltan Varga  <[EMAIL PROTECTED]>

        * mini-x86.c (mono_arch_emit_prolog): Adjust stack after calls to
        mono_jit_thread_attach.


Modified: trunk/mono/mono/mini/ChangeLog
===================================================================
--- trunk/mono/mono/mini/ChangeLog      2005-03-30 19:07:50 UTC (rev 42383)
+++ trunk/mono/mono/mini/ChangeLog      2005-03-30 19:11:06 UTC (rev 42384)
@@ -1,5 +1,8 @@
 2005-03-30  Zoltan Varga  <[EMAIL PROTECTED]>
 
+       * mini-x86.c (mono_arch_emit_prolog): Adjust stack after calls to
+       mono_jit_thread_attach.
+
        * mini.c (mono_method_to_ir): Verify called method is not abstract.
 
 2005-03-29  Zoltan Varga  <[EMAIL PROTECTED]>

Modified: trunk/mono/mono/mini/mini-x86.c
===================================================================
--- trunk/mono/mono/mini/mini-x86.c     2005-03-30 19:07:50 UTC (rev 42383)
+++ trunk/mono/mono/mini/mini-x86.c     2005-03-30 19:11:06 UTC (rev 42384)
@@ -4230,12 +4230,14 @@
                        x86_branch8 (code, X86_CC_NE, 0, 0);
                        x86_push_imm (code, cfg->domain);
                        code = emit_call (cfg, code, 
MONO_PATCH_INFO_INTERNAL_METHOD, (gpointer)"mono_jit_thread_attach");
+                       x86_alu_reg_imm (code, X86_ADD, X86_ESP, 4);
                        x86_patch (buf, code);
                }
                else {
                        g_assert (!cfg->compile_aot);
                        x86_push_imm (code, cfg->domain);
                        code = emit_call (cfg, code, 
MONO_PATCH_INFO_INTERNAL_METHOD, (gpointer)"mono_jit_thread_attach");
+                       x86_alu_reg_imm (code, X86_ADD, X86_ESP, 4);
                }
        }
 

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

Reply via email to