Commit 5fc4a5f
authored
Do not use collectible AssemblyLoadContexts in AnalyzerAssemblyLoader. (#79990)
We ship several analyzers and source-generators in the SDK that are
added to most projects. We want to ship these as Ready2Run so that we
reduce JIT time. However, when an assembly is loaded into a collectible
AssemblyLoadContext it prevents any of the R2R logic from being used.File tree
2 files changed
+28
-24
lines changed- src/Compilers/Core
- CodeAnalysisTest
- Portable/DiagnosticAnalyzer
2 files changed
+28
-24
lines changedLines changed: 27 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | 26 | | |
28 | | - | |
29 | 27 | | |
30 | 28 | | |
31 | 29 | | |
| |||
1653 | 1651 | | |
1654 | 1652 | | |
1655 | 1653 | | |
1656 | | - | |
| 1654 | + | |
1657 | 1655 | | |
1658 | 1656 | | |
1659 | 1657 | | |
| |||
1677 | 1675 | | |
1678 | 1676 | | |
1679 | 1677 | | |
| 1678 | + | |
1680 | 1679 | | |
1681 | | - | |
| 1680 | + | |
| 1681 | + | |
| 1682 | + | |
| 1683 | + | |
| 1684 | + | |
| 1685 | + | |
| 1686 | + | |
| 1687 | + | |
| 1688 | + | |
| 1689 | + | |
| 1690 | + | |
| 1691 | + | |
| 1692 | + | |
| 1693 | + | |
| 1694 | + | |
| 1695 | + | |
| 1696 | + | |
| 1697 | + | |
| 1698 | + | |
| 1699 | + | |
| 1700 | + | |
| 1701 | + | |
| 1702 | + | |
| 1703 | + | |
| 1704 | + | |
1682 | 1705 | | |
1683 | 1706 | | |
1684 | 1707 | | |
| |||
Lines changed: 1 addition & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
169 | 168 | | |
170 | 169 | | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | 170 | | |
175 | 171 | | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | 172 | | |
192 | 173 | | |
193 | 174 | | |
| |||
196 | 177 | | |
197 | 178 | | |
198 | 179 | | |
199 | | - | |
| 180 | + | |
200 | 181 | | |
201 | 182 | | |
202 | 183 | | |
| |||
0 commit comments