Uh oh!
There was an error while loading. Please reload this page.
Move System.ValueType.s_seed into System.Runtime.CompilerServices.RuntimeHelpers - #73080
Conversation
ghost
commented
Jul 29, 2022
I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label. |
gregg-miskelly
commented
Jul 29, 2022
CC @tmat |
Uh oh!
There was an error while loading. Please reload this page.
413762c to
3b0d1f9CompareThis still shows up as clutter in windbg/sos where DebuggerBrowsable does not kick in. For example, It would be better to move this out of ValueType completely, e.g. to |
jkotas
commented
Jul 29, 2022
I can move it around if you do not have time to do it. |
gregg-miskelly
commented
Jul 29, 2022
@jkotas Do you mean to move just the field to RuntimeHelpers? Or the field and all the code that uses it? If the later, should I delete the method in ValueType? Or just have the method in ValueType call a method in RuntimeHelpers? |
jkotas
commented
Jul 29, 2022
Move the field and the one method that uses it. Update all callers to call the method in the new place. |
3b0d1f9 to
43b2e4dCompareDebuggerBrowsableState.Never…timeHelpers PR dotnet#69723 added a 's_seed' field to System.ValueType. This causes the debugger to show all structs as having static members. This PR moves the field and the function that used it into RuntimeHelpers.
43b2e4d to
5702017Compare
PR #69723 added a 's_seed' field to System.ValueType. This causes the debugger to show all structs as having static members.
This PR moves the field and the function that used it into RuntimeHelpers.