2
0
Эх сурвалжийг харах

Oops, forgot the important fix. Return a copy (not the original) CompressedStack.

svn path=/trunk/mcs/; revision=44392
Sebastien Pouliot 20 жил өмнө
parent
commit
d465dc4044

+ 1 - 1
mcs/class/corlib/System.Threading/Thread.cs

@@ -946,7 +946,7 @@ namespace System.Threading
 			// 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