Author: zoltan
Date: 2008-01-03 14:05:50 -0500 (Thu, 03 Jan 2008)
New Revision: 92201
Modified:
trunk/mcs/class/corlib/System.Threading/ChangeLog
trunk/mcs/class/corlib/System.Threading/Thread.cs
Log:
2008-01-03 Zoltan Varga <[EMAIL PROTECTED]>
* Thread.cs (set_CurrentCulture): Avoid the serialization overhead if
the new culture is equal to the old one.
Modified: trunk/mcs/class/corlib/System.Threading/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.Threading/ChangeLog 2008-01-03 18:53:19 UTC
(rev 92200)
+++ trunk/mcs/class/corlib/System.Threading/ChangeLog 2008-01-03 19:05:50 UTC
(rev 92201)
@@ -1,3 +1,8 @@
+2008-01-03 Zoltan Varga <[EMAIL PROTECTED]>
+
+ * Thread.cs (set_CurrentCulture): Avoid the serialization overhead if
+ the new culture is equal to the old one.
+
2007-12-27 Zoltan Varga <[EMAIL PROTECTED]>
* Thread.cs: Change the type of synch_cs to an IntPtr to be in synch
with the
Modified: trunk/mcs/class/corlib/System.Threading/Thread.cs
===================================================================
--- trunk/mcs/class/corlib/System.Threading/Thread.cs 2008-01-03 18:53:19 UTC
(rev 92200)
+++ trunk/mcs/class/corlib/System.Threading/Thread.cs 2008-01-03 19:05:50 UTC
(rev 92201)
@@ -432,6 +432,10 @@
if (value == null)
throw new ArgumentNullException
("value");
+ CultureInfo culture = GetCachedCurrentCulture
();
+ if (culture == value)
+ return;
+
value.CheckNeutral ();
in_currentculture = true;
try {
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches