Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deadlock with DocumentTypes dictionary #28

Open
slavapvf opened this issue Apr 24, 2015 · 0 comments
Open

deadlock with DocumentTypes dictionary #28

slavapvf opened this issue Apr 24, 2015 · 0 comments

Comments

@slavapvf
Copy link

ometimes I have 96% consume in my app, I attached to process and found that several threads are locked at:

private static void FillDocumentTypes(Type baseTypeDocType)

...

DocumentTypes[documentTypeAlias] = type;

another at

public static Type GetDocumentTypeType(string documentTypeAlias)

...

type = DocumentTypes[documentTypeAlias];

DocumentTypes is a static dictionary,
here is the same problem:
http://blogs.msdn.com/b/tess/archive/2009/12/21/high-cpu-in-net-app-using-a-static-generic-dictionary.aspx ;

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

No branches or pull requests

1 participant