Skip to content

Potential deadlock in TypeDescriptor #97179

Closed
@steveharter

Description

@steveharter

Introduced by the recent PR #96846.

There are two sync objects being used (s_defaultProviderSyncObject, s_providerTable) and a deadlock is possible since the ordering of these 2 locks can vary and both locks rerequested.

The repro is to call TypeDescriptor.GetProvider(Type) and TypeDescriptor.AddProvider(..., Type) on different threads.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions