Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd078571

Browse files
auduchinokKevinRansom
authored andcommitted
Use ConcurrentDictionary in ImportMap (#4148)
1 parentfc99e91 commitd078571

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎src/fsharp/import.fs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
moduleinternalMicrosoft.FSharp.Compiler.Import
55

66
openSystem.Reflection
7+
openSystem.Collections.Concurrent
78
openSystem.Collections.Generic
89

910
openMicrosoft.FSharp.Compiler.AbstractIL.IL
@@ -52,7 +53,7 @@ type AssemblyLoader =
5253
/// serves as an interface through to the tables stored in the primary TcImports structures defined in CompileOps.fs.
5354
[<Sealed>]
5455
typeImportMap(g:TcGlobals,assemblyLoader:AssemblyLoader)=
55-
lettypeRefToTyconRefCache=new System.Collections.Generic.Dictionary<ILTypeRef,TyconRef>()
56+
lettypeRefToTyconRefCache=ConcurrentDictionary<ILTypeRef,TyconRef>()
5657
memberthis.g= g
5758
memberthis.assemblyLoader= assemblyLoader
5859
memberthis.ILTypeRefToTyconRefCache= typeRefToTyconRefCache

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp