[Mono-bugs] [Bug 58558][Blo] Changed - static constructors don't get called

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 17 May 2004 17:22:27 -0400 (EDT)

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 jaak@zd.com.pl.


--- shadow/58558	2004-05-17 10:17:45.000000000 -0400
+++ shadow/58558.tmp.13420	2004-05-17 17:22:27.000000000 -0400
@@ -77,6 +77,21 @@
 4. All of the above is based on 1-hour-old CVS "make bootstrap && make
 5. I suspect that this may be related to Boehm GC, but since there's
 no "libgc" under "mono" in any more I cannot try --with-gc=included.
+------- Additional Comments From jaak@zd.com.pl  2004-05-17 17:22 -------
+I found a workaround for this problem:
+mono --optimize=shared mod-mono-server.exe ...
+works fine while 
+mono mod-mono-server.exe ...
+fails. I confirmed that in the former case the .cctor gets called
+properly in a child domain while in the latter case it isn't called at
+IMHO This suggests some nasty assembly-sharing JIT bug.