Author: zoltan
Date: 2005-03-12 07:21:03 -0500 (Sat, 12 Mar 2005)
New Revision: 41732

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

        * mini-amd64.c (emit_call): Handle the case when the callee might be
        an AOT method.


Modified: trunk/mono/mono/mini/ChangeLog
===================================================================
--- trunk/mono/mono/mini/ChangeLog      2005-03-12 06:03:07 UTC (rev 41731)
+++ trunk/mono/mono/mini/ChangeLog      2005-03-12 12:21:03 UTC (rev 41732)
@@ -1,3 +1,8 @@
+2005-03-12  Zoltan Varga  <[EMAIL PROTECTED]>
+
+       * mini-amd64.c (emit_call): Handle the case when the callee might be
+       an AOT method.
+
 2005-03-11  Zoltan Varga  <[EMAIL PROTECTED]>
 
        * mini-amd64.c (mono_arch_get_vcall_slot_addr): Reorder cases to be

Modified: trunk/mono/mono/mini/mini-amd64.c
===================================================================
--- trunk/mono/mono/mini/mini-amd64.c   2005-03-12 06:03:07 UTC (rev 41731)
+++ trunk/mono/mono/mini/mini-amd64.c   2005-03-12 12:21:03 UTC (rev 41732)
@@ -1275,9 +1275,16 @@
                 * guaranteed to be at a 32 bit offset.
                 */
 
-               if (patch_type != MONO_PATCH_INFO_ABS)
+               if (patch_type != MONO_PATCH_INFO_ABS) {
                        /* The target is in memory allocated using the code 
manager */
                        near_call = TRUE;
+
+                       if ((patch_type == MONO_PATCH_INFO_METHOD) || 
(patch_type == MONO_PATCH_INFO_METHOD_JUMP)) {
+                               if 
(((MonoMethod*)data)->klass->image->assembly->aot_module)
+                                       /* The callee might be an AOT method */
+                                       near_call = FALSE;
+                       }
+               }
                else {
                        if (mono_find_class_init_trampoline_by_addr (data))
                                near_call = TRUE;

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

Reply via email to