Skip to content

Commit 9c798fd

Browse files
authored
Concurrency issue with fixed fields (#56581)
1 parent ba2df8a commit 9c798fd

File tree

17 files changed

+775
-673
lines changed

17 files changed

+775
-673
lines changed

src/Compilers/CSharp/Portable/Emitter/Model/PEModuleBuilder.cs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1532,17 +1532,6 @@ public NamedTypeSymbol SetFixedImplementationType(SourceMemberFieldSymbol field)
15321532
}
15331533
}
15341534

1535-
internal NamedTypeSymbol GetFixedImplementationType(FieldSymbol field)
1536-
{
1537-
// Note that this method is called only after ALL fixed buffer types have been placed in the map.
1538-
// At that point the map is all filled in and will not change further. Therefore it is safe to
1539-
// pull values from the map without locking.
1540-
NamedTypeSymbol result;
1541-
var found = _fixedImplementationTypes.TryGetValue(field, out result);
1542-
Debug.Assert(found);
1543-
return result;
1544-
}
1545-
15461535
protected override Cci.IMethodDefinition CreatePrivateImplementationDetailsStaticConstructor(PrivateImplementationDetails details, SyntaxNode syntaxOpt, DiagnosticBag diagnostics)
15471536
{
15481537
return new SynthesizedPrivateImplementationDetailsStaticConstructor(SourceModule, details, GetUntranslatedSpecialType(SpecialType.System_Void, syntaxOpt, diagnostics)).GetCciAdapter();

0 commit comments

Comments
 (0)