Author: raja
Date: 2005-04-28 22:35:01 -0400 (Thu, 28 Apr 2005)
New Revision: 43764

Modified:
   trunk/mono/mono/metadata/ChangeLog
   trunk/mono/mono/metadata/class.c
Log:
* class.c (mono_class_init): Add a mono_loader_unlock to the #74734 fix.


Modified: trunk/mono/mono/metadata/ChangeLog
===================================================================
--- trunk/mono/mono/metadata/ChangeLog  2005-04-29 02:06:16 UTC (rev 43763)
+++ trunk/mono/mono/metadata/ChangeLog  2005-04-29 02:35:01 UTC (rev 43764)
@@ -1,3 +1,8 @@
+2005-04-29  Raja R Harinath  <[EMAIL PROTECTED]>
+
+       * class.c (mono_class_init): Add a mono_loader_unlock to the
+       #74734 fix.
+
 2005-04-28  Zoltan Varga  <[EMAIL PROTECTED]>
 
        * icall.c (ves_icall_System_Environment_Exit): Remove the 

Modified: trunk/mono/mono/metadata/class.c
===================================================================
--- trunk/mono/mono/metadata/class.c    2005-04-29 02:06:16 UTC (rev 43763)
+++ trunk/mono/mono/metadata/class.c    2005-04-29 02:35:01 UTC (rev 43764)
@@ -1660,8 +1660,10 @@
                 * and the compiler encodes it as a typeref, like older 
versions of
                 * MS ilasm do.
                 */
-               if (class->size_inited)
+               if (class->size_inited) {
+                       mono_loader_unlock ();
                        return;
+               }
 
                /* this indicates a cyclic dependency */
                g_error ("pending init %s.%s\n", class->name_space, 
class->name);

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

Reply via email to