Przeglądaj źródła

2006-05-05 Sebastien Pouliot <[email protected]>

	* ExecutionContext.cs: Don't capture the compressed stack unless the 
	security manager is active (this wasn't ready to be called in 
	production code).


svn path=/trunk/mcs/; revision=60298
Sebastien Pouliot 19 lat temu
rodzic
commit
b2ad2763b5

+ 6 - 0
mcs/class/corlib/System.Threading/ChangeLog

@@ -1,3 +1,9 @@
+2006-05-05  Sebastien Pouliot  <[email protected]>
+
+	* ExecutionContext.cs: Don't capture the compressed stack unless the 
+	security manager is active (this wasn't ready to be called in 
+	production code).
+
 2004-04-29  Atsushi Enomoto  <[email protected]>
 
 	* Timer.cs : avoid NullReferenceException when it is already disposed.

+ 2 - 1
mcs/class/corlib/System.Threading/ExecutionContext.cs

@@ -69,7 +69,8 @@ namespace System.Threading {
 				return null;
 
 			ExecutionContext capture = new ExecutionContext (ec);
-			capture.SecurityContext = SecurityContext.Capture ();
+			if (SecurityManager.SecurityEnabled)
+				capture.SecurityContext = SecurityContext.Capture ();
 			return capture;
 		}