Author: zoltan
Date: 2005-03-10 18:27:18 -0500 (Thu, 10 Mar 2005)
New Revision: 41669
Modified:
trunk/mono/mono/mini/ChangeLog
trunk/mono/mono/mini/aot.c
Log:
2005-03-11 Zoltan Varga <[EMAIL PROTECTED]>
* aot.c (mono_aot_load_method): Get rid of bogus make_writable call.
Modified: trunk/mono/mono/mini/ChangeLog
===================================================================
--- trunk/mono/mono/mini/ChangeLog 2005-03-10 22:55:01 UTC (rev 41668)
+++ trunk/mono/mono/mini/ChangeLog 2005-03-10 23:27:18 UTC (rev 41669)
@@ -1,3 +1,7 @@
+2005-03-11 Zoltan Varga <[EMAIL PROTECTED]>
+
+ * aot.c (mono_aot_load_method): Get rid of bogus make_writable call.
+
2005-03-09 Ben Maurer <[EMAIL PROTECTED]>
* mini.c (mono_codegen): Don't leak here, to help people running
Modified: trunk/mono/mono/mini/aot.c
===================================================================
--- trunk/mono/mono/mini/aot.c 2005-03-10 22:55:01 UTC (rev 41668)
+++ trunk/mono/mono/mini/aot.c 2005-03-10 23:27:18 UTC (rev 41669)
@@ -1048,11 +1048,6 @@
mono_debug_add_aot_method (domain, method, code, p, buf_len);
#if MONO_ARCH_HAVE_PIC_AOT
- mono_arch_flush_icache (code, code_len);
-
- if (non_got_patches)
- make_writable (code, code_len);
-
/* Do this outside the lock to avoid deadlocks */
LeaveCriticalSection (&aot_mutex);
non_got_patches = FALSE;
@@ -1068,6 +1063,7 @@
non_got_patches = TRUE;
}
if (non_got_patches) {
+ mono_arch_flush_icache (code, code_len);
make_writable (code, code_len);
mono_arch_patch_code (method, domain, code, patch_info,
TRUE);
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches