[Mono-devel-list] [PATCH] type initialization (class constructors)
Bernie Solomon
bernard at ugsolutions.com
Sun Mar 21 22:44:00 EST 2004
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 --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040321/392c2dc1/attachment.html
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: typeinit.diff.txt
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040321/392c2dc1/attachment.txt
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: i.cs
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040321/392c2dc1/attachment.pl
More information about the Mono-devel-list
mailing list