diff options
author | Sebastien Pouliot <sebastien@ximian.com> | 2006-05-05 19:27:10 +0400 |
---|---|---|
committer | Sebastien Pouliot <sebastien@ximian.com> | 2006-05-05 19:27:10 +0400 |
commit | 54775ae1a156960c60b8a0610cb9eec16742e882 (patch) | |
tree | b81039a328f1b195a0d43f24f1fb8dd97d57ae79 | |
parent | cba302c309c4f3af9a6bb7bfc240100fb69e4350 (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/ChangeLog | 5 | ||||
-rw-r--r-- | mcs/class/corlib/System.Threading/ExecutionContext.cs | 3 |
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; } |