Bug 24419

Summary: Synchronized static methods of generic classes lock on the open type instead of the closed one
Product: [Mono] Runtime Reporter: Vlad Brezae <vlad.brezae>
Component: GeneralAssignee: Bugzilla <bugzilla>
Severity: normal CC: mono-bugs+mono, mono-bugs+runtime, vargaz
Priority: ---    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Tags: Is this bug a regression?: ---
Last known good build:
Attachments: Deadlock example

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.