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

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 18 Mar 2004 19:10:37 -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 lluis@ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=55749

--- shadow/55749	2004-03-18 16:53:34.000000000 -0500
+++ shadow/55749.tmp.31942	2004-03-18 19:10:37.000000000 -0500
@@ -79,6 +79,11 @@
 This is caused by a deadlock between the domain lock taken in
 mono_runtime_class_init, and a managed lock. The solution would be
 to use the initialization protocol described in Partition II., 9.5.3.3,
 but that requires things like 'see whenever this thread or any
 thread waiting for this thread already holds the lock', which is a bit
 hard to implement.
+
+------- Additional Comments From lluis@ximian.com  2004-03-18 19:10 -------
+This section refers to deadlocks between type initializers. I think
+that this one could be fixed by using a class lock instead of a domain
+lock. I will try it.