Earlier quoted context omitted.
In general - yes: https://github.com/dotnet/coreclr/issues/1784 . However, nothing more specific I can say...
I realize it's a pretty hard problem - and hadn't java already demonstrated the feasibility of it, I would have doubted it to be possible at all without major surgery to both language and runtime (special scoped types etc). So I guess my question is: is there something about C# or .NET that makes it much harder to do escape analysis than it is in Java world? An evil example is class Something { private static readonl…
Well you assigned the instance to a global variable. That's how Java knows. If you can see that then so can the Java compiler.