Skip to content

Commit 58ac696

Browse files
jcouvJulien Couvreur
authored andcommitted
Concurrency issue with fixed fields
1 parent 4b06ee4 commit 58ac696

File tree

17 files changed

+758
-674
lines changed

17 files changed

+758
-674
lines changed

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

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1417,17 +1417,6 @@ public NamedTypeSymbol SetFixedImplementationType(SourceMemberFieldSymbol field)
14171417
}
14181418
}
14191419

1420-
internal NamedTypeSymbol GetFixedImplementationType(FieldSymbol field)
1421-
{
1422-
// Note that this method is called only after ALL fixed buffer types have been placed in the map.
1423-
// At that point the map is all filled in and will not change further. Therefore it is safe to
1424-
// pull values from the map without locking.
1425-
NamedTypeSymbol result;
1426-
var found = _fixedImplementationTypes.TryGetValue(field, out result);
1427-
Debug.Assert(found);
1428-
return result;
1429-
}
1430-
14311420
protected override Cci.IMethodDefinition CreatePrivateImplementationDetailsStaticConstructor(PrivateImplementationDetails details, SyntaxNode syntaxOpt, DiagnosticBag diagnostics)
14321421
{
14331422
return new SynthesizedPrivateImplementationDetailsStaticConstructor(SourceModule, details, GetUntranslatedSpecialType(SpecialType.System_Void, syntaxOpt, diagnostics)).GetCciAdapter();

0 commit comments

Comments
 (0)