summaryrefslogtreecommitdiff
path: root/src/System.Private.CoreLib/src/System/Threading/StackCrawlMark.cs
blob: 977cccb83340da46b84af491f4d87be629c9b1bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

#nullable enable
namespace System.Threading
{
    /// <summary>
    /// declaring a local var of this enum type and passing it by ref into a function that needs to do a
    /// stack crawl will both prevent inlining of the callee and pass an ESP point to stack crawl to
    /// Declaring these in EH clauses is illegal; they must declared in the main method body
    /// </summary>
    internal enum StackCrawlMark
    {
        LookForMe = 0,
        LookForMyCaller = 1,
        LookForMyCallersCaller = 2,
        LookForThread = 3
    }
}