summaryrefslogtreecommitdiff
path: root/src/mscorlib/src
diff options
context:
space:
mode:
authorJan Kotas <jkotas@microsoft.com>2017-02-11 14:25:04 -0800
committerGitHub <noreply@github.com>2017-02-11 14:25:04 -0800
commit15c2148000f3bf08e95b88f942e9875f74b64d1b (patch)
tree8d464572fd02dabe1ae9b001c94f57b5b583efc5 /src/mscorlib/src
parent3ea68c8ae152ef64b41e1a1e6733261d5b30a81d (diff)
downloadcoreclr-15c2148000f3bf08e95b88f942e9875f74b64d1b.tar.gz
coreclr-15c2148000f3bf08e95b88f942e9875f74b64d1b.tar.bz2
coreclr-15c2148000f3bf08e95b88f942e9875f74b64d1b.zip
Fix checks for methods that use StackCrawlMark (#9537)
* Fix checks for methods that use StackCrawlMark My recent changed these methods to be marked using IsMdRequireSecObject instead, but some places that have to check for it were not updated correctly.
Diffstat (limited to 'src/mscorlib/src')
-rw-r--r--src/mscorlib/src/System/Security/Attributes.cs9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mscorlib/src/System/Security/Attributes.cs b/src/mscorlib/src/System/Security/Attributes.cs
index 9594013e02..81a1147a4e 100644
--- a/src/mscorlib/src/System/Security/Attributes.cs
+++ b/src/mscorlib/src/System/Security/Attributes.cs
@@ -7,9 +7,12 @@ using System.Runtime.InteropServices;
namespace System.Security
{
// DynamicSecurityMethodAttribute:
- // Indicates that calling the target method requires space for a security
- // object to be allocated on the callers stack. This attribute is only ever
- // set on certain security methods defined within mscorlib.
+ // All methods that use StackCrawlMark should be marked with this attribute. This attribute
+ // disables inlining of the calling method to allow stackwalking to find the exact caller.
+ //
+ // This attribute used to indicate that the target method requires space for a security object
+ // to be allocated on the callers stack. It is not used for this purpose anymore because of security
+ // stackwalks are not ever done in CoreCLR.
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Constructor, AllowMultiple = true, Inherited = false )]
sealed internal class DynamicSecurityMethodAttribute : System.Attribute
{