Bug 24419 - Synchronized static methods of generic classes lock on the open type instead of the closed one
Summary: Synchronized static methods of generic classes lock on the open type instead ...
Status: RESOLVED FIXED
Alias: None
Product: Runtime
Classification: Mono
Component: General (show other bugs)
Version: unspecified
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-11-10 19:53 UTC by Vlad Brezae
Modified: 2017-08-28 15:05 UTC (History)
3 users (show)

See Also:
Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Deadlock example (337 bytes, text/x-csharp)
2014-11-10 19:53 UTC, Vlad Brezae
Details

Description Vlad Brezae 2014-11-10 19:53:11 UTC
Created attachment 8685 [details]
Deadlock example

As an example, in the attached code, calling Run should lock on typeof(Gen<object>) instead of typeof(Gen<>). Therefore, the code deadlocks though it shouldn't.
Comment 1 Zoltan Varga 2014-11-10 20:54:38 UTC
Fixed by 5dd334758888f700aa2bace31be5d55832c8c951.

Note You need to log in before you can comment on or make changes to this bug.