Skip to content

Commit e76db92

Browse files
committed
fix(codegen): initialize collision tracking
1 parent cd41b9f commit e76db92

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/Orleans.CodeGenerator/SyntaxGeneration/GeneratedFieldNames.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public static string[] ForTypes(string prefix, IReadOnlyList<IMemberDescription>
2828

2929
// phase 1: detect collisions and mark them for hashing
3030
Span<bool> contested = members.Count <= 64 ? stackalloc bool[members.Count] : new bool[members.Count];
31+
contested.Clear();
3132
for (var i = 0; i < members.Count; i++)
3233
{
3334
// we couldn't get a readable name for this type, so we need to hash it

0 commit comments

Comments
 (0)