[Mono-devel-list] [PATCH] type initialization (class constructors)

Lluis Sanchez lluis at ximian.com
Mon Mar 22 04:46:28 EST 2004


Hi!

I've also been working on this problem as part of the resolution of
http://bugzilla.ximian.com/show_bug.cgi?id=55749.

It seems that your patch is better since it detects chains of waiting
threads. Anyway, here is my patch.

Lluis.


On dl, 2004-03-22 at 04:44, Bernie Solomon wrote:
> I have discovered that the algorithm for running class constructors
> doesn't match the spec. Further I also found it got things wrong. I
> attach a patch which I believe gets this correct though it is a little
> tricky. I also attach a test program which if I ran it repeatedly
> under mono in a shell loop would eventually lock up (at least under
> Mandrake 9.1).
>  
> I do assume GetCurrentThreadId can never return zero on any platform -
> is this correct?
>  
> Since it is tricky I wonder if anyone has suggestions on the best
> tests to run.
>  
> Bernie Solomon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cctor.diff
Type: text/x-patch
Size: 6783 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040322/9652a093/attachment.bin 


More information about the Mono-devel-list mailing list