http://bugzilla.novell.com/show_bug.cgi?id=551228

User [email protected] added comment
http://bugzilla.novell.com/show_bug.cgi?id=551228#c3





--- Comment #3 from Zoltan Varga <[email protected]>  2009-10-30 09:15:25 MDT ---
The difference is that with 'readonly' the JIT knows the value of the static
field can't change, so it embeds the value into the JITted code, without
readonly, it needs to emit a load instruction to load the value. No idea why
that makes a difference, the value is constant anyway, since it is initialized
in the type initializer of SharedCounter, which is called after Main was JIT
compiled.

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to