Author: spouliot
Date: 2005-05-11 11:17:37 -0400 (Wed, 11 May 2005)
New Revision: 44392

Modified:
   trunk/mcs/class/corlib/System.Threading/Thread.cs
Log:
Oops, forgot the important fix. Return a copy (not the original) 
CompressedStack.

Modified: trunk/mcs/class/corlib/System.Threading/Thread.cs
===================================================================
--- trunk/mcs/class/corlib/System.Threading/Thread.cs   2005-05-11 15:15:01 UTC 
(rev 44391)
+++ trunk/mcs/class/corlib/System.Threading/Thread.cs   2005-05-11 15:17:37 UTC 
(rev 44392)
@@ -946,7 +946,7 @@
                        // However CompressedStack.GetCompressedStack returns 
an 
                        // (empty?) CompressedStack instance.
                        CompressedStack cs = 
ExecutionContext.SecurityContext.CompressedStack;
-                       return ((cs == null) || cs.IsEmpty ()) ? null : cs;
+                       return ((cs == null) || cs.IsEmpty ()) ? null : 
cs.CreateCopy ();
                }
 
                // NOTE: This method doesn't show in the class library status 
page because

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

Reply via email to