Browse Source

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

svn path=/trunk/mcs/; revision=44392
Sebastien Pouliot 20 years ago
parent
commit
d465dc4044
1 changed files with 1 additions and 1 deletions
  1. 1 1
      mcs/class/corlib/System.Threading/Thread.cs

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

@@ -946,7 +946,7 @@ namespace System.Threading
 			// However CompressedStack.GetCompressedStack returns an 
 			// However CompressedStack.GetCompressedStack returns an 
 			// (empty?) CompressedStack instance.
 			// (empty?) CompressedStack instance.
 			CompressedStack cs = ExecutionContext.SecurityContext.CompressedStack;
 			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
 		// NOTE: This method doesn't show in the class library status page because