Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Pouliot <sebastien@ximian.com>2006-05-05 19:27:10 +0400
committerSebastien Pouliot <sebastien@ximian.com>2006-05-05 19:27:10 +0400
commit54775ae1a156960c60b8a0610cb9eec16742e882 (patch)
treeb81039a328f1b195a0d43f24f1fb8dd97d57ae79
parentcba302c309c4f3af9a6bb7bfc240100fb69e4350 (diff)
2006-05-05 Sebastien Pouliot <sebastien@ximian.com>
* 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=/branches/mono-1-1-13/mcs/; revision=60300
-rw-r--r--mcs/class/corlib/System.Threading/ChangeLog5
-rw-r--r--mcs/class/corlib/System.Threading/ExecutionContext.cs3
2 files changed, 7 insertions, 1 deletions
diff --git a/mcs/class/corlib/System.Threading/ChangeLog b/mcs/class/corlib/System.Threading/ChangeLog
index 61426681a1f..981d87b1a22 100644
--- a/mcs/class/corlib/System.Threading/ChangeLog
+++ b/mcs/class/corlib/System.Threading/ChangeLog
@@ -1,3 +1,8 @@
+2006-05-05 Sebastien Pouliot <sebastien@ximian.com>
+
+ * ExecutionContext.cs: Don't capture the compressed stack unless the
+ security manager is active (this wasn't ready to be called in
+ production code).
Wed Mar 15 16:35:49 CET 2006 Paolo Molaro <lupus@ximian.com>
diff --git a/mcs/class/corlib/System.Threading/ExecutionContext.cs b/mcs/class/corlib/System.Threading/ExecutionContext.cs
index d3176bfd374..ed5575c3ba7 100644
--- a/mcs/class/corlib/System.Threading/ExecutionContext.cs
+++ b/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;
}