Skip to content

Making several uses of Dictionary types be ConcurrentDictionary - #10308

Merged
dsyme merged 6 commits into
dotnet:mainfrom
TIHan:concurrent-structures
Oct 27, 2020
Merged

Making several uses of Dictionary types be ConcurrentDictionary#10308
dsyme merged 6 commits into
dotnet:mainfrom
TIHan:concurrent-structures

Conversation

@TIHan

Copy link
Copy Markdown
Contributor

In order to make the compiler more concurrent safe, we needed to make several uses of Dictionary types be ConcurrentDictionary types. Remaining uses of Dictionary types have a comment noting why they are safe.

Comment threadsrc/absil/illib.fs
@TIHanTIHan closed this Oct 21, 2020
@TIHanTIHan reopened this Oct 21, 2020
@TIHanTIHan mentioned this pull request Oct 22, 2020
8 tasks
Comment threadsrc/fsharp/TcGlobals.fs

@cartermpcartermp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@KevinRansomKevinRansom left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, I do wonder, why a couple of tests changed the range, is it a quality of the dictionary type, or did something else subtle change.

("Property", ["member"; "prop"])]
let results = [ for x in classTypeDefn.MembersFunctionsAndValues -> x.LogicalName, attribsOfSymbol x ]
[(".ctor", ["member"; "ctor"]);
("get_Property", ["member"; "getter"]);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Elsewhere these are indented.

Comment threadsrc/fsharp/InfoReader.fs

@dsymedsyme left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few changes requested

@KevinRansom

Copy link
Copy Markdown
Contributor

I added this issue: #10342 to manage the possible dictionary storage order dependency.

@dsymedsyme left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I looked again and no changes are needed

@dsyme
dsyme merged commit 381b22a into dotnet:mainOct 27, 2020
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@TIHan@KevinRansom@saul@cartermp@dsyme@En3Tho