Skip to content

Conversation

DedSec256
Copy link
Contributor

We host type providers out-of-process and have our implementation for ProvidedType, in which concurrent read-write operations can occur in the ProvidedTypeContext.

This PR fixes data races in the ProvidedTypeContext.

Copy link
Contributor

@KevinRansom KevinRansom left a comment

Choose a reason for hiding this comment

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

Looks good .

@vzarytovskii vzarytovskii merged commit e19155e into dotnet:main Jul 16, 2021
@DedSec256 DedSec256 deleted the ber.a/ProvidedTypesContext-fixRaces branch July 16, 2021 22:12
@@ -271,7 +272,7 @@ module internal ExtensionTyping =
and ProvidedTypeContext =
| NoEntries
// The dictionaries are safe because the ProvidedType with the ProvidedTypeContext are only accessed one thread at a time during type-checking.
Copy link
Contributor

Choose a reason for hiding this comment

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

This comment should be revised.

Sign up for free to 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.

4 participants