Switch to precise scanning of corlib.
authorRodrigo Kumpera <kumpera@gmail.com>
Tue, 13 Dec 2011 13:28:56 +0000 (11:28 -0200)
committerRodrigo Kumpera <kumpera@gmail.com>
Tue, 13 Dec 2011 13:57:24 +0000 (11:57 -0200)
mcs/class/corlib/System/Environment.cs
mono/metadata/appdomain.c
mono/metadata/class.c

index c47156825cab672a3cae4d9d7c7c52053462b860..84e906de5b465fb69633df89c224394909f398ec 100644 (file)
@@ -55,7 +55,7 @@ namespace System {
                 * of icalls, do not require an increment.
                 */
 #pragma warning disable 169
-               private const int mono_corlib_version = 98;
+               private const int mono_corlib_version = 99;
 #pragma warning restore 169
 
                [ComVisible (true)]
index 06041e64358d789485752d4df8697bf6717932e1..b815cfb04aac1250abe0cbb1f121b50b14afdd81 100644 (file)
@@ -73,7 +73,7 @@
  * Changes which are already detected at runtime, like the addition
  * of icalls, do not require an increment.
  */
-#define MONO_CORLIB_VERSION 98
+#define MONO_CORLIB_VERSION 99
 
 typedef struct
 {
index 0500a054c2feed85cfec5bcdb794549026a6ef2f..34ade95c179a49879ff670b092534bf2638aa261 100644 (file)
@@ -1606,12 +1606,8 @@ mono_class_layout_fields (MonoClass *class)
         */
         /* corlib is missing [StructLayout] directives in many places */
        if (layout == TYPE_ATTRIBUTE_AUTO_LAYOUT) {
-               if (class->image != mono_defaults.corlib &&
-                       class->byval_arg.type != MONO_TYPE_VALUETYPE)
+               if (class->byval_arg.type != MONO_TYPE_VALUETYPE)
                        gc_aware_layout = TRUE;
-               /* from System.dll, used in metadata/process.h */
-               if (strcmp (class->name, "ProcessStartInfo") == 0)
-                       gc_aware_layout = FALSE;
        }
 
        /* Compute klass->has_references */