dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
15.36k stars 4.75k forks source link

Trim method names when StackTraceSupport and DebuggerSupport is false #103401

Open MichalStrehovsky opened 5 months ago

MichalStrehovsky commented 5 months ago

ILLinker could theoretically do the same optimization as native AOT is doing and trim method names when StackTraceSupport is disabled. Since method names are also visible in debuggers, we'd probably need to condition that on DebuggerSupport also being false.

But with that, we should in theory be able to rename methods that are not reflection visible and give them shorter names (or even compilercontrolled visibility and no name).

dotnet-policy-service[bot] commented 5 months ago

Tagging subscribers to this area: @agocke, @sbomer, @vitek-karas See info in area-owners.md if you want to be subscribed.