Author: gonzalo
Date: 2005-05-06 21:04:07 -0400 (Fri, 06 May 2005)
New Revision: 44184

Modified:
   trunk/mcs/class/corlib/System/ChangeLog
   trunk/mcs/class/corlib/System/Console.cs
   trunk/mcs/class/corlib/System/Enum.cs
Log:
2005-05-06 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>

        * Enum.cs: the hashtable don't need to be synchronized any more, since
        it's only accessed from withint a lock.

        * Console.cs: stdin, stdout and stderr will never be finalized. Fixes
        bug 74768.



Modified: trunk/mcs/class/corlib/System/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System/ChangeLog     2005-05-07 00:46:57 UTC (rev 
44183)
+++ trunk/mcs/class/corlib/System/ChangeLog     2005-05-07 01:04:07 UTC (rev 
44184)
@@ -1,3 +1,11 @@
+2005-05-06 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+
+       * Enum.cs: the hashtable don't need to be synchronized any more, since
+       it's only accessed from withint a lock.
+
+       * Console.cs: stdin, stdout and stderr will never be finalized. Fixes
+       bug 74768.
+
 2005-05-06  Zoltan Varga  <[EMAIL PROTECTED]>
 
        * Array.cs: Remove CLSCompliant (false) attributes.

Modified: trunk/mcs/class/corlib/System/Console.cs
===================================================================
--- trunk/mcs/class/corlib/System/Console.cs    2005-05-07 00:46:57 UTC (rev 
44183)
+++ trunk/mcs/class/corlib/System/Console.cs    2005-05-07 01:04:07 UTC (rev 
44184)
@@ -79,6 +79,9 @@
 
                        stdin  = new UnexceptionalStreamReader 
(OpenStandardInput (0), encoding);
                        stdin = TextReader.Synchronized (stdin);
+                       GC.SuppressFinalize (stdout);
+                       GC.SuppressFinalize (stderr);
+                       GC.SuppressFinalize (stdin);
                }
 
 #if !NET_2_0

Modified: trunk/mcs/class/corlib/System/Enum.cs
===================================================================
--- trunk/mcs/class/corlib/System/Enum.cs       2005-05-07 00:46:57 UTC (rev 
44183)
+++ trunk/mcs/class/corlib/System/Enum.cs       2005-05-07 01:04:07 UTC (rev 
44184)
@@ -52,7 +52,7 @@
 
                static MonoEnumInfo ()
                {
-                       cache = Hashtable.Synchronized (new Hashtable ());
+                       cache = new Hashtable ();
                }
                
                private MonoEnumInfo (MonoEnumInfo other)

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

Reply via email to