Skip to content

Potential deadlock in TypeDescriptor #97179

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions