Reduce allocated object cost of debug info (#35873)
authorDavid Wrighton <davidwr@microsoft.com>
Wed, 6 May 2020 20:26:53 +0000 (13:26 -0700)
committerGitHub <noreply@github.com>
Wed, 6 May 2020 20:26:53 +0000 (13:26 -0700)
commitf007841a90f0b53e14878a9bf688b1f9e6f3b122
tree2296d6a92a02c174103d495d0140118555cb27ea
parentb70309a5e8cfb89912001ec3d1deeec5f553411b
Reduce allocated object cost of debug info (#35873)

Reduce allocated object cost of debug info, by converting it into its final form as its extracted from the JIT and not as its emitted into the file. Also has a small benefit of increased parallelization as its now created in a parallel portion of the build instead of a sequential portion of the build. Overall size win of 0.5% observed.
src/coreclr/src/tools/crossgen2/ILCompiler.ReadyToRun/Compiler/DependencyAnalysis/ReadyToRun/DebugInfoTableNode.cs
src/coreclr/src/tools/crossgen2/ILCompiler.ReadyToRun/Compiler/DependencyAnalysis/ReadyToRun/MethodWithGCInfo.cs