Author: zoltan
Date: 2005-04-10 06:03:32 -0400 (Sun, 10 Apr 2005)
New Revision: 42753

Modified:
   trunk/mono/mono/metadata/ChangeLog
   trunk/mono/mono/metadata/class.c
Log:
2005-04-10  Zoltan Varga  <[EMAIL PROTECTED]>

        * class.c (class_compute_field_layout): Fix #74549.


Modified: trunk/mono/mono/metadata/ChangeLog
===================================================================
--- trunk/mono/mono/metadata/ChangeLog  2005-04-10 08:41:26 UTC (rev 42752)
+++ trunk/mono/mono/metadata/ChangeLog  2005-04-10 10:03:32 UTC (rev 42753)
@@ -1,3 +1,7 @@
+2005-04-10  Zoltan Varga  <[EMAIL PROTECTED]>
+
+       * class.c (class_compute_field_layout): Fix #74549.
+
 2005-04-08 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
 
        * threadpool.c: select() on windows doesn't allow pipe handles, soooo

Modified: trunk/mono/mono/metadata/class.c
===================================================================
--- trunk/mono/mono/metadata/class.c    2005-04-10 08:41:26 UTC (rev 42752)
+++ trunk/mono/mono/metadata/class.c    2005-04-10 10:03:32 UTC (rev 42753)
@@ -516,9 +516,6 @@
  * @class: The class to initialize
  *
  * Initializes the class->fields.
- *
- * Currently we only support AUTO_LAYOUT, and do not even try to do
- * a good job at it.  This is temporary to get the code for Paolo.
  */
 static void
 class_compute_field_layout (MonoClass *class)
@@ -533,7 +530,7 @@
        gboolean explicit_size;
        MonoClassField *field;
 
-       if (class->size_inited)
+       if (class->fields)
                return;
 
        if (class->parent) {

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

Reply via email to