Currently, methods that are marked with NoInlining within S.P.CoreLib are assumed to contain a StackCrawlMark local variable. Because of this, it is assumed it is not safe to inline the caller, which can unnecessarily degrade performance under certain circumstances where StackCrawlMark is not being used. There needs to be a better way for identifying StackCrawlMark methods so we can overcome this limitation.
Moved from dotnet/coreclr#7449
Currently, methods that are marked with
NoInliningwithin S.P.CoreLib are assumed to contain a StackCrawlMark local variable. Because of this, it is assumed it is not safe to inline the caller, which can unnecessarily degrade performance under certain circumstances where StackCrawlMark is not being used. There needs to be a better way for identifyingStackCrawlMarkmethods so we can overcome this limitation.Moved from dotnet/coreclr#7449