Uh oh!
There was an error while loading. Please reload this page.
Fix non-determinism in Regex source generator - #78103
Conversation
The source generator enumerates a Hashtable to write out its contents. When the keys of the Hashtable are strings, string hash code randomization may result in the order of that enumeration being different in different processes, leading to non-deterministic ordering of values written out and thus non-deterministic source generator output.
ghost
commented
Nov 9, 2022
Tagging subscribers to this area: @dotnet/area-system-text-regularexpressions Issue DetailsThe source generator enumerates a Hashtable to write out its contents. When the keys of the Hashtable are strings, string hash code randomization may result in the order of that enumeration being different in different processes, leading to non-deterministic ordering of values written out and thus non-deterministic source generator output. Fixes #76774 @jaredpar, another source of non-determinism for your list.
|
Uh oh!
There was an error while loading. Please reload this page.
stephentoub
commented
Nov 10, 2022
/backport to release/7.0 |
Started backporting to release/7.0: https://github.com/dotnet/runtime/actions/runs/3436073260 |
The source generator enumerates a Hashtable to write out its contents. When the keys of the Hashtable are strings, string hash code randomization may result in the order of that enumeration being different in different processes, leading to non-deterministic ordering of values written out and thus non-deterministic source generator output.
Fixes#76774 (though we'll want to backport this to release/7.0)
cc: @MichalStrehovsky, @ViktorHofer, @joperezr
@jaredpar, another source of non-determinism for your list.