[Mono-bugs] [Bug 44229][Nor] Changed - mcs does not set beforefieldinit

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 24 Dec 2003 01:14:06 -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 bmaurer@users.sf.net.

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

--- shadow/44229	2003-09-22 00:16:29.000000000 -0400
+++ shadow/44229.tmp.13804	2003-12-24 01:14:06.000000000 -0500
@@ -1,16 +1,16 @@
 Bug#: 44229
-Product: Mono/MCS
+Product: Mono/Compilers
 Version: unspecified
 OS: other
 OS Details: 
 Status: REOPENED   
 Resolution: 
 Severity: Unknown
 Priority: Normal
-Component: Misc
+Component: C#
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: dietmar@ximian.com               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
 URL: 
 Cc: 
@@ -108,6 +108,22 @@
 
 
 
 
 ------- Additional Comments From vargaz@freemail.hu  2003-09-22 00:16 -------
 Put this back on the radar.
+
+------- Additional Comments From bmaurer@users.sf.net  2003-12-24 01:14 -------
+Ok, so it is pretty clear that CSC sets beforefieldinit iff there is
+no explicit static ctor.
+
+It is pretty easy to make MCS act like this. One weird thing I did
+notice is that with the test case you give, without aot'ing it, the
+CSC version is actually *slower* than the mcs version (the only
+differnce in the IL is the beforefieldinit). When I passed -O=all,
+however, the perf was the same.
+
+With the AOT, CSC's version was faster than MCS's (though both were
+much slower than the JIT'd version).
+
+Also, this will require some extensive testing, so we need to do it
+when we are all back from vacation.