Commit 4cf369e
[release/10.0] Avoid marking types as reflected on in CreateSpan (#118908)
* Avoid marking types as reflected on in CreateSpan
This seems to be at least one of the reasons why Hello World on Linux still needs support for boxed enums. `CreateSpan` is used with an enum type in Unix System.Console, which brings a boxed enum into whole program view and we can't undo the damage this causes to the whole program view during compilation anymore (even though we no longer need the `typeof` then because RyuJIT always expands `CreateSpan`).
* Update src/libraries/System.Private.CoreLib/src/System/Runtime/CompilerServices/RuntimeHelpers.cs
---------
Co-authored-by: Michal Strehovský <MichalStrehovsky@users.noreply.github.com>1 parent 6c6dac8 commit 4cf369e
File tree
2 files changed
+8
-12
lines changed- src
- coreclr/nativeaot/System.Private.CoreLib/src/System/Runtime/CompilerServices
- libraries/System.Private.CoreLib/src/System/Runtime/CompilerServices
2 files changed
+8
-12
lines changedLines changed: 0 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | 30 | | |
43 | 31 | | |
44 | 32 | | |
| |||
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
154 | 161 | | |
| 162 | + | |
155 | 163 | | |
156 | 164 | | |
157 | 165 | | |
| |||
0 commit comments