Tweak crossgen2 so that SuperPMI should work (#42555)
authorDavid Wrighton <davidwr@microsoft.com>
Tue, 22 Sep 2020 17:55:10 +0000 (10:55 -0700)
committerGitHub <noreply@github.com>
Tue, 22 Sep 2020 17:55:10 +0000 (10:55 -0700)
commit0d62c3602c0214f95b7dc6ad165b5ddc9c1177db
tree1e14764dda997aac2030488ff8a68a57a9621db0
parentab05dc85ad34a20cf21260ad2c70c7278c562cc9
Tweak crossgen2 so that SuperPMI should work (#42555)

- Remove unneeded getBuiltinClass for CLASSID_ARGUMENT_HANDLE from SuperPMI
- Tweak crossgen2 single threaded compilation to reliably only use exactly 1 for compilation
  - This allows superpmi to rely on the detail that handles are unique.
  - This assumes that superpmi collection is done with the compilation options `--parallelism 1`
src/coreclr/src/ToolBox/superpmi/superpmi-shim-collector/icorjitcompiler.cpp
src/coreclr/src/tools/Common/JitInterface/CorInfoImpl.cs
src/coreclr/src/tools/aot/ILCompiler.ReadyToRun/Compiler/ReadyToRunCodegenCompilation.cs