[Mono-bugs] [Bug 55749][Maj] Changed - Another deadlock when running static constructors

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 19 Mar 2004 08:15:54 -0500 (EST)

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by vargaz@freemail.hu.


--- shadow/55749	2004-03-18 21:07:09.000000000 -0500
+++ shadow/55749.tmp.8924	2004-03-19 08:15:54.000000000 -0500
@@ -93,6 +93,12 @@
 This patch fixes the bug. Comments?
 ------- Additional Comments From lluis@ximian.com  2004-03-18 21:07 -------
 Hmm, the patch is wrong, it can cause deadlocks between class and
 domain locks.
+------- Additional Comments From vargaz@freemail.hu  2004-03-19 08:15 -------
+I'm pretty sure the real fix would be to use the algorithm in the spec.
+In the meantime, it should be possible to use a per-vtable lock instead
+of the domain lock. That would fix the most common occurences of this