* 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
@@ -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.
@@ -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;
}