Author: zoltan
Date: 2006-09-17 15:56:37 -0400 (Sun, 17 Sep 2006)
New Revision: 65555
Modified:
trunk/mono/mono/mini/ChangeLog
trunk/mono/mono/mini/aot-runtime.c
Log:
2006-09-17 Zoltan Varga <[EMAIL PROTECTED]>
* aot-runtime.c (load_aot_module): Return immeditely if the AOT module
was already
loaded.
Modified: trunk/mono/mono/mini/ChangeLog
===================================================================
--- trunk/mono/mono/mini/ChangeLog 2006-09-17 19:27:57 UTC (rev 65554)
+++ trunk/mono/mono/mini/ChangeLog 2006-09-17 19:56:37 UTC (rev 65555)
@@ -1,5 +1,8 @@
2006-09-17 Zoltan Varga <[EMAIL PROTECTED]>
+ * aot-runtime.c (load_aot_module): Return immeditely if the AOT module
was already
+ loaded.
+
* exceptions-amd64.c (gregs_from_ucontext): Apply another patch from the
freebsd ports tree.
Modified: trunk/mono/mono/mini/aot-runtime.c
===================================================================
--- trunk/mono/mono/mini/aot-runtime.c 2006-09-17 19:27:57 UTC (rev 65554)
+++ trunk/mono/mono/mini/aot-runtime.c 2006-09-17 19:56:37 UTC (rev 65555)
@@ -440,6 +440,13 @@
if (mono_compile_aot)
return;
+ if (assembly->aot_module)
+ /*
+ * Already loaded. This can happen because the assembly loading
code might invoke
+ * the assembly load hooks multiple times for the same assembly.
+ */
+ return;
+
if (use_aot_cache)
assembly->aot_module = load_aot_module_from_cache (assembly,
&aot_name);
else {
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches