7 ms·
It appears that the .NET Core CLR does perform some rudimentary escape analysis: https://github.com/dotnet/coreclr/pull/6653 https://github.com/dotnet/coreclr/p
by noblethrasher 6y ago
It appears that the .NET Core CLR does perform some rudimentary escape analysis: https://github.com/dotnet/coreclr/pull/6653 https://github.com/dotnet/coreclr/pull/6653
- chrisseaton 6y agoRight - and that supports the stack-allocation, not SRA, which is what I think C# doesn't have - possibly because they prefer explicit value types over trying to do it automatically through SRA.